X-Git-Url: https://git.friedersdorff.com/?a=blobdiff_plain;f=states%2Ftmux%2Ffiles%2Fwm_paste;h=f25a0d257257f9a1dd31116dedc80d5dc22ae5ef;hb=7d48f821e2b663373c76ff6da2107d80058edd82;hp=d96d0ee6c90e4cfe5580d29126b694e4c017f638;hpb=744a661dd0579d50d86091d5dd367075f06a290c;p=max%2Fsaltfiles.git diff --git a/states/tmux/files/wm_paste b/states/tmux/files/wm_paste index d96d0ee..f25a0d2 100644 --- a/states/tmux/files/wm_paste +++ b/states/tmux/files/wm_paste @@ -1,3 +1,7 @@ #!/bin/sh -xclip -o -selection "clipboard" +if [[ XDG_SESSION_TYPE == "wayland" ]]; then + wl-paste +else + xclip -o +fi