Commit Graph

66 Commits

Author SHA1 Message Date
0f29c667aa sane-input-handler: move to pkgs/by-name 2025-07-19 19:21:49 +00:00
2747079373 sane-input-handler: fix power_then_voldown keybinding 2025-04-01 05:46:43 +00:00
4eec2cba7a sane-input-handler: fix typo: swamsg -> swaymsg 2025-04-01 04:13:40 +00:00
f0fbf78b1a sane-input-handler: fix toggleKeyboard improperly calling effect
'cant call proc when errexit is set...' this seems like a genuine limitation of osh
2025-03-31 07:40:32 +00:00
9fcaba8bf3 sane-input-handler: express the logic in a way thats more immune to the previous class of quoting error
had to introduce some hacks to keep the debuggability though. i don't like it.
2025-03-31 07:10:31 +00:00
6da4a5ab9d sane-input-handler: dont crash on unmapped actions 2025-03-31 04:16:04 +00:00
65cb6a027d sane-input-handler: log fullscreen state from handleWith 2025-03-30 04:55:01 +00:00
bff5d5a757 sane-input-handler: activate media controls when inside a fullscreen app 2025-03-30 04:17:28 +00:00
47659f9649 sane-input-handler: lift command execution up to the toplevel 2025-03-30 03:44:27 +00:00
a01b99c2dc sane-input-handler: factor out the side effects from the mapping 2025-03-30 03:19:20 +00:00
e83bcd07f8 sane-input-handler: port to oil shell 2025-03-30 03:08:07 +00:00
03635fcf31 sane-input-handler: implement --dry-run flag 2025-03-30 00:19:16 +00:00
617babafad sane-input-handler: implement --verbose flag 2025-03-30 00:10:00 +00:00
da2217f194 sane-input-handler: lengthen the power-tap-2 threshold from 750ms to 825ms 2025-02-10 05:21:48 +00:00
d419a3cb08 sane-input-handler: increase power-tap-hold duration from 750ms -> 875ms
i'm *very occasionally* killing windows when i mean to screen-off, but it's frequent enough that i'm now hesitant to double-tap power
2025-02-10 03:45:39 +00:00
b03b20f2f4 try (but fail) to enable dbus sandboxing for more apps: seems xdg-dbus-proxy doesnt nest! 2025-01-11 00:45:27 +00:00
2a1d6fff08 programs: refactor whitelistDbus 2025-01-06 10:02:21 +00:00
3b0f97a795 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
2024-12-16 01:31:48 +00:00
ef3f1b63dc sane-input-handler: reduce vol-up/down repeat latency and extend the max trigger counts from 5 to 8 2024-11-07 09:10:43 +00:00
7b04d24886 sane-input-handler: tweak hold times
decrease power-hold-to-play/pause; increase power-double-tap timeout; straddle volume-hold: shorter time-to-first-hold but longer time-between-holds
2024-11-03 09:53:05 +00:00
11b706b132 refactor: use lib.getExe where applicable 2024-10-12 19:34:42 +00:00
7ae107d42a sane-input-handler: add PinePhone Pro power/volume buttons 2024-09-25 13:31:22 +00:00
31615340a7 programs/assorted: remove explicit (and extraneous) sandbox.method = "bunpen" declarations 2024-09-21 23:35:06 +00:00
e8b957a4dc megapixels-next: make it the default camera 2024-09-21 12:58:06 +00:00
de47a0521d wvkbd: sandbox with bunpen 2024-09-07 02:14:20 +00:00
82dcd40829 sane-input-handler: sandbox with bunpen 2024-09-06 05:21:38 +00:00
9340f52df1 modules/programs: rename isolatePids -> keepPids, isolateUsers -> keepUsers
this follows my explicit whitelisting elsewhere
2024-09-06 04:06:42 +00:00
05bc5923cf sway: sandbox out-of-place 2024-08-16 02:48:24 +00:00
a75a341b56 sane-wipe: fix so pkill is available 2024-06-28 04:39:39 +00:00
c50a4d1d71 static-nix-shell: fix mkBash scripts to actually be invokable from the CLI
they need the `bash` package! how did this work before?
2024-06-15 07:42:04 +00:00
0f97e3d7ed sane-input-handler: fix that input events werent suppressed during screen-off
note that this doesn't fix input gating during the
screenoff-after-inactivity case.
2024-06-09 18:28:31 +00:00
7e32fab5d4 refactor: moby: split more stuff out of the toplevel config and hide behind roles/etc 2024-06-04 15:58:51 +00:00
d3937487e6 moby: cleanup bonsai <-> sway circular dependency (slightly) 2024-05-30 12:43:09 +00:00
3fdeacc336 sane-input-handler: add a --help command 2024-05-30 12:30:41 +00:00
d865be952a refactor: sandboxing: replace manual --sanebox-keep-namespace pid config with isolatePids = false 2024-05-29 12:56:46 +00:00
309797fe23 sane-input-handler: fix unrecoverable terminal state
bonsai is prone to miss inputs during high CPU load.
2024-05-24 04:29:34 +00:00
a6b10244eb sane-input-handler: set vim filetype hint 2024-05-24 04:06:53 +00:00
ca57fd692f sane-input-handler: simplify the volume button controls; reduce vol-hold repeat count to 3 2024-05-23 02:50:38 +00:00
0fc4f83fc9 sane-input-handler: bump volume hold time from 600ms -> 750ms
hopefully this decreases the number of volup inputs which are misread as volup-hold (which happens a lot when the screen is off...?)
2024-05-19 00:34:23 +00:00
adfaa7f9c1 sane-sandboxed -> sanebox 2024-05-15 01:41:40 +00:00
08a9b838e5 sane-input-handler: fix log bog 2024-04-30 19:22:37 +00:00
b7dd40e558 sane-open-desktop -> sane-open and have it auto-open/close the keyboard based on what an app wants 2024-04-30 19:22:37 +00:00
7f2abf7e6e sane-input-handler: fix missing newline when logging 2024-04-30 15:30:39 +00:00
825812e511 sane-input-handler: reset rofi directory to ~ when using the app + fsbrowser 2024-04-30 15:29:00 +00:00
69e5495cc9 sane-input-handler: set keyboard as appropriate for file/app browser 2024-04-30 15:16:59 +00:00
b422f15b59 sane-input-handler: swap volup tap/hold actions 2024-04-30 14:38:17 +00:00
9cbe774c5a sane-input-handler: fix power_hold -> power_tap_1_hold when inhibited by rofi 2024-04-22 06:27:33 +00:00
b4653b20a2 moby: button map: move vol{up,down}_hold to only act in power-off, else they may falsely trigger during other power-on actions 2024-04-22 05:13:29 +00:00
2c011df252 moby: tweak button mappings
- power hold: toggle media
- power x1 -> hold: kill

now nothing in screenoff uses power x2, which means we can get to
screen-on without waiting for any timeout.
2024-04-22 05:10:35 +00:00
9d472bb290 sane-input-handler: clean up suggestedPrograms 2024-04-22 04:13:56 +00:00