helm/os/arch/.config/panel/lemons/volume.sh
2016-10-19 16:56:37 +02:00

11 lines
304 B
Bash
Executable file

#!/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" &