add copyq rofi menu

This commit is contained in:
azpsen 2024-02-01 09:00:34 -06:00
parent 0d36712bbd
commit 6d5f4ed499
2 changed files with 10 additions and 11 deletions

View File

@ -44,6 +44,15 @@ function rofinf() {
line=($line)
}
case $1 in
--download)
download
;;
--rofi)
rofinf
;;
esac
selection="$@"
if [ -z "$selection" ]
@ -57,13 +66,3 @@ else
coproc $(echo "$selection" | cut -d" " -f2 | tr '\n' ' ' | sed 's///g; s/\s//g' | xclip -selection clipboard)
exit 0
fi
case $1 in
--download)
download
;;
--rofi)
rofinf
;;
esac

View File

@ -20,7 +20,7 @@ super + n
# clipboard manager
super + c
rofi -modi "clipboard:greenclip print,calc" -show clipboard -run-command '{cmd}' -no-show-match -no-sort -calc-command "echo -n '{result}' | xclip -selection clipboard"
rofi -modi "clipboard:~/.config/rofi/scripts/copyq.py print,calc" -show clipboard -no-show-match -no-sort -calc-command "echo -n '{result}' | xclip -selection clipboard"
# power menu
super + p