nixos-config/user/eww/scripts/getvol
2022-08-20 17:46:03 -03:00

3 lines
105 B
Bash
Executable file

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