cdown / clipmenu

Clipboard management using dmenu
MIT License
1.14k stars 91 forks source link

Is There A Way To Pass A Config Path For Rofi In Clipmenu? #233

Closed MuntasirSZN closed 3 weeks ago

MuntasirSZN commented 1 month ago

I installed it today, for getting shot in head because of cliphist. So, i wanna pass some args to rofi, like, i have a config to use, ~/.config/rofi-clipboard.rasi, its not default, my default one is different. So How to do that?

vejkse commented 3 weeks ago

With clipmenu 6, you could use this wrapper (I don’t have rofi to test it, but a similar one for fzf works):

#!/usr/bin/bash

rofi_clipboard() {
  rofi -config "$HOME/.config/rofi-clipboard.rasi"
}
export -f rofi_clipboard

env CM_LAUNCHER=rofi_clipboard clipmenu

For the in-development clipmenu 7, this doesn’t work and I don’t know how to make it work. Maybe this is not yet implemented.

MuntasirSZN commented 3 weeks ago

Works on latest clipmenu version, just hooked up a keyboard shortcut for it. Thanks @vejkse