diff options
author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-02-14 02:23:53 +0100 |
---|---|---|
committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-02-14 02:23:53 +0100 |
commit | f5526c4cfbe0803212050dc53a487e5c3b38bd4b (patch) | |
tree | 2ba0b97fbd1a6ac4f3ae4b529da0d21570a3f4b8 /bin/extra/swapclip | |
parent | 991fc41022fbdf7da399eb8ea53b3c67d0239d47 (diff) |
Update scripts
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 |