From 2f5b5616d05c0475602fa80c72ed0dd7cd56a6ff Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Tue, 27 Jan 2026 07:58:22 -0600 Subject: fix(screenshot): explicit mime types for wl-copy Added --type text/plain for path copy and --type image/png for image copy to prevent wl-copy from misinterpreting content. --- dotfiles/hyprland/.local/bin/screenshot | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dotfiles/hyprland/.local/bin/screenshot b/dotfiles/hyprland/.local/bin/screenshot index 3e61291..c5803c8 100755 --- a/dotfiles/hyprland/.local/bin/screenshot +++ b/dotfiles/hyprland/.local/bin/screenshot @@ -17,7 +17,7 @@ CHOICE=$(printf '󰅍 Copy Path\n󰋩 Copy Image\n󰏫 Annotate' | \ fuzzel --dmenu --prompt "Screenshot: " --width 20 --lines 3) case "$CHOICE" in - *"Copy Path"*) echo -n "$FILE" | wl-copy ;; - *"Copy Image"*) wl-copy < "$FILE" ;; + *"Copy Path"*) echo -n "$FILE" | wl-copy --type text/plain ;; + *"Copy Image"*) wl-copy --type image/png < "$FILE" ;; *"Annotate"*) satty --filename "$FILE" --output-filename "$FILE" --copy-command wl-copy ;; esac -- cgit v1.2.3