summaryrefslogtreecommitdiff
path: root/spectrwm
diff options
context:
space:
mode:
Diffstat (limited to 'spectrwm')
-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