You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Restructure help sections to use gohelp.Item() instead of raw .Text() blocks
- Add missing .tappressrelease and .tapholdrelease to help and README
- Update restrictions to accurately list all array-command behaviors
Copy file name to clipboardExpand all lines: README.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -187,6 +187,8 @@ Config lives at `~/.config/akeyshually/`:
187
187
|`.longpress` / `.longpress(ms)`|`"key.longpress(500)"`| Fire once after threshold (one-shot) |
188
188
|`.holdrelease` / `.holdrelease(ms)`|`"key.holdrelease(500)" = ["hold_cmd", "release_cmd"]`| Execute at hold threshold and on release |
189
189
|`.taplongpress` / `.taplongpress(tap_ms, long_ms)`|`"key.taplongpress" = ["tap_cmd", "long_cmd"]`| Tap once, or tap-then-longpress |
190
+
|`.tappressrelease` / `.tappressrelease(tap_ms)`|`"key.tappressrelease(200)" = ["press_cmd", "release_cmd"]`| Tap then press fires first, release fires second |
191
+
|`.tapholdrelease` / `.tapholdrelease(tap_ms, hold_ms)`|`"key.tapholdrelease" = ["hold_cmd", "release_cmd"]`| Tap then hold fires first, release fires second |
gohelp.Item("notify_on_overlay_change", "Desktop notifications when overlays change (default: false)"),
76
-
).
77
-
Text("Enable in config.toml:\n[settings]\nnotify_on_overlay_change = true")
79
+
gohelp.Item("notify_on_overlay_change", "Desktop notifications when overlays change", "notify_on_overlay_change = true"),
80
+
)
78
81
79
82
helpModifiers=gohelp.NewPage("modifiers", "triggers and modifiers syntax reference").
80
83
Text("Triggers define when the action fires. Modifiers stack on top to change execution behavior.").
@@ -87,13 +90,18 @@ var (
87
90
gohelp.Item(".longpress(ms)", "Fire once after threshold (one-shot)", "\"super+h.longpress(1000)\" = \"shutdown\""),
88
91
gohelp.Item(".holdrelease(ms)", "Execute at hold threshold AND on release (2-command array)", "\"mute.holdrelease(500)\" = [\"enable-mic\", \"disable-mic\"]"),
gohelp.Item(".tappressrelease(tap_ms)", "Tap then press fires first, release fires second (2-command array)", "\"mute.tappressrelease(200)\" = [\"start\", \"stop\"]"),
94
+
gohelp.Item(".tapholdrelease(tap_ms, hold_ms)", "Tap then hold fires first, release fires second (2-command array)", "\"f1.tapholdrelease\" = [\"hold-start\", \"hold-end\"]"),
90
95
).
91
96
Section("Modifiers",
92
97
gohelp.Item(".switch", "Cycle through array of commands on each press", "\"f2.switch\" = [\"cmd1\", \"cmd2\", \"cmd3\"]"),
93
98
gohelp.Item(".repeat", "Loop command: with .hold (while held) or .onpress (toggle)", "\"f9.onpress.repeat\" = \"xdotool click 1\""),
94
99
gohelp.Item(".passthrough", "Match regardless of modifier state", "\"v.passthrough\" = \"copyq toggle\""),
95
100
).
96
-
Text("Restrictions:\n • .doubletap and .taphold only work on single keys (no combos)\n • .switch, .taphold, .pressrelease, .holdrelease, and .taplongpress require command arrays")
101
+
Section("Restrictions",
102
+
gohelp.Item("Single keys only", ".doubletap and .taphold only work on single keys (no combos)"),
0 commit comments