mirror of
https://github.com/notwa/rc
synced 2024-11-05 21:39:03 -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() {
|
scropt() {
|
||||||
local now=
|
local now=
|
||||||
which ~/sh/now 2>/dev/null >/dev/null && now=$(~/sh/now) || now=$(date +%F_%T)
|
which ~/sh/now 2>/dev/null >/dev/null && now=$(~/sh/now) || now=$(date +%F_%T)
|
||||||
echo $now
|
local fn="$HOME/play/$now.png"
|
||||||
scrot ~/$now.png -e "optipng -quiet \$f" "$@" \
|
scrot "$fn" -e "optipng -quiet \$f" "$@"
|
||||||
&& mv ~/$now.png ~/Dropbox/Public/screenshots/
|
echo "$fn"
|
||||||
}
|
}
|
||||||
scropt "$@"
|
scropt "$@"
|
||||||
|
|
Loading…
Reference in a new issue