summaryrefslogtreecommitdiff
path: root/bin/screenshot
diff options
context:
space:
mode:
authorpants <niklasjo2004@gmail.com>2026-09-21 14:17:03 -0700
committerpants <niklasjo2004@gmail.com>2026-09-21 14:17:03 -0700
commit7b21727285e50b0b050c4ddd70d07542229c5366 (patch)
tree5d369153c5df5b41f3750d25479a68f20169c8ff /bin/screenshot
init
Diffstat (limited to 'bin/screenshot')
-rwxr-xr-xbin/screenshot10
1 files changed, 10 insertions, 0 deletions
diff --git a/bin/screenshot b/bin/screenshot
new file mode 100755
index 0000000..394e02c
--- /dev/null
+++ b/bin/screenshot
@@ -0,0 +1,10 @@
+#!/bin/sh
+FILENAME=$(date +%m-%d-%Y_%R:%S)
+mkdir -p ~/pictures/screenshots
+if [ $1 = 1 ]; then
+ import clipboard:
+ notify-send "Screenshot taken" "copied to clipboard" -i :
+else
+ import -window root ~/pictures/screenshots/"$FILENAME".png
+ notify-send "Screenshot taken" "saved to ~/pictures/screenshots/$FILENAME.png" -i :
+fi