mirror of
https://github.com/swaywm/sway.git
synced 2024-11-28 10:51:28 +00:00
Add extra plugin to the interception-tools section.
parent
42297cb65d
commit
08ca528200
48
Tricks.md
48
Tricks.md
|
@ -120,7 +120,7 @@ save it as `$HOME/bin/tamefox` and add this to your `.config/sway/config`:
|
||||||
|
|
||||||
exec [ -x $HOME/bin/tamefox ] && $HOME/bin/tamefox
|
exec [ -x $HOME/bin/tamefox ] && $HOME/bin/tamefox
|
||||||
|
|
||||||
# Use space as $mod (when chorded with another key)
|
# Use space as $mod
|
||||||
|
|
||||||
If using Arch Linux, install Interception tools:
|
If using Arch Linux, install Interception tools:
|
||||||
```
|
```
|
||||||
|
@ -133,7 +133,7 @@ Also install the space2meta plugin:
|
||||||
|
|
||||||
If using Arch, install from the AUR:
|
If using Arch, install from the AUR:
|
||||||
```
|
```
|
||||||
yay -S https://aur.archlinux.org/packages/interception-space2meta
|
yay -S interception-space2meta
|
||||||
```
|
```
|
||||||
Otherwise follow instructions here: https://gitlab.com/interception/linux/plugins/space2meta
|
Otherwise follow instructions here: https://gitlab.com/interception/linux/plugins/space2meta
|
||||||
|
|
||||||
|
@ -181,3 +181,47 @@ sudo systemctl start udevmon
|
||||||
|
|
||||||
The space key should now behave as the Super/Windows/Mod4 key when held and combined with another key.
|
The space key should now behave as the Super/Windows/Mod4 key when held and combined with another key.
|
||||||
|
|
||||||
|
|
||||||
|
**If your chording style does not agree with this method:**
|
||||||
|
|
||||||
|
You may find that your typing style makes it hard to hit the "chord timing" needed to trigger the Mod4 key.
|
||||||
|
There is an alternative plugin for interception-tools you can use which changes the behaviour of the tool. Feel free to play with the "delay" value in `/etc/interception/spacetomod4.yaml` to adjust it to your taste.
|
||||||
|
|
||||||
|
Install this alternative plugin for interception tools:
|
||||||
|
|
||||||
|
```
|
||||||
|
yay -S interception-dual-function-keys
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
Create a new file in /etc/interception (name it spacetomod4.yaml for example) with the following content:
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
TIMING:
|
||||||
|
TAP_MILLISEC: 200
|
||||||
|
DOUBLE_TAP_MILLISEC: 0
|
||||||
|
|
||||||
|
MAPPINGS:
|
||||||
|
- KEY: KEY_SPACE
|
||||||
|
TAP: KEY_SPACE
|
||||||
|
HOLD: KEY_LEFTMETA
|
||||||
|
```
|
||||||
|
|
||||||
|
Modify the /etc/interception/udevmon.yaml file to this instead:
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
- JOB: "intercept -g $DEVNODE | dual-function-keys -c /etc/interception/spacetomod4.yaml | uinput -d $DEVNODE"
|
||||||
|
DEVICE:
|
||||||
|
EVENTS:
|
||||||
|
EV_KEY: [KEY_SPACE, KEY_LEFTMETA]
|
||||||
|
```
|
||||||
|
|
||||||
|
And remember to restart the udevmon service:
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
sudo systemctl restart udevmon
|
||||||
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue