]> git.friedersdorff.com Git - max/saltfiles.git/blob - states/tmux/files/wm_copy
4e4750af167a458fd796409c3c3fe86af489b022
[max/saltfiles.git] / states / tmux / files / wm_copy
1 #!/bin/sh
2
3 if [ $XDG_SESSION_TYPE == "wayland" ]; then
4     wl-copy < /dev/stdin > /dev/null
5 else
6     xclip -selection clipboard -i < /dev/stdin > /dev/null
7 fi