mirror of
https://git.disroot.org/FollieHiyuki/dotfiles.git
synced 2024-12-02 12:18:41 -05:00
20 lines
498 B
Plaintext
20 lines
498 B
Plaintext
|
#!/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
|