arb103 n00b
Joined: 24 Aug 2021 Posts: 5
|
Posted: Mon Oct 04, 2021 10:11 am Post subject: Print Screen key not working on X11 |
|
|
The keypress is detected by xev, but it never reaches my window manager (dwm), and so I can never print the screen into my clipboard for easy pasting
I have tried workarounds, like using scrot or ImageMagick's import
binding this to a key in dwm's config.h worked well enough
Code: | import -quality 00 png:- | xclip -selection clipboard -t image/png' |
but I'd rather have it bound to the key that's meant for it
xev detects the keypress as
xmodmap outputs the following
Code: | xmodmap -pke | grep Print
keycode 107 = Print Sys_Req Print Execute
keycode 218 = Print NoSymbol Print |
but when I do xkbcli interactive-x11, I get no output on pressing the same button
this is what makes me suspect X11 must be doing something wrong and I have no idea how to set it right
I'd appreciate any help on this matter, in particular, I'd love to also know if, once the keypress is detected properly, the workaround with import into xclip would be necessary |
|