diff options
| author | filip <“filip.rabiega@gmail.com”> | 2025-07-10 15:44:51 +0200 |
|---|---|---|
| committer | filip <“filip.rabiega@gmail.com”> | 2025-07-10 15:44:51 +0200 |
| commit | b755d014bf5fcf0e1c41df811ffd0f7eb59dace5 (patch) | |
| tree | 59d48965b55f59030cd8c0b8a10bf4fac2cab4a2 | |
| parent | f5c4e634cdb19eca298491ad6f071ad09204060f (diff) | |
| download | chadslstatus-my_slstatus.tar.gz chadslstatus-my_slstatus.tar.bz2 chadslstatus-my_slstatus.zip | |
my slstatusmy_slstatus
| -rw-r--r-- | components/battery.o | bin | 0 -> 5208 bytes | |||
| -rw-r--r-- | components/cat.o | bin | 0 -> 2128 bytes | |||
| -rw-r--r-- | components/cpu.o | bin | 0 -> 3136 bytes | |||
| -rw-r--r-- | components/datetime.o | bin | 0 -> 1936 bytes | |||
| -rw-r--r-- | components/disk.o | bin | 0 -> 3144 bytes | |||
| -rw-r--r-- | components/entropy.o | bin | 0 -> 1792 bytes | |||
| -rw-r--r-- | components/hostname.o | bin | 0 -> 1648 bytes | |||
| -rw-r--r-- | components/ip.o | bin | 0 -> 3136 bytes | |||
| -rw-r--r-- | components/kernel_release.o | bin | 0 -> 1840 bytes | |||
| -rw-r--r-- | components/keyboard_indicators.o | bin | 0 -> 2416 bytes | |||
| -rw-r--r-- | components/keymap.o | bin | 0 -> 4056 bytes | |||
| -rw-r--r-- | components/load_avg.o | bin | 0 -> 1872 bytes | |||
| -rw-r--r-- | components/netspeeds.o | bin | 0 -> 2792 bytes | |||
| -rw-r--r-- | components/num_files.o | bin | 0 -> 2160 bytes | |||
| -rw-r--r-- | components/ram.o | bin | 0 -> 3104 bytes | |||
| -rw-r--r-- | components/run_command.o | bin | 0 -> 2144 bytes | |||
| -rw-r--r-- | components/swap.o | bin | 0 -> 3944 bytes | |||
| -rw-r--r-- | components/temperature.o | bin | 0 -> 1712 bytes | |||
| -rw-r--r-- | components/uptime.o | bin | 0 -> 1992 bytes | |||
| -rw-r--r-- | components/user.o | bin | 0 -> 2200 bytes | |||
| -rw-r--r-- | components/volume.o | bin | 0 -> 3616 bytes | |||
| -rw-r--r-- | components/wifi.o | bin | 0 -> 6056 bytes | |||
| -rw-r--r-- | config.def.h | 8 | ||||
| -rw-r--r-- | config.h | 76 | ||||
| -rwxr-xr-x | slstatus | bin | 0 -> 35440 bytes | |||
| -rw-r--r-- | slstatus.o | bin | 0 -> 6624 bytes | |||
| -rw-r--r-- | util.o | bin | 0 -> 5576 bytes |
27 files changed, 83 insertions, 1 deletions
diff --git a/components/battery.o b/components/battery.o Binary files differnew file mode 100644 index 0000000..4c2b155 --- /dev/null +++ b/components/battery.o diff --git a/components/cat.o b/components/cat.o Binary files differnew file mode 100644 index 0000000..94db1dd --- /dev/null +++ b/components/cat.o diff --git a/components/cpu.o b/components/cpu.o Binary files differnew file mode 100644 index 0000000..481a63d --- /dev/null +++ b/components/cpu.o diff --git a/components/datetime.o b/components/datetime.o Binary files differnew file mode 100644 index 0000000..60a868c --- /dev/null +++ b/components/datetime.o diff --git a/components/disk.o b/components/disk.o Binary files differnew file mode 100644 index 0000000..04a769c --- /dev/null +++ b/components/disk.o diff --git a/components/entropy.o b/components/entropy.o Binary files differnew file mode 100644 index 0000000..c2aef19 --- /dev/null +++ b/components/entropy.o diff --git a/components/hostname.o b/components/hostname.o Binary files differnew file mode 100644 index 0000000..523779f --- /dev/null +++ b/components/hostname.o diff --git a/components/ip.o b/components/ip.o Binary files differnew file mode 100644 index 0000000..5658e44 --- /dev/null +++ b/components/ip.o diff --git a/components/kernel_release.o b/components/kernel_release.o Binary files differnew file mode 100644 index 0000000..00e4c4e --- /dev/null +++ b/components/kernel_release.o diff --git a/components/keyboard_indicators.o b/components/keyboard_indicators.o Binary files differnew file mode 100644 index 0000000..55b9329 --- /dev/null +++ b/components/keyboard_indicators.o diff --git a/components/keymap.o b/components/keymap.o Binary files differnew file mode 100644 index 0000000..6aad0d1 --- /dev/null +++ b/components/keymap.o diff --git a/components/load_avg.o b/components/load_avg.o Binary files differnew file mode 100644 index 0000000..3e8d272 --- /dev/null +++ b/components/load_avg.o diff --git a/components/netspeeds.o b/components/netspeeds.o Binary files differnew file mode 100644 index 0000000..921665f --- /dev/null +++ b/components/netspeeds.o diff --git a/components/num_files.o b/components/num_files.o Binary files differnew file mode 100644 index 0000000..94a0e80 --- /dev/null +++ b/components/num_files.o diff --git a/components/ram.o b/components/ram.o Binary files differnew file mode 100644 index 0000000..a55d136 --- /dev/null +++ b/components/ram.o diff --git a/components/run_command.o b/components/run_command.o Binary files differnew file mode 100644 index 0000000..f1dd012 --- /dev/null +++ b/components/run_command.o diff --git a/components/swap.o b/components/swap.o Binary files differnew file mode 100644 index 0000000..7b4e89d --- /dev/null +++ b/components/swap.o diff --git a/components/temperature.o b/components/temperature.o Binary files differnew file mode 100644 index 0000000..4568dea --- /dev/null +++ b/components/temperature.o diff --git a/components/uptime.o b/components/uptime.o Binary files differnew file mode 100644 index 0000000..e747068 --- /dev/null +++ b/components/uptime.o diff --git a/components/user.o b/components/user.o Binary files differnew file mode 100644 index 0000000..d230f86 --- /dev/null +++ b/components/user.o diff --git a/components/volume.o b/components/volume.o Binary files differnew file mode 100644 index 0000000..7d5c332 --- /dev/null +++ b/components/volume.o diff --git a/components/wifi.o b/components/wifi.o Binary files differnew file mode 100644 index 0000000..8a4bf8e --- /dev/null +++ b/components/wifi.o diff --git a/config.def.h b/config.def.h index 100093e..06515a1 100644 --- a/config.def.h +++ b/config.def.h @@ -66,5 +66,11 @@ static const char unknown_str[] = "n/a"; */ static const struct arg args[] = { /* function format argument */ - { datetime, "%s", "%F %T" }, + { username, "%s ", "%s" }, + { cpu_perc, "CPU: %s, ", "/" }, + { wifi_essid, "%s: ", "wlp3s0"}, + { wifi_perc, "%s, ", "wlp3s0"}, + { ram_perc, "RAM: %s, ", NULL }, + { battery_perc, "Power: %s, ", "BAT1" }, + { datetime, "%s", "%F %T" }, }; diff --git a/config.h b/config.h new file mode 100644 index 0000000..06515a1 --- /dev/null +++ b/config.h @@ -0,0 +1,76 @@ +/* See LICENSE file for copyright and license details. */ + +/* interval between updates (in ms) */ +const unsigned int interval = 1000; + +/* text to show if no value can be retrieved */ +static const char unknown_str[] = "n/a"; + +/* maximum output string length */ +#define MAXLEN 2048 + +/* + * function description argument (example) + * + * battery_perc battery percentage battery name (BAT0) + * NULL on OpenBSD/FreeBSD + * battery_remaining battery remaining HH:MM battery name (BAT0) + * NULL on OpenBSD/FreeBSD + * battery_state battery charging state battery name (BAT0) + * NULL on OpenBSD/FreeBSD + * cat read arbitrary file path + * cpu_freq cpu frequency in MHz NULL + * cpu_perc cpu usage in percent NULL + * datetime date and time format string (%F %T) + * disk_free free disk space in GB mountpoint path (/) + * disk_perc disk usage in percent mountpoint path (/) + * disk_total total disk space in GB mountpoint path (/) + * disk_used used disk space in GB mountpoint path (/) + * entropy available entropy NULL + * gid GID of current user NULL + * hostname hostname NULL + * ipv4 IPv4 address interface name (eth0) + * ipv6 IPv6 address interface name (eth0) + * kernel_release `uname -r` NULL + * keyboard_indicators caps/num lock indicators format string (c?n?) + * see keyboard_indicators.c + * keymap layout (variant) of current NULL + * keymap + * load_avg load average NULL + * netspeed_rx receive network speed interface name (wlan0) + * netspeed_tx transfer network speed interface name (wlan0) + * num_files number of files in a directory path + * (/home/foo/Inbox/cur) + * ram_free free memory in GB NULL + * ram_perc memory usage in percent NULL + * ram_total total memory size in GB NULL + * ram_used used memory in GB NULL + * run_command custom shell command command (echo foo) + * swap_free free swap in GB NULL + * swap_perc swap usage in percent NULL + * swap_total total swap size in GB NULL + * swap_used used swap in GB NULL + * temp temperature in degree celsius sensor file + * (/sys/class/thermal/...) + * NULL on OpenBSD + * thermal zone on FreeBSD + * (tz0, tz1, etc.) + * uid UID of current user NULL + * up interface is running interface name (eth0) + * uptime system uptime NULL + * username username of current user NULL + * vol_perc OSS/ALSA volume in percent mixer file (/dev/mixer) + * NULL on OpenBSD/FreeBSD + * wifi_essid WiFi ESSID interface name (wlan0) + * wifi_perc WiFi signal in percent interface name (wlan0) + */ +static const struct arg args[] = { + /* function format argument */ + { username, "%s ", "%s" }, + { cpu_perc, "CPU: %s, ", "/" }, + { wifi_essid, "%s: ", "wlp3s0"}, + { wifi_perc, "%s, ", "wlp3s0"}, + { ram_perc, "RAM: %s, ", NULL }, + { battery_perc, "Power: %s, ", "BAT1" }, + { datetime, "%s", "%F %T" }, +}; diff --git a/slstatus b/slstatus Binary files differnew file mode 100755 index 0000000..ce684cf --- /dev/null +++ b/slstatus diff --git a/slstatus.o b/slstatus.o Binary files differBinary files differnew file mode 100644 index 0000000..af6b285 --- /dev/null +++ b/slstatus.o |
