diff options
| author | Craig Jennings <c@cjennings.net> | 2026-01-27 07:58:22 -0600 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-01-27 07:58:22 -0600 |
| commit | bc3d3ac308bcd13d6543c53eae2d3f3033daed27 (patch) | |
| tree | c14c0110cad50bd2490bfd15a60d2bb7e232c92d | |
| parent | 1f6680feb0700467a6fcfb8e3c1b8a2d7c1d1e9a (diff) | |
| download | archsetup-bc3d3ac308bcd13d6543c53eae2d3f3033daed27.tar.gz archsetup-bc3d3ac308bcd13d6543c53eae2d3f3033daed27.zip | |
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.
| -rwxr-xr-x | dotfiles/hyprland/.local/bin/screenshot | 4 |
1 files 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 |
