dots


commit
f8f2c65
parent
53c3c38
author
chasinglightning
date
2025-06-09 20:15:05 -0400 EDT
add clipboard copy to screenshot full window scripts
2 files changed,  +10, -2
M config/.local/bin/screenshot
+5, -1
 1@@ -9,6 +9,10 @@ SHOTPATH="/media/kat/disk/Pictures/Screenshots"
 2 COUNT=$(find $SHOTPATH -type f -printf x | wc -c | awk '{print $1+1}' | awk '{printf "%04d\n", $0}')
 3 FILE="$SHOTPATH/$COUNT.png"
 4 
 5-import -window root "$FILE" || exit 1
 6+post () { # copy image to clip & send a notification
 7+		xclip -selection clipboard -t image/png -i $FILE && notify-send -i "$FILE" "$FILE copied to clipboard"
 8+}
 9+
10+import -window root "$FILE" && post || exit 1
11 
12 notify-send "screenshot taken" "saved as ${FILE} in ${SHOTPATH}"
M config/.local/bin/screenshot-laptop
+5, -1
 1@@ -9,6 +9,10 @@ SHOTPATH="/home/kat/Pictures/Screenshots"
 2 COUNT=$(find $SHOTPATH -type f -printf x | wc -c | awk '{print $1+1}' | awk '{printf "%04d\n", $0}')
 3 FILE="$SHOTPATH/$COUNT.png"
 4 
 5-import -window root "$FILE" || exit 1
 6+post () { # copy image to clip & send a notification
 7+		xclip -selection clipboard -t image/png -i $FILE && notify-send -i "$FILE" "$FILE copied to clipboard"
 8+}
 9+
10+import -window root "$FILE" && post || exit 1
11 
12 notify-send "screenshot taken" "saved as ${FILE} in ${SHOTPATH}"