diff options
Diffstat (limited to '')
-rwxr-xr-x | .local/bin/status/sb-volume | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/.local/bin/status/sb-volume b/.local/bin/status/sb-volume new file mode 100755 index 0000000..f7b3cb1 --- /dev/null +++ b/.local/bin/status/sb-volume @@ -0,0 +1,23 @@ +#!/bin/sh + +vol="$(mixer vol | awk '{print $7}' | cut -d ':' -f1)" + +if [ "$vol" -gt "70" ]; then + icon="" +elif [ "$vol" -gt "30" ]; then + icon="" +elif [ "$vol" -gt "0" ]; then + icon="" +else + icon="婢" +fi + +mic="$(mixer rec | awk '{print $7}' | cut -d ':' -f1)" + +if [ "$mic" -gt "0" ]; then + micon="" +else + micon="" +fi + +echo "$icon | $micon" |