diff options
author | Vasil Zlatanov <v@skozl.com> | 2019-10-27 13:29:09 +0000 |
---|---|---|
committer | Vasil Zlatanov <v@skozl.com> | 2019-10-27 13:29:09 +0000 |
commit | b1273694c3918c98c1474ff1cac452bda4332bf6 (patch) | |
tree | f2e34b2cec8956c6d7c3f20ddab1ea761ea3f4ee /Panel/lemonbar | |
parent | 7506a654d4bc2cacb22acd7caafe56ffa3ea8677 (diff) | |
download | dotfiles-b1273694c3918c98c1474ff1cac452bda4332bf6.tar.gz dotfiles-b1273694c3918c98c1474ff1cac452bda4332bf6.tar.bz2 dotfiles-b1273694c3918c98c1474ff1cac452bda4332bf6.zip |
Use pamixer volume script for lemonbar
Diffstat (limited to 'Panel/lemonbar')
-rwxr-xr-x | Panel/lemonbar/panel | 2 | ||||
-rwxr-xr-x | Panel/lemonbar/volume | 7 |
2 files changed, 8 insertions, 1 deletions
diff --git a/Panel/lemonbar/panel b/Panel/lemonbar/panel index 4008682..88ef196 100755 --- a/Panel/lemonbar/panel +++ b/Panel/lemonbar/panel @@ -11,7 +11,7 @@ mkfifo -m 777 "$PANEL_FIFO" #bspc control --subscribe > "$PANEL_FIFO" & ./windows > "$PANEL_FIFO" & #echo "D`rpws current`" > "$PANEL_FIFO" & -volume -f 'V%i' > "$PANEL_FIFO" & +./volume > "$PANEL_FIFO" & battery -i 60 -sf 'B%s %i' > "$PANEL_FIFO" & clock -i 60 -sf 'Z%d %a %H:%M' > "$PANEL_FIFO" & ./music > "$PANEL_FIFO" & diff --git a/Panel/lemonbar/volume b/Panel/lemonbar/volume new file mode 100755 index 0000000..df38b5c --- /dev/null +++ b/Panel/lemonbar/volume @@ -0,0 +1,7 @@ +#!/bin/sh +SINK_ID=9 +while true;do + volume=$(pamixer --sink $SINK_ID --get-volume) + echo "V$volume" + sleep 70 +done |