From b9338b917632bc24d97921f1797d753f364f01ad Mon Sep 17 00:00:00 2001 From: Xevion Date: Sun, 11 Jan 2026 16:44:36 -0600 Subject: [PATCH] config: add xremap for dual-function Caps Lock (Ctrl/Esc) --- home/dot_config/systemd/user/xremap.service | 12 ++++++++++++ home/dot_config/xremap/config.yml | 14 ++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 home/dot_config/systemd/user/xremap.service create mode 100644 home/dot_config/xremap/config.yml diff --git a/home/dot_config/systemd/user/xremap.service b/home/dot_config/systemd/user/xremap.service new file mode 100644 index 0000000..058bff5 --- /dev/null +++ b/home/dot_config/systemd/user/xremap.service @@ -0,0 +1,12 @@ +[Unit] +Description=xremap key remapper +After=graphical-session.target rebinded.service +Wants=rebinded.service + +[Service] +ExecStart=%h/.cargo/bin/xremap %h/.config/xremap/config.yml +Restart=always +RestartSec=3 + +[Install] +WantedBy=default.target diff --git a/home/dot_config/xremap/config.yml b/home/dot_config/xremap/config.yml new file mode 100644 index 0000000..a034436 --- /dev/null +++ b/home/dot_config/xremap/config.yml @@ -0,0 +1,14 @@ +# xremap configuration +# https://github.com/xremap/xremap +# +# Dual-function Caps Lock: +# - Tap: Escape (great for vim mode) +# - Hold: Ctrl (reduces pinky strain) + +modmap: + - name: Caps Lock to Ctrl/Escape + remap: + CapsLock: + held: leftctrl + alone: esc + alone_timeout_millis: 200