summaryrefslogtreecommitdiff
path: root/.scripts
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2024-07-20 15:24:04 +0300
committerThanos Apollo <[email protected]>2024-07-20 15:24:04 +0300
commit1686824fd12d34592495e93f45294f704ae58940 (patch)
tree676e410171729746710ac18a575000f3d6df8fdb /.scripts
parent63537e50b62ffe991e279dee4e2147cdc0c4d2bf (diff)
scripts: Add grimshot-gnosis-save
Diffstat (limited to '.scripts')
-rwxr-xr-x.scripts/grimshot-gnosis-save.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/.scripts/grimshot-gnosis-save.sh b/.scripts/grimshot-gnosis-save.sh
new file mode 100755
index 0000000..f6d0137
--- /dev/null
+++ b/.scripts/grimshot-gnosis-save.sh
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+# Prompt for filename using fuzzel
+filename=$(echo "" | fuzzel --dmenu --prompt="Enter filename:")
+
+# If filename is not empty, proceed with the screenshot
+if [ ! -z "$filename" ]; then
+ grimshot save area "$HOME/.config/emacs/gnosis/images/$filename.png"
+else
+ echo "No filename provided. Screenshot aborted."
+fi