From 1686824fd12d34592495e93f45294f704ae58940 Mon Sep 17 00:00:00 2001 From: Thanos Apollo Date: Sat, 20 Jul 2024 15:24:04 +0300 Subject: scripts: Add grimshot-gnosis-save --- .scripts/grimshot-gnosis-save.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 .scripts/grimshot-gnosis-save.sh (limited to '.scripts/grimshot-gnosis-save.sh') 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 -- cgit v1.2.3