From 2575c9d3d4ccfa5e990c2a9ba4b6432ce77eae1a Mon Sep 17 00:00:00 2001 From: TrudeEH Date: Tue, 4 Jun 2024 22:57:42 +0100 Subject: [PATCH] Fix status volume for debian (pipewire) --- suckless/slstatus/config.def.h | 2 +- suckless/slstatus/config.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 },