Gentoo Archives: gentoo-user

From: Andrew Udvare <audvare@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Annoying mapping of some keys
Date: Tue, 22 May 2018 01:13:00
Message-Id: D38C34B5-7A66-40E4-90D5-71292DDE9F05@gmail.com
In Reply to: Re: [gentoo-user] Annoying mapping of some keys by Damo Brisbane
1 > On 2018-05-21, at 19:38, Damo Brisbane <dhatchett2@×××××.com> wrote:
2 >
3 > Under X, xmodmap perhaps?
4
5 I use this to map caps lock to escape in my ~/.xprofile (which gets sourced somewhere in my ~/.bash_profile if DISPLAY is set):
6
7 xmodmap -e 'clear Lock' -e 'keycode 0x42 = Escape'
8
9 (Also it unsets caps lock if it was on.)
10
11 This way I don’t have to rely on my DE’s way of doing this. Any X client will have this set, even remote ones.
12
13 Andrew