screenshot edit

This commit is contained in:
2025-03-12 21:36:50 +02:00
parent 6fafc566ae
commit f679d767a3
4 changed files with 15 additions and 2 deletions

View File

@@ -0,0 +1,11 @@
#!/bin/bash
SCREENSHOTS_DIR="$HOME/Pictures/Screenshots"
LAST_SCREENSHOT=$(ls -t "$SCREENSHOTS_DIR" | head -n 1)
if [[ -n "$LAST_SCREENSHOT" ]]; then
swappy -f "$SCREENSHOTS_DIR/$LAST_SCREENSHOT" -o "$SCREENSHOTS_DIR/$LAST_SCREENSHOT"
else
notify-send -u critical -t 3 "Error" "Can't find screenshot :("
fi

View File

@@ -7,5 +7,5 @@ echo "$SS_PATH"
if [[ -n "$SS_PATH" && "$SS_PATH" == /home/ocbwoy3/Pictures/Screenshots/* ]]; then
wl-copy < "$SS_PATH"
notify-send "Screenshot" "Successfully captured screenshot to clipboard"
notify-send "Screenshot" "Successfully captured screenshot to clipboard.\n<small>Open swappy with ALT+SHIFT+PS.</small>"
fi

View File

@@ -7,5 +7,5 @@ echo "$SS_PATH"
if [[ -n "$SS_PATH" && "$SS_PATH" == /home/ocbwoy3/Pictures/Screenshots/* ]]; then
wl-copy < "$SS_PATH"
notify-send "Screenshot" "Successfully captured screenshot to clipboard"
notify-send "Screenshot" "Successfully captured selection to clipboard.\n<small>Open swappy with ALT+SHIFT+PS.</small>"
fi