Helps remapping Caps Lock to ESC when pressed alone, and Ctrl otherwise.
Like https://github.com/alols/xcape, but works on both Wayland and X11.
You'll need the following dependencies on Debian-based systems:
sudo apt install build-essential libudev-dev
To build and install:
make
sudo make install
By default, this will install the binary in /usr/local/bin
and the systemd service in /usr/lib/systemd/system
.
First, configure your desktop environment to remap Caps Lock to Ctrl.
- GNOME: Tweaks > Keyboard & Mouse > Additional Layout Options > Caps Lock behavior > Make Caps Lock an additional Ctrl
- KDE: System Settings > Hardware > Input Devices > Keyboard > Advanced > Caps Lock behavior > Make Caps Lock an additional Ctrl
- Sway: https://github.com/swaywm/sway/wiki#keyboard-layout
sudo systemctl enable --now wlcape.service
See CONTRIBUTING.md
for details.
Apache 2.0; see LICENSE
for details.
This project is not an official Google project. It is not supported by Google and Google specifically disclaims all warranties as to its quality, merchantability, or fitness for a particular purpose.