diff options
| author | stkhan <personal@slickd.xyz> | 2023-03-31 19:42:29 -0500 |
|---|---|---|
| committer | stkhan <personal@slickd.xyz> | 2023-03-31 19:42:29 -0500 |
| commit | 0e71af11a27631e45c0160842e4498507420eff0 (patch) | |
| tree | 4eed4eba5b0273f26bc55243cce36a2670ac0fef /wm/someblocks/dwmblocks-volume | |
| parent | 07afc07ffff324f3a355f2437bd643b616fe0af4 (diff) | |
bar and blocks
Diffstat (limited to 'wm/someblocks/dwmblocks-volume')
| -rwxr-xr-x | wm/someblocks/dwmblocks-volume | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/wm/someblocks/dwmblocks-volume b/wm/someblocks/dwmblocks-volume new file mode 100755 index 0000000..048fa04 --- /dev/null +++ b/wm/someblocks/dwmblocks-volume @@ -0,0 +1,13 @@ +#!/bin/sh + +case $BLOCK_BUTTON in + 4) pamixer --allow-boost -i 1;; + 5) pamixer --allow-boost -d 1;; +esac +ICON="🔉" +VOL=$(pamixer --get-volume) + +if [ $(pamixer --get-mute) = 'true' ]; then + ICON="🔇" +fi +echo "$ICON $VOL%" |