Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to set number of clips shown when using rofi #247

Open
fretzo opened this issue Mar 14, 2025 · 2 comments
Open

How to set number of clips shown when using rofi #247

fretzo opened this issue Mar 14, 2025 · 2 comments

Comments

@fretzo
Copy link

fretzo commented Mar 14, 2025

Hi, and thank you for this great software, it is very useful !!!

I would like to set the number of clips shown when using rofi.

I can set this when using dmenu, but not in rofi (and i use rofi for everything else ...).

This is what i have tried so far:

setting the below environment variable, but it doesn't work:
CM_HISTLENGHT=20

and trying to pass dmenu options to rofi, the prompt option works, but not the line one:
CM_LAUNCHER=rofi clipmenu -p clipboard -l 20

Any help would be appreciated,
Thanks again

@cdown
Copy link
Owner

cdown commented Mar 15, 2025

CM_HISTLENGTH is gone in clipmenu 7, use -l.

You pass options to rofi the same way you do to dmenu: as arguments to clipmenu itself.

@N-R-K
Copy link
Contributor

N-R-K commented Mar 20, 2025

the prompt option works, but not the line one

Weird. I don't see why it wouldn't. Note that in the case of rofi, clipmenu automatically prepends -- -demnu to the arguments:

clipmenu/src/clipmenu.c

Lines 47 to 51 in 2baa44c

case LAUNCHER_ROFI:
cmd[d_i++] = "rofi";
cmd[d_i++] = "--";
cmd[d_i++] = "-dmenu";
break;

Maybe this is causing some issue? (I don't use rofi, so not sure).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants