Does this work

This commit is contained in:
2026-05-18 16:36:44 +05:30
parent b370921034
commit 2692a446ed
17 changed files with 167 additions and 62 deletions
+2 -3
View File
@@ -3,14 +3,14 @@
tmp_file="/tmp/screenshot.png"
[ -f "$tmp_file" ] && rm -f "$tmp_file"
killall grim slurp
message="Screenshot copied to clipboard."
message="Screenshot copied to clipboard."
urgency="normal"
case "$1" in
fullclip)
grim - | tee "$tmp_file" | wl-copy -t image/png
;;
fullsave)
fullsave)
pics_dir="${XDG_PICTURES_DIR:-$HOME/pics}"
[ -d "$pics_dir" ] || mkdir -p "$pics_dir"
tmp_file="$pics_dir/$(date -u "+%Y-%m-%d_%H-%M-%S").png"
@@ -27,4 +27,3 @@ case "$1" in
esac
notify-send -e -h "string:x-canonical-private-synchronous:${0##*/}" -u "$urgency" -i "$tmp_file" "$message"