diff options
Diffstat (limited to '.local/bin/volume-info')
-rwxr-xr-x | .local/bin/volume-info | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/.local/bin/volume-info b/.local/bin/volume-info new file mode 100755 index 0000000..d87137e --- /dev/null +++ b/.local/bin/volume-info @@ -0,0 +1,9 @@ +#!/bin/sh + +cur_vol=$(pamixer --get-volume) + +if [ $(pamixer --get-mute) = true ]; then + printf 'mt \n' "$cur_vol" +else + printf '%02d \n' "$cur_vol" +fi |