diff options
author | Camil Staps | 2016-02-09 16:02:16 +0100 |
---|---|---|
committer | Camil Staps | 2016-11-30 19:11:07 +0100 |
commit | d6051f6a1768e03f77ea05abc69df06f810d98fd (patch) | |
tree | e40639815162dd750f498acf96883862d74006ce /bin | |
parent | Improved volume in status bar (recognises mute) (diff) |
Using xmobar's Volume plugin (requires -fwith_alse)
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/volume | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/bin/volume b/bin/volume deleted file mode 100755 index 1250a80..0000000 --- a/bin/volume +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/bash -outputs=(Left Right) -i=1 -for o in ${outputs[@]}; do - vol=$(amixer get Master |grep "$o" |grep %) - if [[ "$vol" == *"off"* ]]; then - volumes[$i]="M" - else - volumes[$i]=$(echo $vol |awk '{print $5}'|sed 's/[^0-9%]//g') - fi - let i=i+1 -done -echo ${volumes[*]} |