diff options
Diffstat (limited to 'eww/scripts/audio')
-rwxr-xr-x | eww/scripts/audio | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/eww/scripts/audio b/eww/scripts/audio new file mode 100755 index 0000000..570d80e --- /dev/null +++ b/eww/scripts/audio @@ -0,0 +1,15 @@ +#!/bin/sh + +headvol() { + amixer sget Headphone | grep 'Left:' | cut -d\ -f7 | tr -d '[%]' +} + +mastervol() { + amixer get Master | awk '$0~/%/{print $4}' | tr -d '[%]' +} + +micvol() { + amixer sget Mic | grep 'Left:' | cut -d\ -f7 | tr -d '[%]' +} + +"$@" |