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:
@@ -106,14 +106,6 @@ if [ "$STATE" = "screenoff" ]; then
|
|||||||
# power toggle during deep sleep often gets misread as power hold, so treat same
|
# power toggle during deep sleep often gets misread as power hold, so treat same
|
||||||
handle_with sxmo_state.sh set unlock
|
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
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -143,6 +135,15 @@ case "$ACTION" in
|
|||||||
"powerhold_voldown")
|
"powerhold_voldown")
|
||||||
handle_with pactl set-sink-volume @DEFAULT_SINK@ -"$VOL_INCR_1%"
|
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
|
esac
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user