mirror of
https://git.disroot.org/FollieHiyuki/dotfiles.git
synced 2024-11-29 02:38:37 -05:00
20 lines
498 B
Bash
Executable File
20 lines
498 B
Bash
Executable File
#!/bin/sh
|
|
|
|
case $1 in
|
|
--dmenu)
|
|
greenclip print | sed '/^$/d' | dmenu -i -l 10 -p "clipboard" | xargs -r -d'\n' -I '{}' greenclip print '{}'
|
|
;;
|
|
--rofi)
|
|
rofi -modi " :greenclip print" -show " " -run-command '{cmd}'
|
|
;;
|
|
--fzf)
|
|
greenclip print | sed '/^$/d' | fzf --no-multi -e | xargs -r -d'\n' -I '{}' greenclip print '{}'
|
|
;;
|
|
--clear)
|
|
pkill greenclip && greenclip clear && greenclip daemon &
|
|
notify-send -i $HOME/.config/dunst/clipboard.png "Clipboard cleared"
|
|
;;
|
|
*)
|
|
;;
|
|
esac
|