sane-input-handler: EXPERIMENTAL: power-tap-hold to restart bonsaid when screen is off
it may be i need power_pressed.power_pressed (w/ no power_released in between) for this to work
This commit is contained in:
@@ -99,6 +99,7 @@ in
|
|||||||
];
|
];
|
||||||
sandbox.whitelistAudio = true;
|
sandbox.whitelistAudio = true;
|
||||||
sandbox.whitelistDbus = [ "user" ]; #< to launch applications
|
sandbox.whitelistDbus = [ "user" ]; #< to launch applications
|
||||||
|
sandbox.whitelistSystemctl = true; #< to restart bonsaid on failure
|
||||||
sandbox.extraRuntimePaths = [ "sway" ];
|
sandbox.extraRuntimePaths = [ "sway" ];
|
||||||
sandbox.keepPidsAndProc = true; #< for toggling the keyboard
|
sandbox.keepPidsAndProc = true; #< for toggling the keyboard
|
||||||
};
|
};
|
||||||
|
@@ -205,6 +205,10 @@ dispatchOff() {
|
|||||||
# power once => unlock
|
# power once => unlock
|
||||||
handleWith allOn
|
handleWith allOn
|
||||||
;;
|
;;
|
||||||
|
"power_tap_1_hold")
|
||||||
|
# power tap->hold: escape hatch for when bonsaid locks up
|
||||||
|
handleWith systemctl restart bonsaid
|
||||||
|
;;
|
||||||
volup_hold*)
|
volup_hold*)
|
||||||
handleWith playerctl position 30+
|
handleWith playerctl position 30+
|
||||||
;;
|
;;
|
||||||
|
Reference in New Issue
Block a user