nixos/home/desktop/config/eww/bar/scripts/getvol

3 lines
105 B
Plaintext
Raw Normal View History

#!/bin/sh
amixer -D pulse sget Master | grep 'Left:' | awk -F'[][]' '{ print $2 }' | tr -d '%' | head -1