mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-03-20 01:37:45 +01:00
Also update volume module on monitor (dis)connect and on exiting pulsemixer
This commit is contained in:
parent
7ce43eef1e
commit
09e0cd58a8
@ -3,7 +3,7 @@
|
||||
# Prints the current volume or 🔇 if muted.
|
||||
|
||||
case $BLOCK_BUTTON in
|
||||
1) setsid -f "$TERMINAL" -e pulsemixer ;;
|
||||
1) setsid -w -f "$TERMINAL" -e pulsemixer; pkill -RTMIN+10 "${STATUSBAR:-dwmblocks}" ;;
|
||||
2) wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle ;;
|
||||
4) wpctl set-volume @DEFAULT_AUDIO_SINK@ 1%+ ;;
|
||||
5) wpctl set-volume @DEFAULT_AUDIO_SINK@ 1%- ;;
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Update the volume module in the statusbar whenever
|
||||
# headphones are added or removed.
|
||||
# headphones and monitors are added or removed.
|
||||
|
||||
while :; do
|
||||
grep -qP -m1 '^jack\/headphone' <(acpi_listen) || exit 1
|
||||
grep -q -m1 '^jack/headphone\|^jack/lineout' <(acpi_listen) || exit 1
|
||||
pkill -RTMIN+10 "${STATUSBAR:-dwmblocks}"
|
||||
done
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user