system/programs/xmonad/xmobar/scripts/get_volume.sh

4 lines
88 B
Bash
Raw Normal View History

#!/bin/bash
echo $(amixer -D pulse sget Master | egrep -o "[0-9]+%" | head -n 1)
exit 0