You are not logged in.

#1 2008-02-08 20:53:23

travkin
Member
Registered: 2007-12-21
Posts: 21

Scrotting

-

Last edited by travkin (2009-11-24 18:58:51)

Offline

#2 2008-02-08 21:11:08

fwojciec
Member
Registered: 2007-05-20
Posts: 1,411

Re: Scrotting

OK - I'm positive that there is a more elegant solution but this should work:

scrot %Y-%m-%d_travkin.png -d 8 -c -t 576x230 -e 'mv $f `echo $f | sed 's/.png//g'`-thumb.png ~/shots/'

Offline

#3 2008-02-08 21:11:30

rson451
Member
From: Annapolis, MD USA
Registered: 2007-04-15
Posts: 1,233
Website

Re: Scrotting

alias ss="scrot %Y-%m-%d_travkin.png -d 8 -c -t 576x230 && mv *_travkin.png ~/shots/"

should work, but if you happen to have any other file that ends in _travkin.png in the cwd, then it will be moved as well.


archlinux - please read this and this — twice — then ask questions.
--
http://rsontech.net | http://github.com/rson

Offline

#4 2008-02-08 22:16:17

finferflu
Forum Fellow
From: Manchester, UK
Registered: 2007-06-21
Posts: 1,899
Website

Re: Scrotting

That's my ratpoison alias for scrot, which is even more practical than bash in this case:

alias shot exec scrot -d 1 $HOME/Desktop/shot-$(date +%d%m%y).png

Even though you don't use ratpoison, you can easily use the same alias for bash.


Have you Syued today?
Free music for free people! | Earthlings

"Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away." -- A. de Saint-Exupery

Offline

Board footer

Powered by FluxBB