Open lheckemann opened 7 years ago
Seems to be fixed at this date
I've just tried with latest master, still broken for me.
Thanks for testing. Bummer that it’s still broken. :/
On Fri, Nov 24, 2017 at 8:03 AM Linus Heckemann notifications@github.com wrote:
I've just tried with latest master, still broken for me.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jordansissel/xdotool/issues/178#issuecomment-346859006, or mute the thread https://github.com/notifications/unsubscribe-auth/AAIC6iSSodgyIRjblP_c0rc9OWJZ56vLks5s5uh7gaJpZM4OuIlF .
I tried it with a fresh download and build from github 3.20171120.1 (I fixed the '+' in the version number bug myself)
$ xdotool type '\'; echo
\
$ \
Could it be related to keyboard layouts? I use the gb
(British) layout myself.
You could always launch "xev" (it is very verbose) then run
xdotool sleep 5 type '\'
in another terminal, and focus on the xev window before the sleep times out to see what event was sent by xdotool. The events I got was...
KeyPress event, serial 45, synthetic NO, window 0x4400001,
root 0xfa, subw 0x0, time 3714259964, (97,103), root:(829,137),
state 0x0, keycode 51 (keysym 0x5c, backslash), same_screen YES,
XLookupString gives 1 bytes: (5c) "\"
XmbLookupString gives 1 bytes: (5c) "\"
XFilterEvent returns: False
KeyRelease event, serial 48, synthetic NO, window 0x4400001,
root 0xfa, subw 0x0, time 3714259969, (97,103), root:(829,137),
state 0x0, keycode 51 (keysym 0x5c, backslash), same_screen YES,
XLookupString gives 1 bytes: (5c) "\"
XFilterEvent returns: False
I talk about these sort of debugging tricks in my notes on X Events, which also looked at developing a keyboard macro system (press ALT-F1, and my email address or long web home page gets typed in) http://www.ict.griffith.edu.au/anthony/info/X/event_handling.txt
MappingNotify event, serial 33, synthetic NO, window 0x0,
request MappingKeyboard, first_keycode 8, count 248
KeyPress event, serial 33, synthetic NO, window 0x2600001,
root 0xf6, subw 0x0, time 357406278, (298,1208), root:(2223,1259),
state 0x0, keycode 92 (keysym 0xfe03, ISO_Level3_Shift), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyPress event, serial 34, synthetic NO, window 0x2600001,
root 0xf6, subw 0x0, time 357406280, (298,1208), root:(2223,1259),
state 0x80, keycode 20 (keysym 0x2d, minus), same_screen YES,
XLookupString gives 1 bytes: (2d) "-"
XmbLookupString gives 1 bytes: (2d) "-"
XFilterEvent returns: False
KeyRelease event, serial 34, synthetic NO, window 0x2600001,
root 0xf6, subw 0x0, time 357406285, (298,1208), root:(2223,1259),
state 0x80, keycode 92 (keysym 0xfe03, ISO_Level3_Shift), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 34, synthetic NO, window 0x2600001,
root 0xf6, subw 0x0, time 357406285, (298,1208), root:(2223,1259),
state 0x0, keycode 20 (keysym 0x2d, minus), same_screen YES,
XLookupString gives 1 bytes: (2d) "-"
XFilterEvent returns: False
Looks like xdotool, thinks you have one very very weird keyboard. Shifted Minus. Not sure how to fix that! Look at what events you get from Xev when you press the keys you want yourself. I would look at trying to get "xkeyboard" and seeing what it thinks of the keyboard and keycode to keysym setup It also can inject key events like xdotools but with more control, it may give you more of an idea. Either that or try to get xdotool to send the actual KeySyms rather than translate the sting.
That is about all I can give you.
On Wed, Nov 29, 2017 at 7:09 PM, Linus Heckemann notifications@github.com wrote:
MappingNotify event, serial 33, synthetic NO, window 0x0, request MappingKeyboard, first_keycode 8, count 248
KeyPress event, serial 33, synthetic NO, window 0x2600001, root 0xf6, subw 0x0, time 357406278, (298,1208), root:(2223,1259), state 0x0, keycode 92 (keysym 0xfe03, ISO_Level3_Shift), same_screen YES, XLookupString gives 0 bytes: XmbLookupString gives 0 bytes: XFilterEvent returns: False
KeyPress event, serial 34, synthetic NO, window 0x2600001, root 0xf6, subw 0x0, time 357406280, (298,1208), root:(2223,1259), state 0x80, keycode 20 (keysym 0x2d, minus), same_screen YES, XLookupString gives 1 bytes: (2d) "-" XmbLookupString gives 1 bytes: (2d) "-" XFilterEvent returns: False
KeyRelease event, serial 34, synthetic NO, window 0x2600001, root 0xf6, subw 0x0, time 357406285, (298,1208), root:(2223,1259), state 0x80, keycode 92 (keysym 0xfe03, ISO_Level3_Shift), same_screen YES, XLookupString gives 0 bytes: XFilterEvent returns: False
KeyRelease event, serial 34, synthetic NO, window 0x2600001, root 0xf6, subw 0x0, time 357406285, (298,1208), root:(2223,1259), state 0x0, keycode 20 (keysym 0x2d, minus), same_screen YES, XLookupString gives 1 bytes: (2d) "-" XFilterEvent returns: False
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/jordansissel/xdotool/issues/178#issuecomment-347797187, or mute the thread https://github.com/notifications/unsubscribe-auth/ABKIwIfQiYVljOjeytnDNNMY6GR5mASqks5s7R9dgaJpZM4OuIlF .
This is the keyboard layout issue. Happened the same to me but the opposite, dash typed slash.
The fix is changing it before using setxkbmap
user@machine:~$ xdotool type '-'
/user@machine:~$ /
bash: /: Is a directory
user@machine:~$ setxkbmap es && xdotool type '-'
-user@machine:~$ -
bash: -: command not found
user@machine:~$