aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDolbaeb777K <126266582+Dolbaeb777K@users.noreply.github.com>2025-03-21 21:29:46 +0700
committerGitHub <noreply@github.com>2025-03-21 21:29:46 +0700
commit227fd0213400580cd3d5627c1097c57904290382 (patch)
tree04c98eced94c8b5a010e78e1da3e62e24486b629
parentc88cccf6d512934b040b157f7f8ce6ef81f4aec4 (diff)
Update ScreenShot.sh
shotswappy learned to copy!
-rwxr-xr-xconfig/hypr/scripts/ScreenShot.sh12
1 files changed, 10 insertions, 2 deletions
diff --git a/config/hypr/scripts/ScreenShot.sh b/config/hypr/scripts/ScreenShot.sh
index 852be4b0..ff477766 100755
--- a/config/hypr/scripts/ScreenShot.sh
+++ b/config/hypr/scripts/ScreenShot.sh
@@ -109,6 +109,8 @@ shotwin() {
shotarea() {
tmpfile=$(mktemp)
grim -g "$(slurp)" - >"$tmpfile"
+
+ # Copy with saving
if [[ -s "$tmpfile" ]]; then
wl-copy <"$tmpfile"
mv "$tmpfile" "$dir/$file"
@@ -128,7 +130,13 @@ shotactive() {
shotswappy() {
tmpfile=$(mktemp)
- grim -g "$(slurp)" - >"$tmpfile" && notify_view "swappy"
+ grim -g "$(slurp)" - >"$tmpfile"
+
+ # Copy without saving
+ if [[ -s "$tmpfile" ]]; then
+ wl-copy <"$tmpfile"
+ notify_view "swappy"
+ fi
}
if [[ ! -d "$dir" ]]; then
@@ -153,4 +161,4 @@ else
echo -e "Available Options : --now --in5 --in10 --win --area --active --swappy"
fi
-exit 0 \ No newline at end of file
+exit 0
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage