this repo contains config files for caps2esc in gentoo.
systemd users can refer the caps2esc project repo for systemd-related settings
clone this repo, then
sudo mv /path/to/repo/bin/caps2escd /usr/sbin/
sudo mv /path/to/repo/config/caps2esc /etc/init.d/
sudo mv /path/to/repo/config/caps2esc.yaml /etc/default/the ebuild file of this program can be found at overlay [TBD]. Add the overlay using your favorite method, e.g., use layman:
sudo layman -a [TBD]then emerge this package using
sudo emerge --ask app-misc/caps2escSet up the service using
sudo rc-update add caps2esc default- identified the internal keyboard and intercept that input stream only
- people (like me) may have custom built keyboard with QMK firmware that does the mappings, interception on those devices will break the customization.
- current workaround: run
cat /proc/bus/input/devicesto identify which devices need to be intercepted, and change ${DEVNODE} in /etc/default/caps2esc.yaml to the specific device. In my case, I have a Thinkpad T480, and the internal keyboard registers as /dev/input/event3
MIT