xfce4-screenshooter -m wont capture mouse pointer

Message
Author
User avatar
remoteone
Posts: 48
Joined: Sat Jul 20, 2019 9:04 am

xfce4-screenshooter -m wont capture mouse pointer

#1 Post 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.

User avatar
JayM
Posts: 6796
Joined: Tue Jan 08, 2019 3:47 am

Re: xfce4-screenshooter -m wont capture mouse pointer

#2 Post 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.
Please read the Forum Rules, How To Ask For Help, How to Break Your System and Don't Break Debian. Always include your full Quick System Info (QSI) with each and every new help request.

User avatar
i_ri
Posts: 1136
Joined: Tue Jun 30, 2015 12:26 am

Re: xfce4-screenshooter -m wont capture mouse pointer

#3 Post 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.

User avatar
wdscharff
Posts: 1153
Joined: Mon Feb 24, 2020 1:07 am

Re: xfce4-screenshooter -m wont capture mouse pointer

#4 Post by wdscharff »

I use hotshots for this special case, because scrot also does not show me a mousepointer
my working horse Desktop AMD Ryzen 9 3900x, 32GB Ram // SSD ... enough
mx-fluxbox, what else?

In nature there are neither rewards nor punishments.
There are consequences.


my wallpaper gallery

User avatar
i_ri
Posts: 1136
Joined: Tue Jun 30, 2015 12:26 am

Re: xfce4-screenshooter -m wont capture mouse pointer

#5 Post 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.

User avatar
remoteone
Posts: 48
Joined: Sat Jul 20, 2019 9:04 am

Re: xfce4-screenshooter -m wont capture mouse pointer

#6 Post 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?

User avatar
remoteone
Posts: 48
Joined: Sat Jul 20, 2019 9:04 am

Re: xfce4-screenshooter -m wont capture mouse pointer

#7 Post 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.
Last edited by remoteone on Thu Oct 01, 2020 1:40 am, edited 1 time in total.

User avatar
JayM
Posts: 6796
Joined: Tue Jan 08, 2019 3:47 am

Re: xfce4-screenshooter -m wont capture mouse pointer

#8 Post 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):
You do not have the required permissions to view the files attached to this post.
Please read the Forum Rules, How To Ask For Help, How to Break Your System and Don't Break Debian. Always include your full Quick System Info (QSI) with each and every new help request.

User avatar
remoteone
Posts: 48
Joined: Sat Jul 20, 2019 9:04 am

Re: xfce4-screenshooter -m wont capture mouse pointer

#9 Post 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
Last edited by remoteone on Thu Oct 01, 2020 2:16 am, edited 4 times in total.

User avatar
JayM
Posts: 6796
Joined: Tue Jan 08, 2019 3:47 am

Re: xfce4-screenshooter -m wont capture mouse pointer

#10 Post 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.
Please read the Forum Rules, How To Ask For Help, How to Break Your System and Don't Break Debian. Always include your full Quick System Info (QSI) with each and every new help request.

Post Reply

Return to “Software / Configuration”