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

10 lines
170 B
Bash
Executable file

#!/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