mirror of
https://github.com/notwa/rc
synced 2024-11-05 15:49:02 -08:00
update scropt
This commit is contained in:
parent
1c79f54129
commit
cccc73924c
2 changed files with 3 additions and 3 deletions
0
sh/now
Normal file → Executable file
0
sh/now
Normal file → Executable file
|
@ -3,8 +3,8 @@
|
|||
scropt() {
|
||||
local now=
|
||||
which ~/sh/now 2>/dev/null >/dev/null && now=$(~/sh/now) || now=$(date +%F_%T)
|
||||
echo $now
|
||||
scrot ~/$now.png -e "optipng -quiet \$f" "$@" \
|
||||
&& mv ~/$now.png ~/Dropbox/Public/screenshots/
|
||||
local fn="$HOME/play/$now.png"
|
||||
scrot "$fn" -e "optipng -quiet \$f" "$@"
|
||||
echo "$fn"
|
||||
}
|
||||
scropt "$@"
|
||||
|
|
Loading…
Reference in a new issue