nixos-config/user/eww/scripts/getvol

3 lines
105 B
Plaintext
Raw Permalink Normal View History

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