FollieHiyuki-dotfiles/home/.local/bin/Wayland/clipboard

26 lines
470 B
Plaintext
Raw Normal View History

2021-02-13 11:28:59 -05:00
#!/bin/sh
if command -v mako >/dev/null
then
notification=mako
else
notification=dunst
fi
2021-02-13 11:28:59 -05:00
case $1 in
--wofi)
clipman pick --tool wofi -T'-p "Clipboard " -i -O default'
;;
--bemenu)
clipman pick --tool bemenu -T'-p "Clipboard: " -i -l 10'
;;
--fzf)
clipman pick --tool fzf -T'--no-multi -e'
;;
--clear)
clipman clear --all && notify-send -i $HOME/.config/${notification}/clipboard.png "Clipboard cleared"
2021-02-13 11:28:59 -05:00
;;
*)
;;
esac