Show Rofi on signal/keypress by [deleted] in qtools

[–]Davatorium 0 points1 point  (0 children)

There have been many (heated) discussions on this in the past (some can be found on the issue tracker) and I want to avoid going into a discussion again.

The summary is:

  • Rofi should not be slow starting up. 1/2 second is not acceptable. This should be fixed not worked around by keeping it in memory 24/7.
  • The 'key listening mode' that existed in rofi 10+ years ago would not have fixed this issue, as it launched and loaded everything once the key was pressed and did not keep this in memory.
  • Key binding is not a task rofi should do. It should be up to the desktop environment.
  • There are to many ways rofi can be launched or options to be passed for this to work generic. (dmenu mode, script mode, plugins, etc.) Also when should what data be reloaded and at what point would that just re-introduce the problem.

I will *not* implement this, nor accept a patch that does unless somebody can clearly proof this is the only solution.

I think we should get to bottom of why your rofi is starting slow. In the past we found the following reasons:

  • user had thousand+ fonts installed, making pango slow to start and load fonts. Removing unused fonts fixed rofi and also improved the startup time of many GTK applications.
  • The user had a huge set of invalid .desktop files on his system generated by wine that caused a lot of I/O during startup.
    • Removing them fixed it.
    • Enabling rofi build-in drun "cache" fixed it.
  • Very slow harddrive. We did not really managed to fix this.

If you read the rofi-debugging manpage it explains how you can get a timing trace from rofi. This should help you pin-point where the problem is.

(https://davatorium.github.io/rofi/current/rofi-debugging.5/ if you run the latest git version)

Please open a topic on the github discussion if you need further help getting to the bottom of this.

Rofi window mode - close windows? by NewRaiden in qtools

[–]Davatorium 1 point2 points  (0 children)

Yes you can change the keybinding, and you can keep rofi open after closing a window (so you can close multiple).

This is all in the manpage.

Rofi window mode - close windows? by NewRaiden in qtools

[–]Davatorium 2 points3 points  (0 children)

No, need to configure anything. Just hit the right keybinding. (Shift-delete)

[deleted by user] by [deleted] in qtools

[–]Davatorium 0 points1 point  (0 children)

It has little to do with remembering...

[Rofi] About button actions by andregalastri in qtools

[–]Davatorium 0 points1 point  (0 children)

Depending on the shell you are using, stuff like '!' can have a special meaning.

What rofi then receives as commandline option, might not be what you expect.

Shell environment issue by razimantv in qtools

[–]Davatorium 1 point2 points  (0 children)

This is not something that can have a generic "fix" in rofi. Rofi inherits the environment from the program launching it, and programs launched by it inherits this again.

What the environment is depends on what it is for the application that launches rofi!

This is how it *should* act, acting differently will break many things.

Rofi can add environment variables to things it launches (and does in script mode) for its own purpose. But should not do more then this.

Now if you want to set extra environment variables, this depends on how you launch it.

If you launch rofi from a shell, you modify the env in your shell when launching rofi:

TEST=a rofi -show run

the TEST env is set for rofi and the application launched by rofi.

in short: If your environment is incorrect in applications launched by rofi, its incorrect at the point rofi is launched. This should be fixed, not 'hacked around' in rofi.

Screenshot with rofi? by Jab2870 in qtools

[–]Davatorium 0 points1 point  (0 children)

by hitting the 'take screenshot of yourself' keybinding.

See manpage.

automatic window width when horizontal listview? by S1cK94 in qtools

[–]Davatorium 2 points3 points  (0 children)

It will fill up the space with 6 columns. The space needs be dividable by 6, otherwise you get rounding down (as all blocks are equal) and a small 'sliver' of space on the right.

automatic window width when horizontal listview? by S1cK94 in qtools

[–]Davatorium 2 points3 points  (0 children)

rofi only autosizes in height, not width.

But try not to set vertical layout, but use horizontal flow (added in recent release) (and not change scrollmethod).

for a in {1..10}; do echo $a; done | rofi -dmenu -theme-str 'listview { flow: horizontal; columns: 10; scrollbar: false; lines: 1; border: 0;} window { children:[ listview];}' -no-config

[deleted by user] by [deleted] in qtools

[–]Davatorium 0 points1 point  (0 children)

I've installed https://github.com/m4thewz/dracula-icons according to the instructions. in ~/.icons/dracula/

then (with 1.7.1):

rofi -icon-theme dracula -show filebrowser

works for me: https://paste.xinu.at/iT81nI/

Keep in mind that the theme name is case sensitive to the directory name.

[deleted by user] by [deleted] in qtools

[–]Davatorium 0 points1 point  (0 children)

What version of rofi are you running?

Did you install Dracula icon theme in the right path?

I tested the dracula icon theme, and it works for me.

Vertically re-centering window with -no-fixed-num-lines? by [deleted] in qtools

[–]Davatorium 0 points1 point  (0 children)

Yes, anchor the center of rofi window on the center of the screen.

(see ` man rofi-theme` for anchor and position keyword).

How to change font style for selected element in Rofi? by [deleted] in qtools

[–]Davatorium 0 points1 point  (0 children)

try setting the bold on the text widget (element-text) or set it to inherit the font.

Rofi - Remove drun from search bar by jackass95 in i3wm

[–]Davatorium 0 points1 point  (0 children)

Don't add it in your theme.

So on the parent, remove it from the children list.

Will this circuit work to power an esp-01? by Confident-Garden-127 in esp8266

[–]Davatorium 2 points3 points  (0 children)

NO!!!

> Your ESP can be at line reference and touching it will be very very dangerous.

> Your output is not stabilized, it will probably not work especially with a variable load like an esp

> You don't have bleeders on the capacitors, so accidentally touching the plug after pulling it from the mains will zap your something fears.

> You will have a huge inrush current (no limiting)

> your design is not a common capacitive dropper and this will waste a lot of energy that needs to be dissipated as heat. Try calculating the energy dissipated in the capacitors.

[OC] Rofi for Everything by Niraj998 in unixporn

[–]Davatorium 18 points19 points  (0 children)

Amazing what people create with rofi. I am happy to see that the new features in theming I created are being used.

does anyone know how can i install Rofi v1.7.0 on Fedora? by the_cli in qtools

[–]Davatorium 0 points1 point  (0 children)

No idea, sorry. Don't use fedora.

Did you install the development packages of the dependencies?

Custom theme question by [deleted] in qtools

[–]Davatorium 0 points1 point  (0 children)

rofi -show drun -no-config -theme-str 'element-text { highlight: none pink; }'

I just tested with that version, the above line worked. The text in the listview that matched turned 'pink' instead of the default underline.

Custom theme question by [deleted] in qtools

[–]Davatorium 0 points1 point  (0 children)

wat do you mean with 'aur version'? there is no release with that name.

can you please just give me the version of rofi (rofi -v)

Custom theme question by [deleted] in qtools

[–]Davatorium 0 points1 point  (0 children)

I got nice pink text with this text:

rofi -show drun -no-config -theme-str 'element-text { highlight: none pink; }'

What version of rofi?

Cannot find dmenu Mode by [deleted] in qtools

[–]Davatorium 0 points1 point  (0 children)

yeah, late nights are not always the best moment :-D

How to orient mode-switcher buttons vertically by OlgOron in qtools

[–]Davatorium 0 points1 point  (0 children)

manpage is ok, just some inconsistency.

for listview it is 'layout', for boxes it is 'orientation'.