diff options
| author | Luke Smith <luke@lukesmith.xyz> | 2018-04-22 17:39:23 -0700 |
|---|---|---|
| committer | Luke Smith <luke@lukesmith.xyz> | 2018-04-22 17:39:23 -0700 |
| commit | cec92894fcf3382a2d1dd8450c63767941fed404 (patch) | |
| tree | 18250c00e6be565f8e16ae0bc45a9c7774f1034e /.scripts/i3volume | |
| parent | 84557167e6a3c678202d4edb6dc06d1c8dfde51f (diff) | |
| download | eibhear-cec92894fcf3382a2d1dd8450c63767941fed404.tar.gz eibhear-cec92894fcf3382a2d1dd8450c63767941fed404.tar.zst eibhear-cec92894fcf3382a2d1dd8450c63767941fed404.zip | |
i3blocks scripts added
Diffstat (limited to '.scripts/i3volume')
| -rwxr-xr-x | .scripts/i3volume | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/.scripts/i3volume b/.scripts/i3volume new file mode 100755 index 0000000..b47a6fa --- /dev/null +++ b/.scripts/i3volume @@ -0,0 +1,12 @@ +#!/bin/bash + +case $BLOCK_BUTTON in + 1) $TERMINAL -e ncpamixer & disown ;; + 3) pamixer -t ;; + 4) pamixer -i 5 ;; + 5) pamixer -d 5 ;; +esac + +printpastatus() { [[ $(pamixer --get-mute) = "true" ]] && echo -n 🔇 && exit +echo 🔊 $(pamixer --get-volume)% ;} +printpastatus |
