Skip to content

junyi-hou/caps2esc-gentoo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

caps2esc – map caplock to escape (press alone) and ctrl (combo) in tty, X and wayland

Introduction

this repo contains config files for caps2esc in gentoo.

Dependency:

OpenRC

caps2esc

systemd users can refer the caps2esc project repo for systemd-related settings

Installation

manual installation

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/

use emerge

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/caps2esc

Usage

Set up the service using

sudo rc-update add caps2esc default

To-do

  • 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/devices

to 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

License

MIT

About

Map caps to ctrl and esc, ported to gentoo

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages