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 /slstatus | |
| parent | feat: disable Xinerama in `dwm` and `dmenu` (diff) | |
| download | suckless-setup-9b6cae696c55439f2d72186ff63864472518eccf.tar.gz | |
feat: add volume level to slstatus
Diffstat (limited to '')
| -rw-r--r-- | slstatus/config.def.h | 1 | ||||
| -rw-r--r-- | slstatus/config.h | 1 |
2 files changed, 2 insertions, 0 deletions
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"}, |
