Source

dotfiles / bin / volume.sh

1
2
3
4
5
6
7
#!/bin/bash
#vol=$(amixer get Master | awk -F'[]%[]' '/%/ {if ($7 == "off") { print "MM" } else { print $2/10 }}' | head -n 1)
vol=$(amixer get Master | awk -F'[]%[]' '/%/ {if ($7 == "off") { print "MM" } else { print $2/10 }}' | head -n 1)

echo Vol: $vol

exit 0