From f38d3ede24eeb280e652d1086e0649012512cbfc Mon Sep 17 00:00:00 2001 From: Ahmad Ansori Palembani Date: Thu, 2 May 2024 08:35:36 +0700 Subject: [PATCH] fix(flameshot): Putting image to clipboard is not consistent I assume the issue is caused by Flameshot using KDE's library to put the screenshot to clipboard. REF: https://github.com/flameshot-org/flameshot/issues/2848#issuecomment-1368644640 --- .config/hypr/hyprland.conf | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.config/hypr/hyprland.conf b/.config/hypr/hyprland.conf index 78faae7..eb0dd9a 100644 --- a/.config/hypr/hyprland.conf +++ b/.config/hypr/hyprland.conf @@ -114,8 +114,17 @@ $spaceMod = SUPER SHIFT # Super + Shift = MOD key(s) that control/modify the Wo bind = $mainMod, T, exec, kitty bind = $mainMod, Q, killactive, bind = $mainMod, B, exec, $BROWSER +# >> In case flameshot stop working again #bind = , Print, exec, grim -g "$(slurp)" - | wl-copy -bind = , Print, exec, env XDG_CURRENT_DESKTOP="sway" flameshot gui +# << +# >> Commented because flameshot clipboard support for wayland is buggy, probably because they use KDE's clipboard library +# I'll be feeding flameshot's raw output to wl-copy for now +#bind = , Print, exec, env XDG_CURRENT_DESKTOP="sway" flameshot gui +# << +# >> zi-copy is a custom private script +# It basically prompt me if I want to upload the result to S3 (using s3cmd) before copying to clipboard or not +bind = , Print, exec, env XDG_CURRENT_DESKTOP="sway" flameshot gui --raw | $(zi-copy || wl-copy) +# << bind = $mainMod, Space, exec, exec `tofi-run` 2>/dev/null bind = $metaMod, Q, exit, bind = $metaMod, F, togglefloating,