diff options
| author | pml68 <contact@pml68.dev> | 2025-04-04 00:41:05 +0200 |
|---|---|---|
| committer | pml68 <contact@pml68.dev> | 2025-04-04 00:44:44 +0200 |
| commit | 9b6cae696c55439f2d72186ff63864472518eccf (patch) | |
| tree | f5056aac662800720fa24f128295540e4c7b94e5 | |
| parent | feat: disable Xinerama in `dwm` and `dmenu` (diff) | |
| download | suckless-setup-9b6cae696c55439f2d72186ff63864472518eccf.tar.gz | |
feat: add volume level to slstatus
| -rw-r--r-- | laptop.diff | 42 | ||||
| -rw-r--r-- | slstatus/config.def.h | 1 | ||||
| -rw-r--r-- | slstatus/config.h | 1 |
3 files changed, 20 insertions, 24 deletions
diff --git a/laptop.diff b/laptop.diff index c02a8e2..d1c2537 100644 --- a/laptop.diff +++ b/laptop.diff @@ -1,34 +1,28 @@ diff --git a/slstatus/config.def.h b/slstatus/config.def.h -index 9eb7384..b9536b3 100644 +index c273999..d8c35ed 100644 --- a/slstatus/config.def.h +++ b/slstatus/config.def.h -@@ -67,8 +67,8 @@ static const struct arg args[] = { - - /* function format argument interval (in ms) */ - -- {datetime, "%s;", "%G. %B. %e. %a"}, -- {keymap, "%s ", NULL}, -- {datetime, "%s ", "%H:%M:%S"}, -+ {datetime, "%s;", "%G. %B. %e. %a"}, {keymap, "%s ", NULL}, -+ {wifi_essid, "%s ", "wlan0"}, {battery_perc, "%s%%", "BAT1"}, -+ {datetime, " %s ", "%H:%M:%S"}, - +@@ -70,6 +70,8 @@ static const struct arg args[] = { + {datetime, "%s;", "%G. %B. %e. %a"}, + {run_command, "%s%% ", "pulsemixer --get-volume | awk '{print $2 }'"}, + {keymap, "%s ", NULL}, ++ {wifi_essid, "%s ", "wlan0"}, ++ {battery_perc, "%s%% ", "BAT1"}, + {datetime, "%s ", "%H:%M:%S"}, + }; diff --git a/slstatus/config.h b/slstatus/config.h -index 9eb7384..b9536b3 100644 +index c273999..d8c35ed 100644 --- a/slstatus/config.h +++ b/slstatus/config.h -@@ -67,8 +67,8 @@ static const struct arg args[] = { - - /* function format argument interval (in ms) */ - -- {datetime, "%s;", "%G. %B. %e. %a"}, -- {keymap, "%s ", NULL}, -- {datetime, "%s ", "%H:%M:%S"}, -+ {datetime, "%s;", "%G. %B. %e. %a"}, {keymap, "%s ", NULL}, -+ {wifi_essid, "%s ", "wlan0"}, {battery_perc, "%s%%", "BAT1"}, -+ {datetime, " %s ", "%H:%M:%S"}, - +@@ -70,6 +70,8 @@ static const struct arg args[] = { + {datetime, "%s;", "%G. %B. %e. %a"}, + {run_command, "%s%% ", "pulsemixer --get-volume | awk '{print $2 }'"}, + {keymap, "%s ", NULL}, ++ {wifi_essid, "%s ", "wlan0"}, ++ {battery_perc, "%s%% ", "BAT1"}, + {datetime, "%s ", "%H:%M:%S"}, + }; diff --git a/st/config.def.h b/st/config.def.h index f5b4265..aec5a49 100644 diff --git a/slstatus/config.def.h b/slstatus/config.def.h index 9eb7384..c273999 100644 --- a/slstatus/config.def.h +++ b/slstatus/config.def.h @@ -68,6 +68,7 @@ static const struct arg args[] = { /* function format argument interval (in ms) */ {datetime, "%s;", "%G. %B. %e. %a"}, + {run_command, "%s%% ", "pulsemixer --get-volume | awk '{print $2 }'"}, {keymap, "%s ", NULL}, {datetime, "%s ", "%H:%M:%S"}, diff --git a/slstatus/config.h b/slstatus/config.h index 9eb7384..c273999 100644 --- a/slstatus/config.h +++ b/slstatus/config.h @@ -68,6 +68,7 @@ static const struct arg args[] = { /* function format argument interval (in ms) */ {datetime, "%s;", "%G. %B. %e. %a"}, + {run_command, "%s%% ", "pulsemixer --get-volume | awk '{print $2 }'"}, {keymap, "%s ", NULL}, {datetime, "%s ", "%H:%M:%S"}, |
