From 42297cb65d79e350088fa2bd58c1eca0a5b51297 Mon Sep 17 00:00:00 2001 From: nontntnt <85178643+nontntnt@users.noreply.github.com> Date: Tue, 3 Aug 2021 11:50:16 +0100 Subject: [PATCH] Small corrections --- Tricks.md | 51 ++++++++++++++++++++++++++++++--------------------- 1 file changed, 30 insertions(+), 21 deletions(-) diff --git a/Tricks.md b/Tricks.md index f3b4928..c9f97bd 100644 --- a/Tricks.md +++ b/Tricks.md @@ -123,52 +123,61 @@ save it as `$HOME/bin/tamefox` and add this to your `.config/sway/config`: # Use space as $mod (when chorded with another key) If using Arch Linux, install Interception tools: - -`pacman -S interception-tools` +``` +pacman -S interception-tools +``` Otherwise follow instructions here: https://gitlab.com/interception/linux/tools Also install the space2meta plugin: If using Arch, install from the AUR: - -`yay -S https://aur.archlinux.org/packages/interception-space2meta` - +``` +yay -S https://aur.archlinux.org/packages/interception-space2meta +``` Otherwise follow instructions here: https://gitlab.com/interception/linux/plugins/space2meta Drop this in /etc/interception/udevmon.yaml: -`- JOB: intercept -g $DEVNODE | space2meta | uinput -d $DEVNODE` - `DEVICE:` - `EVENTS:` - `EV_KEY: [KEY_SPACE]` +``` +- JOB: intercept -g $DEVNODE | space2meta | uinput -d $DEVNODE + DEVICE: + EVENTS: + EV_KEY: [KEY_SPACE] +``` Create a systemd service file with the following content: -`[Unit]` -`Description=Monitor input devices for launching tasks` -`Wants=systemd-udev-settle.service` -`After=systemd-udev-settle.service` -`Documentation=man:udev(7)` +``` +[Unit] +Description=Monitor input devices for launching tasks +Wants=systemd-udev-settle.service +After=systemd-udev-settle.service +Documentation=man:udev(7) -`[Service]` -`ExecStart=/usr/bin/udevmon -c /etc/interception/udevmon.yaml` -`Nice=-20` -`Restart=on-failure` -`OOMScoreAdjust=-1000` +[Service] +ExecStart=/usr/bin/udevmon -c /etc/interception/udevmon.yaml +Nice=-20 +Restart=on-failure +OOMScoreAdjust=-1000 -`[Install]` -`WantedBy=multi-user.target` +[Install] +WantedBy=multi-user.target +``` (Taken from: https://gitlab.com/interception/linux/tools/-/blob/master/udevmon.service) Enable the service: +``` sudo systemctl enable udevmon.service +``` Start the service: +``` sudo systemctl start udevmon +``` The space key should now behave as the Super/Windows/Mod4 key when held and combined with another key.