- commit
- 53c3c38
- parent
- 54db609
- author
- chasinglightning
- date
- 2025-06-09 19:08:59 -0400 EDT
split screenshot scripts between ones for desktop and ones for laptop
4 files changed,
+38,
-2
+1,
-1
1@@ -5,7 +5,7 @@
2 # https://github.com/BreadOnPenguins/scripts/blob/master/screenshot_extra_features
3
4 export DISPLAY=:0
5-SHOTPATH="/home/kat/Pictures/Screenshots"
6+SHOTPATH="/media/kat/disk/Pictures/Screenshots"
7 COUNT=$(find $SHOTPATH -type f -printf x | wc -c | awk '{print $1+1}' | awk '{printf "%04d\n", $0}')
8 FILE="$SHOTPATH/$COUNT.png"
9
+14,
-0
1@@ -0,0 +1,14 @@
2+#!/usr/bin/env bash
3+#
4+# modified from this GH script:
5+#
6+# https://github.com/BreadOnPenguins/scripts/blob/master/screenshot_extra_features
7+
8+export DISPLAY=:0
9+SHOTPATH="/home/kat/Pictures/Screenshots"
10+COUNT=$(find $SHOTPATH -type f -printf x | wc -c | awk '{print $1+1}' | awk '{printf "%04d\n", $0}')
11+FILE="$SHOTPATH/$COUNT.png"
12+
13+import -window root "$FILE" || exit 1
14+
15+notify-send "screenshot taken" "saved as ${FILE} in ${SHOTPATH}"
+1,
-1
1@@ -5,7 +5,7 @@
2 # https://github.com/BreadOnPenguins/scripts/blob/master/screenshot_extra_features
3
4 export DISPLAY=:0
5-SHOTPATH="/home/kat/Pictures/Screenshots"
6+SHOTPATH="/media/kat/disk/Pictures/Screenshots"
7 COUNT=$(find $SHOTPATH -type f -printf x | wc -c | awk '{print $1+1}' | awk '{printf "%04d\n", $0}')
8 FILE="$SHOTPATH/$COUNT.png"
9
+22,
-0
1@@ -0,0 +1,22 @@
2+#!/usr/bin/env bash
3+
4+# modified from this GH script:
5+#
6+# https://github.com/BreadOnPenguins/scripts/blob/master/screenshot_extra_features
7+
8+export DISPLAY=:0
9+SHOTPATH="/home/kat/Pictures/Screenshots"
10+COUNT=$(find $SHOTPATH -type f -printf x | wc -c | awk '{print $1+1}' | awk '{printf "%04d\n", $0}')
11+FILE="$SHOTPATH/$COUNT.png"
12+
13+
14+selection () { # draw a selection, or click to select a window
15+ import "$FILE" && post
16+}
17+
18+
19+post () { # copy image to clip & send a notification
20+ xclip -selection clipboard -t image/png -i $FILE && notify-send -i "$FILE" "$FILE copied to clipboard"
21+}
22+
23+selection