diff options
author | zachir <zachir@librem.one> | 2022-10-09 00:42:48 -0500 |
---|---|---|
committer | zachir <zachir@librem.one> | 2022-10-09 00:42:48 -0500 |
commit | d36e7cd095371deb8b70115fc7817d351bcfa645 (patch) | |
tree | e21aaae32fcd6debd1ff82e0bbb2e69f0208c4d2 /volume | |
parent | 0217995cda2e5b3700b911b5561e99c659fba92b (diff) |
remove dwmblocks (those will be in their own repo
Diffstat (limited to 'volume')
-rwxr-xr-x | volume | 23 |
1 files changed, 0 insertions, 23 deletions
@@ -1,23 +0,0 @@ -#!/sbin/sh - -case $BLOCK_BUTTON in - 1) - pgrep -x pipewire >/dev/null && MIXER="pulsemixer" || \ - pgrep -x pulseaudio >/dev/null && MIXER="pulsemixer" || \ - MIXER="alsamixer" - setsid -f $TERMINAL -e $MIXER - ;; - 2) notify-send "Volume module" "\- Shows volume, X if muted. -- Middle click to show this message. -- Right click to mute. -- Scroll to change." ;; - 3) volsv -t ;; - 4) volsv -i ;; - 5) volsv -d ;; - 6) "$TERMINAL" -e "$EDITOR" "$0" ;; -esac -volstat="$(volsv -v)" -mutstat="$(volsv -g)" -echo "$mutstat" | grep -q "\[off\]" && printf "[X]" && exit -vol="$(echo "$volstat" | grep '[0-9]\+%' | sed "s,.* \([0-9]\+\)%.*,\1,;1q")" -printf "[%s]" "$vol" |