AndreaOrru / wlcape

Helps remapping Caps Lock to ESC when pressed alone, and Ctrl otherwise. Like xcape, but works on both Wayland and X11

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

wlcape

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.

Installation

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.

Usage

1. Remap Caps Lock to Ctrl

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

2. Enable systemd service

sudo systemctl enable --now wlcape.service

Contributing

See CONTRIBUTING.md for details.

License

Apache 2.0; see LICENSE for details.

Disclaimer

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.

About

Helps remapping Caps Lock to ESC when pressed alone, and Ctrl otherwise. Like xcape, but works on both Wayland and X11

License:Apache License 2.0


Languages

Language:C 90.5%Language:Makefile 9.5%