This commit is contained in:
2025-10-01 11:45:39 -07:00
parent 849d890144
commit 76627f33e3

View File

@ -1,7 +1,8 @@
#!/bin/sh #!/bin/sh
FILENAME=$(date +%m-%d-%Y:%R:%S)
if [[ $1 == 1 ]]; then if [[ $1 == 1 ]]; then
SELECTION=$(slop) import ~/pictures/$FILENAME.png
maim -g $SELECTION ~/pictures/$(date +%m-%d-%Y:%R:%S).png && notify-send "screenshot saved" -i :
else else
maim ~/pictures/$(date +%m-%d-%Y:%R:%S).png && notify-send "screenshot saved" -i : import -window root ~/pictures/$FILENAME.png
fi fi
notify-send "screenshot taken" -i :