projects
/
~bandali
/
configs
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
always-up-to-date volume/icon in panel
[~bandali/configs]
/
bspwm
/
.local
/
bin
/
panel
diff --git
a/bspwm/.local/bin/panel
b/bspwm/.local/bin/panel
index
a981f43
..
2f78550
100755
(executable)
--- a/
bspwm/.local/bin/panel
+++ b/
bspwm/.local/bin/panel
@@
-15,12
+15,12
@@
bspc control --subscribe > "$PANEL_FIFO" &
#xtitle -sf 'T%s' > "$PANEL_FIFO" &
#clock -sf 'S%a %H:%M' > "$PANEL_FIFO" &
#xtitle -sf 'T%s' > "$PANEL_FIFO" &
#clock -sf 'S%a %H:%M' > "$PANEL_FIFO" &
-
#
pamixer --get-volume > /tmp/volinfo
-
#
if $(pamixer --get-mute) ; then
+pamixer --get-volume > /tmp/volinfo
+if $(pamixer --get-mute) ; then
echo ⮝ > /tmp/spkicon
echo ⮝ > /tmp/spkicon
-
#
else
-
#
echo ⮟ > /tmp/spkicon
-
#
fi
+else
+ echo ⮟ > /tmp/spkicon
+fi
conky > "$PANEL_FIFO" &
. panel_colors
conky > "$PANEL_FIFO" &
. panel_colors