This repository has been archived on 2022-08-21. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles/home/.local/bin/Wayland/clipboard

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