dotfiles/scripts/.local/bin/clear-clipboard.sh
2022-07-05 15:43:37 +02:00

10 lines
163 B
Bash
Executable file

#!/usr/bin/env dash
# Wayland clipboard
wl-copy -c
wl-copy -pc
# X clipboard
echo -n "" | xclip -selection clipboard -i
echo -n "" | xclip -selection primary -i