No way to detect x and y offset when using -s option

Bug #1033187 reported by sysaxed
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
scrot (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

I'm trying to get the position of a selected rectangle when using -s option, but there's no $x or $y special string.

scrot -s -e 'echo x=?? y=?? width=$w height=$h'

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: scrot 0.8-13
ProcVersionSignature: Ubuntu 3.2.0-27.43-generic 3.2.21
Uname: Linux 3.2.0-27-generic i686
ApportVersion: 2.0.1-0ubuntu11
Architecture: i386
Date: Sun Aug 5 16:00:36 2012
InstallationMedia: Lubuntu 12.04 "Precise Pangolin" - Release i386 (20120423)
ProcEnviron:
 TERM=xterm
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: scrot
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
sysaxed (sysaxed) wrote :
Revision history for this message
Lyn Perrine (walterorlin) wrote :

I think you might be misreading the manpage for scrot. -e is for exectuing things on the screenshot you just took. So this is not a problem with scrot.

I think this command should do what you intended you will need to installed the xdotool package. I would also use the xdotool getmouseselectoin; scrot -s ; getmouseselectoin twice to get the cordinates of both ends of the rectangle.

Changed in scrot (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.