From a39e2d8a41fd186fa8f11ad0924b9eacf006501c Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Wed, 27 Mar 2024 02:07:05 +0000 Subject: [PATCH] feat(xkeysnail): add systemd unit and basic README --- config/xkeysnail/README.md | 53 ++++++++++++++++++++++++++++++++ config/xkeysnail/systemd.service | 13 ++++++++ 2 files changed, 66 insertions(+) create mode 100644 config/xkeysnail/README.md create mode 100644 config/xkeysnail/systemd.service diff --git a/config/xkeysnail/README.md b/config/xkeysnail/README.md new file mode 100644 index 0000000..f4d8c79 --- /dev/null +++ b/config/xkeysnail/README.md @@ -0,0 +1,53 @@ +# jimeh's xkeysnail setup + +The goal here is to use [xkeysnail][] Linux keyboard shortcuts mostly behave the +same as on macOS. + +[xkeysnail]: https://github.com/mooz/xkeysnail + +## Pre-requisites + +To be able to run xkeysnail as a non-root user / with sudo, we need to perform +some initial setup. + +1. Create a `uinput` group and add your user to it: + ```bash + sudo groupadd -f uinput + sudo gpasswd -a $USER uinput + ``` +2. Create udev rules for xkeysnail: + ```bash + cat <