moby: button map: move vol{up,down}_hold to only act in power-off, else they may falsely trigger during other power-on actions

This commit is contained in:
Colin 2024-04-22 05:13:29 +00:00
parent 2c011df252
commit b4653b20a2

View File

@ -140,13 +140,6 @@ dispatchDefault() {
voldown_tap*)
handleWith wpctl set-volume @DEFAULT_AUDIO_SINK@ "$VOL_INCR"%-
;;
volup_hold*)
handleWith playerctl position 30+
;;
voldown_hold*)
handleWith playerctl position 10-
;;
esac
}
@ -156,6 +149,12 @@ dispatchOff() {
# power once => unlock
handleWith allOn
;;
volup_hold*)
handleWith playerctl position 30+
;;
voldown_hold*)
handleWith playerctl position 10-
;;
esac
}