Skip to content

Instantly share code, notes, and snippets.

@gengwg
Created February 1, 2026 19:03
Show Gist options
  • Select an option

  • Save gengwg/940aae072775897458b72a3d3b49b8c8 to your computer and use it in GitHub Desktop.

Select an option

Save gengwg/940aae072775897458b72a3d3b49b8c8 to your computer and use it in GitHub Desktop.
.Xmodmap
! swap left ctrl and left alt
! run xmodmap ~/.Xmodmap
clear control
clear mod1
keycode 37 = Alt_L Meta_L
keycode 64 = Control_L
add control = Control_L Control_R
add mod1 = Alt_L Meta_L
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment