You are not logged in.
Pages: 1
-
Last edited by travkin (2009-11-24 18:58:51)
Offline
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
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
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
Pages: 1