diff options
Diffstat (limited to 'bin/extra/swapclip')
-rwxr-xr-x | bin/extra/swapclip | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/bin/extra/swapclip b/bin/extra/swapclip new file mode 100755 index 0000000..25b9857 --- /dev/null +++ b/bin/extra/swapclip @@ -0,0 +1,8 @@ +#!/bin/sh + +if [ "$WAYLAND_DISPLAY" ] +then + paste="$(wl-paste)" + wl-paste -p | wl-copy -n + printf "%s" "$paste" | wl-copy -p -n +fi |