atx / wtype

xdotool type for wayland
MIT License
347 stars 13 forks source link

what is the name for the "Prt Scr" key in wtype #41

Open guyuming76 opened 1 year ago

guyuming76 commented 1 year ago

i want to send ALT+"PrintScreen" in wtype. what will be the command?

evtest show what follows for PrintScreen key in my system:

Event: time 1657334424.256645, type 4 (EV_MSC), code 4 (MSC_SCAN), value 70046
Event: time 1657334424.256645, type 1 (EV_KEY), code 99 (KEY_SYSRQ), value 0
jonasmusall commented 1 year ago

Should be print with alt modifier

See https://www.x.org/releases/current/doc/xproto/x11protocol.html#keysym_encoding for special key names (it seems like spaces have to be replaced with underscores for use with wtype).