sxmo: enable powertoggle -> volup/down for seeking even when screen is on
it's not currently mapped to anything else, so...
This commit is contained in:
parent
70693c2052
commit
f41b1cf3b5
|
@ -106,14 +106,6 @@ if [ "$STATE" = "screenoff" ]; then
|
|||
# power toggle during deep sleep often gets misread as power hold, so treat same
|
||||
handle_with sxmo_state.sh set unlock
|
||||
;;
|
||||
"powertoggle_volup"|"powerhold_volup")
|
||||
# power -> volume up: seek forward
|
||||
handle_with playerctl position 30+
|
||||
;;
|
||||
"powertoggle_voldown"|"powerhold_voldown")
|
||||
# power -> volume down: seek backward
|
||||
handle_with playerctl position 10-
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
|
@ -143,6 +135,15 @@ case "$ACTION" in
|
|||
"powerhold_voldown")
|
||||
handle_with pactl set-sink-volume @DEFAULT_SINK@ -"$VOL_INCR_1%"
|
||||
;;
|
||||
|
||||
"powertoggle_volup"|"powerhold_volup")
|
||||
# power -> volume up: seek forward
|
||||
handle_with playerctl position 30+
|
||||
;;
|
||||
"powertoggle_voldown"|"powerhold_voldown")
|
||||
# power -> volume down: seek backward
|
||||
handle_with playerctl position 10-
|
||||
;;
|
||||
esac
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user