You are not logged in.

#1 2010-05-10 02:11:05

y27
Member
Registered: 2009-05-27
Posts: 147
Website

scut - easily cut a part of your screen and move it around

Hi fellow Archers,

today I was doing some research on the internet on one desktop in dwm, and then I needed to copy information from a part of the screen (not easily CTRL-C'd) of my browser into an editor on another desktop. Of course, I wouldn't want to mess up the two desktops entirely, so the ideal thing would be to "cut" a part of the browser screen effortlessly, and move that part to the other screen.

So I made scut -- run it (set up a keycombo for it..), select an area with your mouse and there you go, it shows you the screenshot in a gtk window with resizability set to FALSE - this means that for dwm users (and others), the window will always be in tiling mode -- therefore it won't mess up your screen estate.

Move that window where you want, and then ALT-F4 / (whatever else you have) it after you're done.


Extremely simple, but I find it useful, maybe somebody else will too. The main advantage over classic screen shots is that it does everything from you - you don't have to open the screenshot in an image editor with a trillion random buttons taking up space, then remove it, etc.

It's here : http://github.com/houbysoft/short/blob/master/scut.py (git repo) or here : http://aur.archlinux.org/packages.php?ID=37099 (AUR, or install scut).

P.S.
Suggestions for something better for the PKGBUILD would be welcome (I don't want to clone everything since the repo contains other unrelated small programs).

Last edited by y27 (2010-05-10 02:13:45)

Offline

#2 2010-11-13 22:34:35

Sara
Member
From: USA
Registered: 2009-07-09
Posts: 219
Website

Re: scut - easily cut a part of your screen and move it around

This is like, the coolest thing since sliced bread! Just two things to note. First, change line 10 of the PKGBUILD to:
source=('https://github.com/houbysoft/short/raw/master/scut.py')

the difference from the original being https, versus http (for otherwise, makepkg stops because of security issues).

Secondly, because of the python upgrade, the shebang line needs to use python2 rather than python.

Other than those two things, this program works exactly as advertised. I can forsee myself using it quite often smile. Thanks a lot.

Last edited by Sara (2010-11-13 22:35:57)


Registed Linux User 483618

Offline

#3 2010-11-13 22:56:57

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: scut - easily cut a part of your screen and move it around

That's very cool. Nice work y27.

Offline

#4 2010-11-13 23:25:50

dmz
Member
From: Sweden
Registered: 2008-08-27
Posts: 881
Website

Re: scut - easily cut a part of your screen and move it around

alt+f4 doesn't work for me. Shouldn't 'q' be a bit more.. 'usual'?

Offline

#5 2010-11-13 23:29:06

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: scut - easily cut a part of your screen and move it around

dmz wrote:

alt+f4 doesn't work for me. Shouldn't 'q' be a bit more.. 'usual'?

That's just the default of whatever wm that the user is running. My xmonad setup is mod4-ctrl-c.

Offline

#6 2010-11-13 23:59:39

dmz
Member
From: Sweden
Registered: 2008-08-27
Posts: 881
Website

Re: scut - easily cut a part of your screen and move it around

Ah, ok, sorry.

Offline

#7 2010-11-14 06:07:53

y27
Member
Registered: 2009-05-27
Posts: 147
Website

Re: scut - easily cut a part of your screen and move it around

I'm glad you find it useful.

Sara, fixed both the PKGBUILD and the shebang line, thanks for reporting this!

Offline

#8 2010-11-15 10:07:04

0mark
Member
From: earth
Registered: 2010-06-09
Posts: 162
Website

Re: scut - easily cut a part of your screen and move it around

Really cool. I did not even know that i need a thing like that. Now i did not know how i could ever lived without smile


Ceterum autem censeo Systemdinem esse delendam

Offline

#9 2010-11-16 07:04:01

medianmajik
Member
Registered: 2010-05-27
Posts: 53

Re: scut - easily cut a part of your screen and move it around

Wow, this is straight amazing!  Time to cook up some scripts with this.


One thing at a time

Offline

Board footer

Powered by FluxBB