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 | 749f14970473efc8d3728a019b67a9f418c98141 (patch) | |
| tree | 3fcced700c2dd1d141235ab4af5c1a95568b0884 | |
| parent | c186778c082d95bd04b203014a8c2dd12e5fae7a (diff) | |
| download | archsetup-749f14970473efc8d3728a019b67a9f418c98141.tar.gz archsetup-749f14970473efc8d3728a019b67a9f418c98141.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 |
