Advertisement
custompc

Remapping Keys for Xorg Xmodmap

Mar 3rd, 2024 (edited)
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. # xev
  2. # xinput test /dev/wskbd
  3. # xmodmap -pke
  4.  
  5. .Xmodmap contents
  6. # Use WIN key as Escape Key
  7. keycode 115 = Escape NoSymbol
  8.  
  9. # Assign Escape Key for Back Tick and Tilde
  10. keycode 9 = grave asciitilde
  11.  
  12. In .xinitrc
  13. xmodmap ~/.Xmodmap
  14.  
  15. --- Notes---
  16. keycode nn = a b c d e f
  17. a = key press
  18. b = key + shift
  19. c = key + mode_switch
  20. d = key + mode_switch + shift
  21. e = key + iso_level3_shift
  22. f = key + shift + iso_level3_shift
  23. nosymbol = ignore
  24.  
  25. You mostly need the first two settings (ordinary key press and key + shift)
  26.  
  27. keycode 51 = backslash bar backslash bar
  28. keycode 9 = grave asciitilde grave asciitilde
  29. keycode 11 = apostrophe at apostrophe at dead_circumflex dead_caron dead_circumflex
  30. keycode 48 = 2 quotedbl 2 quotedbl twosuperior oneeighth twosuperior
  31.  
  32. https://unix.stackexchange.com/questions/429835/advanced-key-mappings-in-linux
  33.  
Tags: Linux unix BSD
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement