clear-clipboard.sh: Also clear clipboard in X/XWayland

This commit is contained in:
the_4n0nym0u53 2022-01-27 20:09:04 +01:00
parent 50b0d19839
commit 79e8c96121
No known key found for this signature in database
GPG key ID: 35EE09F5481049BB

View file

@ -1,4 +1,9 @@
#!/bin/dash
# Wayland clipboard
wl-copy -c
wl-copy -pc
# X clipboard (for XWayland)
echo -n "" | xclip -selection clipboard -i
echo -n "" | xclip -selection primary -i