diff --git a/suckless/slstatus/config.def.h b/suckless/slstatus/config.def.h index 76913ce6..e8a0d05f 100644 --- a/suckless/slstatus/config.def.h +++ b/suckless/slstatus/config.def.h @@ -66,7 +66,7 @@ static const char unknown_str[] = "??"; static const struct arg args[] = { /* function format argument */ { battery_perc, "󰂉 %s%% ", "BAT0" }, - { vol_perc, " %s%% ", NULL }, + { run_command, " %s%% ", "wpctl get-volume @DEFAULT_AUDIO_SINK@ | cut -c 11-" }, { cpu_perc, " %s%% ", NULL }, { ram_used, " %s", NULL }, { ram_perc, "(%s%%) ", NULL }, diff --git a/suckless/slstatus/config.h b/suckless/slstatus/config.h index 76913ce6..e8a0d05f 100644 --- a/suckless/slstatus/config.h +++ b/suckless/slstatus/config.h @@ -66,7 +66,7 @@ static const char unknown_str[] = "??"; static const struct arg args[] = { /* function format argument */ { battery_perc, "󰂉 %s%% ", "BAT0" }, - { vol_perc, " %s%% ", NULL }, + { run_command, " %s%% ", "wpctl get-volume @DEFAULT_AUDIO_SINK@ | cut -c 11-" }, { cpu_perc, " %s%% ", NULL }, { ram_used, " %s", NULL }, { ram_perc, "(%s%%) ", NULL },