Page 1 of 2

xfce4-screenshooter -m wont capture mouse pointer

Posted: Wed Sep 23, 2020 4:09 am
by remoteone
Tried out a few screen capture apps and find most of them are either too fancy (complicated) or too limited (no settings).
The default xfce4-screenshooter app is a good one to set up to auto-save to clip-board and file and go straight int select area mode.
Mapped to the Prt-Scr Key. Unfortunately the -m option does not do anything.

I need a screen-capture app that when evoked will capture the mouse position, and the Title text of the link the mouse is hovering over.
Any suggestions on how to fix this.?

Also have Flameshot installed and configured but alas, also will not capture the mouse pointer.

Re: xfce4-screenshooter -m wont capture mouse pointer

Posted: Wed Sep 23, 2020 4:18 am
by JayM
If you click on Screenshot's Help button you'll be taken to its web page on xfce.org where you can find all available command-line switches. Sadly, capture the mouse cursor with -m isn't one of them so if you want it to be added you'd have to file an enhancement request with Xfce.

Re: xfce4-screenshooter -m wont capture mouse pointer

Posted: Wed Sep 23, 2020 8:35 am
by i_ri
hello remoteone and JayM
xfce4-screenshooter
a long command name, whew,
Show to us the command that you have mapped to the key, please.
When selecting a region the mouse cursor is outside the region immediately. A delay is necessary for the two things " capture the mouse position, and the Title text of the link the mouse is hovering" that you want for resultant capture when selecting region. delay time allows placement of the mouse cursor for the desired capture. --mouse, or -m, succeeds when the mouse cursor is within the selected area.

Re: xfce4-screenshooter -m wont capture mouse pointer

Posted: Wed Sep 23, 2020 10:31 am
by wdscharff
I use hotshots for this special case, because scrot also does not show me a mousepointer

Re: xfce4-screenshooter -m wont capture mouse pointer

Posted: Wed Sep 23, 2020 8:45 pm
by i_ri
hello remoteone
to have [-m] show mouse pointer selected by default at all times with xfce4-screenshooter
there is a file to change in the home folder:
/.config/xfce4/xfce4-screenshooter
show_mouse=1

set to 0 for no show. set to 1 for show cursor. becomes default.

Re: xfce4-screenshooter -m wont capture mouse pointer

Posted: Thu Oct 01, 2020 1:14 am
by remoteone
Hmm, well I was going by
xfce4-screenshooter --help
-m, --mouse Display the mouse on the screenshot
Changed /.config/xfce4/xfce4-screenshooter for all users and root to
show_mouse=1

Still no worky, wont capture the mouse . It shifts the cursor after pressing the PrtScr hotkey such that the title text of the object that the mouse was hovering over no longer shows.

Minor aside... Does "Screenshot" Launcher use xfce4-screenshooter out of the box? .. why confuse users by changing the name/title?

Re: xfce4-screenshooter -m wont capture mouse pointer

Posted: Thu Oct 01, 2020 1:27 am
by remoteone
Re:
When selecting a region the mouse cursor is outside the region immediately. A delay is necessary for the two things " capture the motheuse position, and the Title text of the link the mouse is hovering" that you want for resultant capture when selecting region. delay time allows placement of the mouse cursor for the desired capture. --mouse, or -m, succeeds when the mouse cursor is within the selected area.
Ahh I see, but the delay only applies to when you use the Launcher not when clicking Shortcut key. Thats why it wont work, I do so many screen caps, I really don't want all these extra steps!
Im used to using Greenshot in Windows where its all done automatically, the cursor does not disappear.

Is there any Screen Capture app that can be set up in the config to just capture the region with cursor/hover content without all this messing about.
Press hotkey > draw area > Done.
Image is automatically saved in pre-configured location,format,quality etc, and saved to the clipboard withot any more interaction. When you do hundreds of screencaps in a work session, this is where Greenshot was a huge time saving productivity asset.

Re: xfce4-screenshooter -m wont capture mouse pointer

Posted: Thu Oct 01, 2020 1:33 am
by JayM
Okay, that worked for me. Did you see this in xfce4-screenshooter -m?
$ xfce4-screenshooter -m
The --mouse option is only used when --fullscreen, --window or --region is given. It will be ignored.
xfce4-screenshooter -m --window resulted in this (I could have used -m -w):

Re: xfce4-screenshooter -m wont capture mouse pointer

Posted: Thu Oct 01, 2020 1:43 am
by remoteone
[SOLVED]
Yeah onto the -m switch, I needed to set up a delay on the hotkey command.
Application Shortcut command fixed it.. Very close to what I need..

Code: Select all

xfce4-screenshooter  -mcr -d 4 -s ~/Pictures/screenshots/
Thanks all

Re: xfce4-screenshooter -m wont capture mouse pointer

Posted: Thu Oct 01, 2020 1:49 am
by JayM
Shell scripts to the rescue!

Code: Select all

#!/bin/sh
sleep 5
xfce4-screenshooter -m -w
Save it somewhere, right-click on it and make it executable in its properties tab in Thunar, then run it when your hotkey gets pressed. Adjust the delay to however many seconds you want it to pause for before taking a screenshot.

When you've decided that this is solved to your satisfaction, could you please edit your original post #1 at the very top of the topic by clicking the pencil tip icon, the one circled in red in my screenshot image below (yours won't have the red circle)
Image
and add [SOLVED] at the front of the subject? This will make it easier for others when they search the forum looking for a solution to the same problem. Thanks.