Skip to content

Commit

Permalink
Define a screen selection mode in neo-mousekeys configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
petoncle committed Feb 10, 2024
1 parent 79a618c commit 08deed2
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 deletions.
9 changes: 7 additions & 2 deletions configuration/neo-mousekeys.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
- Press _w_, _a_, _s_, _d_ to move the mouse.
- Press _q_ or _p_ to deactivate.

<img src="https://raw.githubusercontent.com/vieuxtemps/neo-mousekeys/master/layout.png">
![neo-mousekeys layout](https://github.com/petoncle/mousemaster/assets/39304282/c1648953-8acb-49e3-abb5-8106b7502105)

## Normal Mode (_leftctrl + e_)

Expand Down Expand Up @@ -34,4 +34,9 @@
- Similar to Vimium-like browser extensions, but applicable to the entire screen.
- Trigger a second hint pass with a smaller hint grid centered around the mouse by holding _leftshift_ while selecting a hint.
- A balance between hint size, number and screen space is crucial and can be configured: see `hint.font-size`, `hint.grid-max-column-count`, and `hint.grid-cell-width` in [neo-mousekeys.properties](configuration/neo-mousekeys.properties).
- Go back to normal mode with _esc_ or _backspace_.
- Go back to normal mode with _esc_ or _backspace_.

## Screen Selection Mode (_c_ in normal mode)

- Display one large hint label on each screen for quickly moving from one screen to another.
- Go back to normal mode with _c_, _esc_ or _backspace.
15 changes: 14 additions & 1 deletion configuration/neo-mousekeys.properties
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ key-alias.fast=u v b
key-alias.slow=leftshift
key-alias.grid=g
key-alias.hint=f
key-alias.screenselection=c

# Press e while holding leftctrl to activate.
idle-mode.to.normal-mode=_{leftctrl} +e
Expand Down Expand Up @@ -219,4 +220,16 @@ hint2-2-mode.hint.grid-cell-width=22
hint2-2-mode.hint.grid-cell-height=17
hint2-2-mode.hint.selection-keys=h j k l ; a s d f g q w e r t y u i o p z x c v b
hint2-2-mode.hint.font-size=8
hint2-2-mode.hint.mode-after-selection=normal-mode
hint2-2-mode.hint.mode-after-selection=normal-mode

# Screen selection is enabled with c, disabled with c or esc.
normal-mode.to.screen-selection-mode=+screenselection
screen-selection-mode.to.normal-mode=+screenselection | +esc | +backspace
screen-selection-mode.to.idle-mode=+exit
screen-selection-mode.hint.type=grid
screen-selection-mode.hint.grid-area=all-screens
screen-selection-mode.hint.grid-max-row-count=1
screen-selection-mode.hint.grid-max-column-count=1
screen-selection-mode.hint.selection-keys=j k l ; a s d f g
screen-selection-mode.hint.font-size=80
screen-selection-mode.hint.mode-after-selection=normal-mode

0 comments on commit 08deed2

Please sign in to comment.