diff --git a/.config/rofi/scripts/nerd-fonts.sh b/.config/rofi/scripts/nerd-fonts.sh index f79bf13..2631bdf 100755 --- a/.config/rofi/scripts/nerd-fonts.sh +++ b/.config/rofi/scripts/nerd-fonts.sh @@ -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 diff --git a/.config/sxhkd/sxhkdrc b/.config/sxhkd/sxhkdrc index 3923bf3..12aff52 100644 --- a/.config/sxhkd/sxhkdrc +++ b/.config/sxhkd/sxhkdrc @@ -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