Skip to content

Latest commit

 

History

16 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dotfiles

My pitiful attempt at organizing .config files.

Keyboard layout settings

X11

# 1. Swap the physical Escape and Caps Lock keys entirely
setxkbmap -option "caps:swapescape"

# 2. Make the new Escape key (physical Caps Lock) act as Ctrl when held
# The physical Caps Lock key is now internally an Escape key due to the swap above.
# We use scape on the *resulting* Escape key, which does not naturally work.
# So now, we set the physical Caps Lock key to behave as a Ctrl key.
# Then we implement the Escape functionality.
setxkbmap -option "caps:ctrl_modifier"

# 3. Make the new Escape key (physically the Caps Lock key) send Escape when 
xcape -e "Control_L=Escape"

You can those to e.g. ~/.xprofile, ~/.xsession or your desktop environment's autostart settings. Make sure said file is executable.

Wayland / X11 / TTY

  1. Install keyd.
  2. Navigate to and edit /etc/keyd/default.conf.
  3. Add the following lines:
    [ids]
    
    *
    
    [main]
    # Physical Caps Lock key: Tap for Escape, Hold for Control
    # Overload function syntax: overload(modifier, tap_action)
    capslock = overload(control, esc)
    
    # Physical Escape key: Act as Caps Lock
    esc = capslock
  4. Enable and start keyd with systemctl.
  5. Reload the keyd configuration:
    sudo keyd reload
    You can monitor the changes from another terminal with keyd monitor.

Dependencies

  • i3
  • polybar
  • zsh
  • neovim
  • batcat
  • fzf

ZSH Dependencies

  • Powerlevel10k (theme)
  • Starship (theme)
  • z
  • zsh-autosuggestions
  • zsh-syntax-highlighting
  • you-should-use
  • zsh-bat
  • fzf

About

My i3 .config files

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages