]> git.friedersdorff.com Git - max/saltfiles.git/commitdiff
Use clipboard, not primary selection for tmux copy paste
authorMaximilian Friedersdorff <max@friedersdorff.com>
Mon, 7 Jun 2021 08:37:09 +0000 (09:37 +0100)
committerMaximilian Friedersdorff <max@friedersdorff.com>
Mon, 7 Jun 2021 08:37:09 +0000 (09:37 +0100)
states/tmux/files/wm_copy
states/tmux/files/wm_paste

index 44a802cd431a58dfeb5264cd83e05e592b973ff8..1ea6ef0e7eb200f7a799f3abbb2cd0904065e90f 100644 (file)
@@ -3,5 +3,5 @@
 if [[ $XDG_SESSION_TYPE == "wayland" ]]; then
     wl-copy < /dev/stdin > /dev/null
 else
-    xclip -i < /dev/stdin > /dev/null
+    xclip -selection clipboard -i < /dev/stdin > /dev/null
 fi
index f25a0d257257f9a1dd31116dedc80d5dc22ae5ef..abf1385af13a5fc130b164d9b042b3080df53c7f 100644 (file)
@@ -3,5 +3,5 @@
 if [[ XDG_SESSION_TYPE == "wayland" ]]; then
     wl-paste
 else
-    xclip -o
+    xclip -selection clipboard -o
 fi