aboutsummaryrefslogtreecommitdiff
path: root/scripts/.local/bin/screenshot.sh
diff options
context:
space:
mode:
authorEugene Sokolov <eug-vs@keemail.me>2021-07-21 15:05:28 +0200
committerGitHub <noreply@github.com>2021-07-21 15:05:28 +0200
commit2e6876e6c1109673db2527c4349fbdac0f1557fe (patch)
tree7e0028cede47398c74056c92af30c515bc8f9579 /scripts/.local/bin/screenshot.sh
parent26d393eacb0468edeed62befe365c1ae0752a680 (diff)
parentcf3eefda31e98d4725a64000861a388ba7708c62 (diff)
downloaddotfiles-2e6876e6c1109673db2527c4349fbdac0f1557fe.tar.gz
Merge pull request #2 from eug-vs/feat/stow
feat!: move to GNU Stow, remove wiki
Diffstat (limited to 'scripts/.local/bin/screenshot.sh')
-rwxr-xr-xscripts/.local/bin/screenshot.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/.local/bin/screenshot.sh b/scripts/.local/bin/screenshot.sh
new file mode 100755
index 0000000..66d9c5c
--- /dev/null
+++ b/scripts/.local/bin/screenshot.sh
@@ -0,0 +1,11 @@
+#!/bin/sh
+# Screenshot via ImageMagick
+# Passes all args down to import command
+
+SCREENSHOTS_DIR=$HOME/Pictures/Screenshots
+FILENAME=$SCREENSHOTS_DIR/$(date +%F_%H-%M-%S).png
+
+echo "$@"
+
+mkdir -p $SCREENSHOTS_DIR
+import $@ $FILENAME && xclip -selection clipboard -target image/png -i < $FILENAME