slop icon indicating copy to clipboard operation
slop copied to clipboard

Ability to adjust selection

Open 0xACE opened this issue 11 years ago • 9 comments

Hey, I'm missing this feature:

https://gfycat.com/DisloyalFalseHamadryas

This is my own personal tool, unfortunately it doesn't work on linux.

How it works:

  1. First you select the region you want to target, just like slop.
  2. The window will show the target region, you can move the target area around by left mouse button and dragging.
  3. You can resize the target area by dragging with left mouse button on any of the corners/sides.
  4. Finally you select/submit the target area with right clicking anywhere in the target area.

Optionally: Escape will cancel the selection, up to you how you want to handle this...

This allows you to get it right in 1 try, instead of trying to capture what you needed multiple times... Currently i run maim -s check it in my image viewer feh image, and if it passes ill just upload it, otherwise I'll have to retry the whole process again. it would be better if I could just adjust it in that 1 go while I'm still working with it.

Today I frequently cut out parts that I want inside the screenshot, this feature would help a lot.

0xACE avatar Oct 26 '14 12:10 0xACE

Sure, I'll certainly work on this.

Meanwhile, just an fyi, you can use the arrow keys during a custom selection to move its starting point. With a steady hand you can get some pretty accurate selections.

naelstrof avatar Oct 26 '14 15:10 naelstrof

KSnapshot lets you do the following:

The darkened background is also nice feature. I haven't explored all the features of slop yet so I'm not sure if it's already possible.

It'd be nice to have this feature in slop because KSnapshot is unscriptable.

woky avatar Aug 18 '15 23:08 woky

Programming slop to allow for clickable resize is possible, but difficult. I don't want to have it interface with the WM at all so that I don't have to worry about tiling window managers or the like acting funny with it. All the resizing, click-detection, and hit-detection logic would all have to be programmed in manually, and I'm a little too busy to do it myself.

As for the dimmed backgrounds a configuration like so would do the trick:

slop -c0,0,0,0.5 -b1000

It would basically make a transparent black border that's large enough to encompass everything except the selection itself. Which should have the desired effect.

naelstrof avatar Aug 19 '15 01:08 naelstrof

KSnapshot lets you do the following

That seems nice, have you seen this cool demo on the readme file? http://farmpolice.com/content/videos/8a5c37c4.webm

Although I'd prefer slop since it's simpler tool, it's easier to script it too, in my case I've integrated my image viewer to reload the latest screenshot after it has been captured. http://gfycat.com/EarlyDismalAnteater

I don't want to have it interface with the WM at all so that I don't have to worry about tiling window managers or the like acting funny with it. All the resizing, click-detection, and hit-detection logic would all have to be programmed in manually,

I've seen some windows that aren't affected by the tiling window managers, not sure how they were made, but I've definitely seen a couple of programs that don't tile at all. It may just be that my window manager isn't catching all windows properly (I'm using dwm)

and I'm a little too busy to do it myself.

Same here, but I'm loving maim+slop anyway.

0xACE avatar Aug 20 '15 09:08 0xACE

The KSnapshot demonstration screenshot I posted was actually made in i3 WM, so I guess it can be done without interfacing with WM. But I realize that programming controls would be tiresome.

As for the dimmed backgrounds a configuration like so would do the trick: slop -c0,0,0,0.5 -b1000

Nice! I had to increase the argument to -b to make it thicker for desired effect though.

woky avatar Aug 20 '15 09:08 woky

@naelstrof Any plans for this? It would be amazing for resizing screenshot/screencast regions.

zedeus avatar Mar 12 '17 16:03 zedeus

It's possible, it's just quite a bit of work and I don't use it myself so it's quite low on the priority list. With the re-write it's not so hard now, I'll look into it.

naelstrof avatar Mar 12 '17 22:03 naelstrof

You could introduce a rectangle move modifier key. When drawing a rectangle, it checks if the modifier key is pressed down, and while the key is pressed down, the rectangle will move instead of resize. If you let go of the modifier key, it switches back to resize mode.

This would allow for multiple fine adjustments if necessary (press modifier, let go, press again...).

When mouse-1 is let go, the rectangle is final.

phisch avatar Apr 15 '19 01:04 phisch

On Mon, Apr 15 2019, Philipp Schaffrath wrote:

This would allow for multiple fine adjustments if necessary (press modifier, let go, press again...).

That's a pretty neat idea. I don't remember where I saw this mode in action (inkscape or gimp?).

wavexx avatar Apr 15 '19 10:04 wavexx