Guest User

xmodmap service documentation excerpt

a guest
Dec 15th, 2024
30
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. The ‘key-map’ field takes a list of objects, each of which is
  2. either a “statement” (a string) or an “assignment” (a pair of
  3. strings). As an example, the snippet below swaps around the
  4. ‘Caps_Lock’ and the ‘Control_L’ keys, by first removing the keysyms
  5. (on the right-hand side) from the corresponding modifier maps (on
  6. the left-hand side), re-assigning them by swapping each other out,
  7. and finally adding back the keysyms to the modifier maps.
  8.  
  9. (service home-xmodmap-service-type
  10. (home-xmodmap-configuration
  11. (key-map '(("remove Lock" . "Caps_Lock")
  12. ("remove Control" . "Control_L")
  13. ("keysym Control_L" . "Caps_Lock")
  14. ("keysym Caps_Lock" . "Control_L")
  15. ("add Lock" . "Caps_Lock")
  16. ("add Control" . "Control_L")))))
  17.  
Advertisement
Add Comment
Please, Sign In to add comment