From fff8f1a743941f062a9316b826e0f8fb4dba42fe Mon Sep 17 00:00:00 2001 From: "Alexandre Cavalheiro S. Tiago da Silva" Date: Sat, 30 Dec 2023 12:51:19 -0300 Subject: [PATCH] fix: make clipboard consistent across applications --- scripts/hyprland/start_services.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/scripts/hyprland/start_services.sh b/scripts/hyprland/start_services.sh index 25a0e75..49850bb 100755 --- a/scripts/hyprland/start_services.sh +++ b/scripts/hyprland/start_services.sh @@ -35,3 +35,15 @@ mako & # /nix/store/$(ls -la /nix/store | rg '^d.*polkit-kde-agent.*\d$' | awk '{print $9}')/libexec/polkit-kde-authentication-agent-1 & +# +# Refresh kdeconnect connections +# +kdeconnect-cli --refresh & + +# +# Clipboard manager +# +wl-paste -w cliphist store & + + # Need this to be able to paste in xwayland applications. +wl-paste -t text -w sh -c 'v=$(cat); cmp -s <(xclip -selection clipboard -o) <<< "$v" || xclip -selection clipboard <<< "$v"' &