summaryrefslogtreecommitdiff
path: root/.scripts/grimshot-gnosis-save.sh
blob: f6d01377ade9b0db92092dd39be603ac619da927 (about) (plain)
1
2
3
4
5
6
7
8
9
10
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