helm/os/arch/.config/panel/lemons/volume.sh

11 lines
304 B
Bash
Raw Normal View History

2016-10-19 07:56:37 -07:00
#!/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" &