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:
parent
2c011df252
commit
b4653b20a2
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user