mirror of
https://github.com/Xevion/dotfiles.git
synced 2026-01-31 02:24:11 -06:00
config: add xremap for dual-function Caps Lock (Ctrl/Esc)
This commit is contained in:
@@ -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
|
||||||
@@ -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
|
||||||
Reference in New Issue
Block a user