dotfiles/scripts/.local/bin/clear-clipboard.sh
2022-03-06 16:22:37 +01:00

10 lines
178 B
Bash
Executable file

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