FollieHiyuki-dotfiles/home/.local/bin/Wayland/clipboard
2021-02-26 03:52:18 +03:00

26 lines
470 B
Bash
Executable File

#!/bin/sh
if command -v mako >/dev/null
then
notification=mako
else
notification=dunst
fi
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"
;;
*)
;;
esac