add copyq rofi menu
This commit is contained in:
parent
0d36712bbd
commit
6d5f4ed499
@ -44,6 +44,15 @@ function rofinf() {
|
|||||||
line=($line)
|
line=($line)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
case $1 in
|
||||||
|
--download)
|
||||||
|
download
|
||||||
|
;;
|
||||||
|
--rofi)
|
||||||
|
rofinf
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
selection="$@"
|
selection="$@"
|
||||||
|
|
||||||
if [ -z "$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)
|
coproc $(echo "$selection" | cut -d" " -f2 | tr '\n' ' ' | sed 's/⠀//g; s/\s//g' | xclip -selection clipboard)
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
case $1 in
|
|
||||||
--download)
|
|
||||||
download
|
|
||||||
;;
|
|
||||||
--rofi)
|
|
||||||
rofinf
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
@ -20,7 +20,7 @@ super + n
|
|||||||
|
|
||||||
# clipboard manager
|
# clipboard manager
|
||||||
super + c
|
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
|
# power menu
|
||||||
super + p
|
super + p
|
||||||
|
Loading…
x
Reference in New Issue
Block a user