summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShubham Saini <shubham6405@pm.me>2020-06-24 10:50:54 +0000
committerShubham Saini <shubham6405@pm.me>2020-06-24 10:50:54 +0000
commitf5ce37e36e7ce4f3c3c3d837e9a8f33b4dc32190 (patch)
treeaf6d31fe1ae1c2c4fe1e2ce27b74c5f3a4d946ad
parenta656c375e9ce53b2074ae5798abd436f5daf8d9b (diff)
added muteeee
-rwxr-xr-xspectrwm/.config/spectrwm/statusbar9
1 files changed, 7 insertions, 2 deletions
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 @@
2 2
3vol(){ 3vol(){
4 vol=$(pulsemixer --get-volume | awk '{print $1}') 4 vol=$(pulsemixer --get-volume | awk '{print $1}')
5 echo -e "+@fg=1;vol+@fg=0; $vol% " 5 mute=$(pulsemixer --get-mute)
6 if [ "$mute" == 1 ]; then
7 echo -e "+@fg=1;vol+@fg=0; muted "
8 elif [ "$mute" == 0 ]; then
9 echo -e "+@fg=1;vol+@fg=0; $vol% "
10 fi
6} 11}
7 12
8bat() { 13bat() {
@@ -11,7 +16,7 @@ bat() {
11 if [ "$status" == "Charging" ]; then 16 if [ "$status" == "Charging" ]; then
12 echo -e "+@fg=1;bat+@fg=0; +$power% " 17 echo -e "+@fg=1;bat+@fg=0; +$power% "
13 elif [ "$status" == "Discharging" ]; then 18 elif [ "$status" == "Discharging" ]; then
14 echo -e "+@fg=1;bat+@fg=0; -$power% " 19 echo -e "+@fg=1;bat+@fg=0; $power% "
15 fi 20 fi
16} 21}
17 22