Skip to content

Instantly share code, notes, and snippets.

@joshschmelzle
Created August 20, 2025 00:58
Show Gist options
  • Save joshschmelzle/d382be033b112a0adda44eed147a9085 to your computer and use it in GitHub Desktop.
Save joshschmelzle/d382be033b112a0adda44eed147a9085 to your computer and use it in GitHub Desktop.
Remap capslock to escape on Trixie Gnome/Wayland

I got this warning on Debian Trixie with Gnome.

setxkbmap -option "caps:swapescape"
WARNING: Running setxkbmap against an Xwayland server

I was able to successfully remap caps to escape with:

gsettings set org.gnome.desktop.input-sources xkb-options "['caps:swapescape']"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment