mirror of
https://github.com/jimeh/dotfiles.git
synced 2026-02-19 13:26:40 +00:00
jimeh's xkeysnail setup
The goal here is to use xkeysnail to make Linux keyboard shortcuts mostly behave the same as on macOS.
Pre-requisites
To be able to run xkeysnail as a non-root user / with sudo, we need to perform some initial setup.
- Create a
uinputgroup and add your user to it:sudo groupadd -f uinput sudo gpasswd -a $USER uinput - Create udev rules for xkeysnail:
cat <<EOF | sudo tee /etc/udev/rules.d/70-xkeysnail.rules KERNEL=="uinput", GROUP="uinput", MODE="0660", OPTIONS+="static_node=uinput" KERNEL=="event[0-9]*", GROUP="uinput", MODE="0660" EOF - Reboot.
(Borrowed from here.)
Setup systemd user service
- Copy service into place:
mkdir -p $HOME/.config/systemd/user cp ./systemd.service $HOME/.config/systemd/user/xkeysnail.service - Reload user units:
systemctl --user daemon-reload - Enable service:
systemctl --user enable xkeysnail.service - Start service:
systemctl --user start xkeysnail.service - Check status of service:
systemctl --user status xkeysnail.service