From a69292373468029a5e4bac9dcd516141164c4f3d Mon Sep 17 00:00:00 2001
From: Simon Rieger <simon@rieger.app>
Date: Thu, 10 Apr 2025 14:26:03 +0200
Subject: [PATCH] improve cliphlist

---
 dot_config/hypr/keybindings.conf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dot_config/hypr/keybindings.conf b/dot_config/hypr/keybindings.conf
index 4390803..088910b 100644
--- a/dot_config/hypr/keybindings.conf
+++ b/dot_config/hypr/keybindings.conf
@@ -10,7 +10,7 @@ $mainMod = Alt
 bind = $mainMod, Return, exec, $terminal
 bind = $mainMod+Shift, Q, killactive,
 bind = $mainMod+Shift, L, exec, ~/.config/hypr/scripts/power.sh lock
-bind = $mainMod, Y, exec, cliphist list | fuzzel --dmenu | cliphist decode | wl-copy
+bind = $mainMod, Y, exec, cliphist list | fuzzel --dmenu | { read selection && [ -n "$selection" ] && echo "$selection" | cliphist decode | wl-copy; }
 bind = $mainMod+Shift, Y, exec, ~/.config/fuzzel/fuzzel-rbw.sh
 bind = $mainMod+Shift, M, exit,
 bind = $mainMod, E, exec, $fileManager