From af120ab348f2e1a5a39dec035ed9dcf84189a64e Mon Sep 17 00:00:00 2001 From: Biswakalyan Bhuyan Date: Mon, 3 Oct 2022 21:42:20 +0530 Subject: dotfiles --- eww/scripts/audio | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 eww/scripts/audio (limited to 'eww/scripts/audio') 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 '[%]' +} + +"$@" -- cgit v1.2.3-59-g8ed1b