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

10 lines
163 B
Bash
Raw Permalink Normal View History

2022-03-06 15:22:37 +00:00
#!/usr/bin/env dash
# Wayland clipboard
wl-copy -c
wl-copy -pc
2022-07-05 13:43:37 +00:00
# X clipboard
echo -n "" | xclip -selection clipboard -i
echo -n "" | xclip -selection primary -i