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:
2024-12-16 01:31:48 +00:00
parent e145a8f003
commit 3b0f97a795
2 changed files with 5 additions and 0 deletions

View File

@@ -99,6 +99,7 @@ in
];
sandbox.whitelistAudio = true;
sandbox.whitelistDbus = [ "user" ]; #< to launch applications
sandbox.whitelistSystemctl = true; #< to restart bonsaid on failure
sandbox.extraRuntimePaths = [ "sway" ];
sandbox.keepPidsAndProc = true; #< for toggling the keyboard
};

View File

@@ -205,6 +205,10 @@ dispatchOff() {
# power once => unlock
handleWith allOn
;;
"power_tap_1_hold")
# power tap->hold: escape hatch for when bonsaid locks up
handleWith systemctl restart bonsaid
;;
volup_hold*)
handleWith playerctl position 30+
;;