nix-config/xmodmap
Donovan Glover c3f85fc871
docs: Add READMEs for fish, vim, and xmodmap
Since I'd like other people to try my dotfiles, I will be writing
READMEs for each package directory, which should hopefully cover
anything a user needs to do in order to use the package.
2018-10-23 13:01:16 -04:00
..
.xmodmap stow: Split desktop package into term and xmodmap 2018-10-22 23:26:25 -04:00
README.md docs: Add READMEs for fish, vim, and xmodmap 2018-10-23 13:01:16 -04:00

xmodmap

I use xmodmap with xcape to make Caps Lock function as Escape when pressed and Ctrl when held down.

Dependencies

  • xorg-xmodmap - Used to make caps lock work as ctrl
  • xcape - Used to make caps lock work as escape

Installation

make package=xmodmap

Usage

Start xmodmap in one of your init scripts, like so:

# Make caps lock work as ctrl
xmodmap ~/.xmodmap

To make caps lock work as Escape, start xcape as well:

# Make caps lock (left ctrl) work as escape
xcape -e 'Control_L=Escape'