From c089af45efc39058fda43c99c484c4391e25cd93 Mon Sep 17 00:00:00 2001 From: "Alexandre Cavalheiro S. Tiago da Silva" Date: Mon, 15 Jan 2024 17:31:47 -0300 Subject: [PATCH] fix: annoying clipboard behaviour where it'd paste a newline along with it --- scripts/hyprland/start_services.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/hyprland/start_services.sh b/scripts/hyprland/start_services.sh index dee2fe1..c70cfcc 100755 --- a/scripts/hyprland/start_services.sh +++ b/scripts/hyprland/start_services.sh @@ -46,7 +46,7 @@ kdeconnect-cli --refresh & 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"' & +wl-paste -t text -w sh -c 'xclip -selection clipboard -o > /dev/null 2> /dev/null || xclip -selection clipboard' # # Start xwaylandvideobridge