🐛 fix(rofi): update clipboard if an item is selected

This commit is contained in:
Sergio Laín 2025-05-24 20:40:18 +02:00
parent deb70d53a8
commit 3805b4e6d3
No known key found for this signature in database
GPG key ID: 51BB28D8B42FB438

View file

@ -4,5 +4,8 @@ if ! command -v cliphist >/dev/null 2>&1; then
notify-send "Program not found" "Make sure you have installed cliphist" notify-send "Program not found" "Make sure you have installed cliphist"
exit 1 exit 1
else else
cliphist list | rofi -dmenu | cliphist decode | wl-copy set -e
selection="$(cliphist list | rofi -dmenu -i)"
cliphist decode <<<"$selection" | wl-copy
fi fi