this post was submitted on 11 Apr 2025
13 points (93.3% liked)

i3 Window Manager

309 readers
1 users here now

About

Community for the i3 window manager and its popular fork i3-gaps.

Resources

founded 4 years ago
MODERATORS
 

If you type anything like I do, the CapsLock key gets very little use on your keyboard. Add the following lines to your i3 config file to remap it to be the Compose key, and use double-Shift as an alternate CapsLock for the infrequent occasions when it's needed:

# Remap CapsLock to Compose                                                      
exec setxkbmap -option compose:caps                                              
                                                                                 
# Both shift keys enable CapsLock and one shift key cancels it                   
exec setxkbmap -option shift:both_capslock_cancel    

This should work in most Linux distro. To find out if it will work in yours, type:

$ grep compose:caps /usr/share/X11/xkb/rules/base.lst
$ grep shift:both_capslock_cancel /usr/share/X11/xkb/rules/base.lst

If the combos are listed in base.lst, they will work.

There are other ways to remap CapsLock to Compose, but this one keeps everything nice and tidy in one config file.

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 1 points 3 weeks ago

Oh that is interesting. I have always struggled with the special characters.