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.whitelistDbus = [ "user" ]; #< to launch applications
|
||||
sandbox.whitelistSystemctl = true; #< to restart bonsaid on failure
|
||||
sandbox.extraRuntimePaths = [ "sway" ];
|
||||
sandbox.keepPidsAndProc = true; #< for toggling the keyboard
|
||||
};
|
||||
|
@@ -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+
|
||||
;;
|
||||
|
Reference in New Issue
Block a user