diff options
author | Shubham Saini <shubham6405@pm.me> | 2020-06-24 10:50:54 +0000 |
---|---|---|
committer | Shubham Saini <shubham6405@pm.me> | 2020-06-24 10:50:54 +0000 |
commit | f5ce37e36e7ce4f3c3c3d837e9a8f33b4dc32190 (patch) | |
tree | af6d31fe1ae1c2c4fe1e2ce27b74c5f3a4d946ad | |
parent | a656c375e9ce53b2074ae5798abd436f5daf8d9b (diff) |
added muteeee
-rwxr-xr-x | spectrwm/.config/spectrwm/statusbar | 9 |
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 | ||
3 | vol(){ | 3 | vol(){ |
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 | ||
8 | bat() { | 13 | bat() { |
@@ -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 | ||