mirror of
https://git.disroot.org/FollieHiyuki/dotfiles.git
synced 2024-12-05 13:48:21 -05:00
26 lines
470 B
Bash
Executable File
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
|