From 9b6cae696c55439f2d72186ff63864472518eccf Mon Sep 17 00:00:00 2001 From: pml68 Date: Fri, 4 Apr 2025 00:41:05 +0200 Subject: feat: add volume level to slstatus --- slstatus/config.def.h | 1 + slstatus/config.h | 1 + 2 files changed, 2 insertions(+) (limited to 'slstatus') 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"}, -- cgit v1.2.3