panel > volume lemon: only initialize once (leave the rest to volume.sh)

This commit is contained in:
Henrik Lissner 2016-10-20 22:47:57 +02:00
parent fdd36d3a2e
commit e2fa956571

View file

@ -1,10 +1,4 @@
#!/usr/bin/env bash
# volume messages will be sent when volume is changed
echo "V$(amixer get Master | sed -n 's/^.*\[\([0-9]\+\)%.*$/\1/p' | uniq)" > "$PANEL_FIFO" &
# while :
# do
# echo "V$(amixer get Master | sed -n 's/^.*\[\([0-9]\+\)%.*$/\1/p' | uniq)"
# sleep 1
# done > "$PANEL_FIFO" &
# initialize volume display (once)
echo "V$(volume.sh)" > "$PANEL_FIFO" &