From f5ce37e36e7ce4f3c3c3d837e9a8f33b4dc32190 Mon Sep 17 00:00:00 2001 From: Shubham Saini Date: Wed, 24 Jun 2020 16:20:54 +0530 Subject: added muteeee --- spectrwm/.config/spectrwm/statusbar | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'spectrwm') diff --git a/spectrwm/.config/spectrwm/statusbar b/spectrwm/.config/spectrwm/statusbar index 01e1223..150c519 100755 --- a/spectrwm/.config/spectrwm/statusbar +++ b/spectrwm/.config/spectrwm/statusbar @@ -2,7 +2,12 @@ vol(){ vol=$(pulsemixer --get-volume | awk '{print $1}') - echo -e "+@fg=1;vol+@fg=0; $vol% " + mute=$(pulsemixer --get-mute) + if [ "$mute" == 1 ]; then + echo -e "+@fg=1;vol+@fg=0; muted " + elif [ "$mute" == 0 ]; then + echo -e "+@fg=1;vol+@fg=0; $vol% " + fi } bat() { @@ -11,7 +16,7 @@ bat() { if [ "$status" == "Charging" ]; then echo -e "+@fg=1;bat+@fg=0; +$power% " elif [ "$status" == "Discharging" ]; then - echo -e "+@fg=1;bat+@fg=0; -$power% " + echo -e "+@fg=1;bat+@fg=0; $power% " fi } -- cgit v1.2.3