diff options
| author | 0scar <qgt268@alumni.ku.dk> | 2021-06-03 21:33:31 +0000 |
|---|---|---|
| committer | 0scar <qgt268@alumni.ku.dk> | 2021-06-03 21:33:31 +0000 |
| commit | 6e4a15d79352ca2707a3b0d81d158228a7d14704 (patch) | |
| tree | a526da4169c76175f1e528534d67772bc13dfabb /.local/bin/statusbar/volinfo | |
| parent | a38dc1a774d012b2da71716365d1d254b650dd48 (diff) | |
Add/move statusbar scripts
Diffstat (limited to '.local/bin/statusbar/volinfo')
| -rwxr-xr-x | .local/bin/statusbar/volinfo | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/.local/bin/statusbar/volinfo b/.local/bin/statusbar/volinfo new file mode 100755 index 0000000..fd09b13 --- /dev/null +++ b/.local/bin/statusbar/volinfo @@ -0,0 +1,13 @@ +#!/usr/bin/env sh + +ARG=${1:-$BLOCK_BUTTON} + +case $ARG in + 1) pamixer -t && sigdwmblocks 4;; + 4) pamixer -i 1 && sigdwmblocks 4;; + 5) pamixer -d 1 && sigdwmblocks 4;; +esac + +VOL=$(pamixer --get-volume) + +pamixer --get-mute >/dev/null && echo -ne "\x0c\ufa80${VOL}\x0b" || echo -ne "\ufa7d${VOL}" |
