Skip to content

Instantly share code, notes, and snippets.

@djanatyn
Created November 10, 2022 16:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save djanatyn/6894decd206fcb8de9f04b8bdd821962 to your computer and use it in GitHub Desktop.
Save djanatyn/6894decd206fcb8de9f04b8bdd821962 to your computer and use it in GitHub Desktop.
xmonad pasteString debugging
insertDate :: X ()
insertDate = pasteString "<>"
-- this is outputting ">>"!
KeyPress event, serial 34, synthetic NO, window 0xe00001,
root 0x6cf, subw 0x0, time 603316571, (670,557), root:(2208,795),
state 0x1, keycode 59 (keysym 0x3c, less), same_screen YES,
XKeysymToKeycode returns keycode: 94
XLookupString gives 1 bytes: (3c) "<"
XmbLookupString gives 1 bytes: (3c) "<"
XFilterEvent returns: False
KeyRelease event, serial 34, synthetic NO, window 0xe00001,
root 0x6cf, subw 0x0, time 603316691, (670,557), root:(2208,795),
state 0x1, keycode 59 (keysym 0x3c, less), same_screen YES,
XKeysymToKeycode returns keycode: 94
XLookupString gives 1 bytes: (3c) "<"
XFilterEvent returns: False
...
KeyPress event, serial 34, synthetic NO, window 0xe00001,
root 0x6cf, subw 0x0, time 603317707, (670,557), root:(2208,795),
state 0x1, keycode 60 (keysym 0x3e, greater), same_screen YES,
XLookupString gives 1 bytes: (3e) ">"
XmbLookupString gives 1 bytes: (3e) ">"
XFilterEvent returns: False
KeyRelease event, serial 34, synthetic NO, window 0xe00001,
root 0x6cf, subw 0x0, time 603317827, (670,557), root:(2208,795),
state 0x1, keycode 60 (keysym 0x3e, greater), same_screen YES,
XLookupString gives 1 bytes: (3e) ">"
XFilterEvent returns: False
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment