dotfiles/scripts/.local/bin/clear-clipboard.sh

10 lines
178 B
Bash
Raw Normal View History

2022-03-06 15:22:37 +00:00
#!/usr/bin/env 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