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 | 2f5b5616d05c0475602fa80c72ed0dd7cd56a6ff (patch) | |
| tree | 0a768f04cc25a15cfd6996672c3364e8fecc64a6 /dotfiles/hyprland | |
| parent | 057a7d24ecd2d4360c59c77b71ccd85b33cd7785 (diff) | |
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.
Diffstat (limited to 'dotfiles/hyprland')
| -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 |
