summaryrefslogtreecommitdiffstats
path: root/.local
diff options
context:
space:
mode:
authorJameson <108906685+2084x@users.noreply.github.com>2023-01-15 16:26:57 +1100
committerGitHub <noreply@github.com>2023-01-15 05:26:57 +0000
commit588aeb9a1e52b8c3e1d33c07272be7f97f5f9b71 (patch)
treec44fb18f5fe30766e6f596a692443495a0606161 /.local
parent450745a467524a0bacdae2679deb370ac2a2e9d5 (diff)
downloadeibhear-588aeb9a1e52b8c3e1d33c07272be7f97f5f9b71.tar.gz
eibhear-588aeb9a1e52b8c3e1d33c07272be7f97f5f9b71.tar.zst
eibhear-588aeb9a1e52b8c3e1d33c07272be7f97f5f9b71.zip
Use wpctl to change volume (#1248)
Diffstat (limited to '.local')
-rwxr-xr-x.local/bin/statusbar/sb-volume6
1 files changed, 3 insertions, 3 deletions
diff --git a/.local/bin/statusbar/sb-volume b/.local/bin/statusbar/sb-volume
index d17ce66..52999f4 100755
--- a/.local/bin/statusbar/sb-volume
+++ b/.local/bin/statusbar/sb-volume
@@ -4,9 +4,9 @@
case $BLOCK_BUTTON in
1) setsid -f "$TERMINAL" -e pulsemixer ;;
- 2) pamixer -t ;;
- 4) pamixer --allow-boost -i 1 ;;
- 5) pamixer --allow-boost -d 1 ;;
+ 2) wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle ;;
+ 4) wpctl set-volume @DEFAULT_AUDIO_SINK@ 1%+ ;;
+ 5) wpctl set-volume @DEFAULT_AUDIO_SINK@ 1%- ;;
3) notify-send "📢 Volume module" "\- Shows volume 🔊, 🔇 if muted.
- Middle click to mute.
- Scroll to change." ;;