Copy screenshots as PNG clipboard data
This commit is contained in:
@@ -36,7 +36,7 @@ open_editor() {
|
|||||||
--output-filename "$filepath" \
|
--output-filename "$filepath" \
|
||||||
--actions-on-enter save-to-clipboard \
|
--actions-on-enter save-to-clipboard \
|
||||||
--save-after-copy \
|
--save-after-copy \
|
||||||
--copy-command 'wl-copy'
|
--copy-command 'wl-copy --type image/png'
|
||||||
else
|
else
|
||||||
$SCREENSHOT_EDITOR "$filepath"
|
$SCREENSHOT_EDITOR "$filepath"
|
||||||
fi
|
fi
|
||||||
@@ -130,7 +130,7 @@ case "$PROCESSING" in
|
|||||||
slurp)
|
slurp)
|
||||||
grim -g "$SELECTION" "$FILEPATH" || exit 1
|
grim -g "$SELECTION" "$FILEPATH" || exit 1
|
||||||
echo "$FILEPATH"
|
echo "$FILEPATH"
|
||||||
wl-copy <"$FILEPATH"
|
wl-copy --type image/png <"$FILEPATH"
|
||||||
|
|
||||||
(
|
(
|
||||||
ACTION=$(notify-send -a omarchy-action "Screenshot saved to clipboard and file" "Edit with Super + Alt + , (or click this)" -t 10000 --hint="string:image-path:$FILEPATH" -A "default=edit")
|
ACTION=$(notify-send -a omarchy-action "Screenshot saved to clipboard and file" "Edit with Super + Alt + , (or click this)" -t 10000 --hint="string:image-path:$FILEPATH" -A "default=edit")
|
||||||
@@ -138,7 +138,7 @@ case "$PROCESSING" in
|
|||||||
) >/dev/null 2>&1 &
|
) >/dev/null 2>&1 &
|
||||||
;;
|
;;
|
||||||
copy)
|
copy)
|
||||||
grim -g "$SELECTION" - | wl-copy
|
grim -g "$SELECTION" - | wl-copy --type image/png
|
||||||
;;
|
;;
|
||||||
save)
|
save)
|
||||||
grim -g "$SELECTION" "$FILEPATH" || exit 1
|
grim -g "$SELECTION" "$FILEPATH" || exit 1
|
||||||
|
|||||||
Reference in New Issue
Block a user