diff options
| author | Silvio Rhatto <rhatto@riseup.net> | 2024-08-20 20:07:05 -0300 |
|---|---|---|
| committer | Silvio Rhatto <rhatto@riseup.net> | 2024-08-20 20:07:05 -0300 |
| commit | a09a77ee87df69b1e9fe9fba98c21b11983d0150 (patch) | |
| tree | 2f68ed8570bb4ed2f000471c88c58e101e617c6d /screenshot | |
| parent | d3ae2029e3f50b63c2adaee12422348e7dd379c2 (diff) | |
| download | utils-x11-a09a77ee87df69b1e9fe9fba98c21b11983d0150.tar.gz utils-x11-a09a77ee87df69b1e9fe9fba98c21b11983d0150.tar.bz2 | |
Add some commands from the scripts repository
Diffstat (limited to 'screenshot')
| -rwxr-xr-x | screenshot | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/screenshot b/screenshot new file mode 100755 index 0000000..75a9895 --- /dev/null +++ b/screenshot @@ -0,0 +1,13 @@ +#!/bin/sh +# +# Wrapper around scrot + +# Workaround +# See https://bbs.archlinux.org/viewtopic.php?id=86507 +# https://groups.google.com/forum/#!msg/linux.debian.bugs.dist/_tmJIFYBfZo/F7x5WFEQCMsJ +if echo "$*" | grep -q -- '-s'; then + sleep 0.2 +fi + +# Take a screenshot +scrot '%Y-%m-%d-%H:%M:%S_$wx$h.png' -e 'mv $f ~/load/' $* |
