Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Print Screen key not working on X11
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
arb103
n00b
n00b


Joined: 24 Aug 2021
Posts: 5

PostPosted: Mon Oct 04, 2021 10:11 am    Post subject: Print Screen key not working on X11 Reply with quote

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
Code:
0xff61, Print

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
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3879

PostPosted: Mon Oct 04, 2021 4:48 pm    Post subject: Reply with quote

This works perfectly for me
Code:
xfce-extra/xfce4-screenshooter

_________________
:)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum