Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
i3wm, unable to take screenshot when context menu is open
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
g-virus
Tux's lil' helper
Tux's lil' helper


Joined: 26 Aug 2017
Posts: 111

PostPosted: Tue Jun 15, 2021 2:45 pm    Post subject: i3wm, unable to take screenshot when context menu is open Reply with quote

Hello!

I'm using i3-gaps and I have a problem with shortcuts that don't work when a context menu is open. It's a typical situation when you want to take a screenshot of a menu of an application or something, but for some reason on my i3wm both shortcuts Shift+PrintScreen and PrintScreen don't work (I suppose every shortcut doesn't work until the context menu is open). Interesting fact is the Brave browser context menus don't block the shortcuts while all others do (I've tried Qt and GTK apps). Did someone have the same issue?
_________________
"A computer is like air conditioning: it becomes useless when you open windows" - Linus Torvalds.
Back to top
View user's profile Send private message
figueroa
Advocate
Advocate


Joined: 14 Aug 2005
Posts: 2964
Location: Edge of marsh USA

PostPosted: Wed Jun 16, 2021 2:58 am    Post subject: Reply with quote

Almost certainly the menu is stealing focus for your keystrokes. Maybe you can run XFCE's screenshot. It let's you set a delay before shooting, giving you time to open your context menu, theoretically. GIMP also.
_________________
Andy Figueroa
hp pavilion hpe h8-1260t/2AB5; spinning rust x3
i7-2600 @ 3.40GHz; 16 gb; Radeon HD 7570
amd64/23.0/split-usr/desktop (stable), OpenRC, -systemd -pulseaudio -uefi
Back to top
View user's profile Send private message
Banana
Veteran
Veteran


Joined: 21 May 2004
Posts: 1391
Location: Germany

PostPosted: Wed Jun 16, 2021 6:43 am    Post subject: Reply with quote

there is also https://packages.gentoo.org/packages/x11-misc/shutter which works for me very well and can handle those context menues and overlays
_________________
My personal space
My delta-labs.org snippets do expire

PFL - Portage file list - find which package a file or command belongs to.
Back to top
View user's profile Send private message
g-virus
Tux's lil' helper
Tux's lil' helper


Joined: 26 Aug 2017
Posts: 111

PostPosted: Wed Jun 16, 2021 11:18 am    Post subject: Reply with quote

figueroa wrote:
Almost certainly the menu is stealing focus for your keystrokes. Maybe you can run XFCE's screenshot. It let's you set a delay before shooting, giving you time to open your context menu, theoretically. GIMP also.


But why does it even happen? I'm sure I remember those old times when I used to use KDE/Gnome environments and I was able to take a proper screenshot with the menus and everything

Banana wrote:
there is also https://packages.gentoo.org/packages/x11-misc/shutter which works for me very well and can handle those context menues and overlays


Are you sure it is a screenshoter's issue? I've tried to use scrot, maim, now I'm using Flameshot and seems like i3 just doesn't handle a shortcut when a context menu is open
_________________
"A computer is like air conditioning: it becomes useless when you open windows" - Linus Torvalds.
Back to top
View user's profile Send private message
Banana
Veteran
Veteran


Joined: 21 May 2004
Posts: 1391
Location: Germany

PostPosted: Wed Jun 16, 2021 5:52 pm    Post subject: Reply with quote

did you try to make a screenshot but with a delay? This way you do not trigger it with a keystroke
_________________
My personal space
My delta-labs.org snippets do expire

PFL - Portage file list - find which package a file or command belongs to.
Back to top
View user's profile Send private message
Hund
Apprentice
Apprentice


Joined: 18 Jul 2016
Posts: 218
Location: Sweden

PostPosted: Mon Jun 21, 2021 10:38 am    Post subject: Reply with quote

If you use scrot you can just set a delay: "scrot -cd <N>".
_________________
Collect memories, not things.
Back to top
View user's profile Send private message
g-virus
Tux's lil' helper
Tux's lil' helper


Joined: 26 Aug 2017
Posts: 111

PostPosted: Wed Jun 23, 2021 2:56 pm    Post subject: Reply with quote

No, I didn't try to use it with delay because in that way it will work of course. But when you take screenshots of apps you rather open a context menu, point a cursor on some item and then press hotkey and not vice-versa, right?
_________________
"A computer is like air conditioning: it becomes useless when you open windows" - Linus Torvalds.
Back to top
View user's profile Send private message
figueroa
Advocate
Advocate


Joined: 14 Aug 2005
Posts: 2964
Location: Edge of marsh USA

PostPosted: Wed Jun 23, 2021 3:25 pm    Post subject: Reply with quote

The choice, then, is to use a WM where an open context menu doesn't steal keystroke focus. Don't know if that exists.
_________________
Andy Figueroa
hp pavilion hpe h8-1260t/2AB5; spinning rust x3
i7-2600 @ 3.40GHz; 16 gb; Radeon HD 7570
amd64/23.0/split-usr/desktop (stable), OpenRC, -systemd -pulseaudio -uefi
Back to top
View user's profile Send private message
figueroa
Advocate
Advocate


Joined: 14 Aug 2005
Posts: 2964
Location: Edge of marsh USA

PostPosted: Sat Jul 03, 2021 5:13 pm    Post subject: Reply with quote

Although I don't use Gnome (I'm running OpenBox with PCManFM and LXPanel), I do use a couple of low-impact Gnome utilities. I've just run across and installed gnome-screenshot. It's very small (350K) very low dependencies (no new ones required for me), and runs well from both command-line and a sufficient GUI accessory. For me, this replaces the xfce4-screenshooter and its dependencies.
_________________
Andy Figueroa
hp pavilion hpe h8-1260t/2AB5; spinning rust x3
i7-2600 @ 3.40GHz; 16 gb; Radeon HD 7570
amd64/23.0/split-usr/desktop (stable), OpenRC, -systemd -pulseaudio -uefi
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