Skip to content

[REQUEST] Apply styling depending on the modi #1356

@dannycolin

Description

@dannycolin


First read the guidelines!
This is not optional for any report/question. People must be able to understand the full context of the report when reading it, at any time.
If you feel like you “just have a simple question”, please consider you’re wrong and still fill the full report.
Any report missing these informations will be labeled as “Incomplete Report - Please follow the guidelines” and may not be answered in a timely fashion.

Before creating a feature request

  • I checked the next branch to see if the feature has already been
    implemented

  • I searched existing reports to see if it is already requested.

What is the user problem or growth opportunity you want to see solved?

I use a theme that emulate the look of Gnome Shell which shows the desktop files as a grid. However, I'd like to only apply that grid style when I'm in drun.

How do you know that this problem exists today? Why is this important?

I made a theme using a grid and in run modi the text is truncated too early and so the line is unreadable. Same for ssh modi. So I wanted to use a list instead of a grid but I couldn't do it.

Here's an example of how it could looks like in a rasi file:

listview {
  ...
}
@media (mode: drun) {
  listview {
      columns: 6;
      lines: 3;
  }
}

Who will benefit from it?

Users who wants a theme that display drun in a grid but still want a list for window, run, ssh and so on without having a different keybind to call rofi with a different theme. In other word, they can launch rofi, cycle through the different modi and the style will adapt accordingly.

Version

Output of rofi -v: Version: 1.6.1

Configuration

Output of rofi -help (in a gist, please paste the full output): https://gist.github.com/dannycolin/a0397d1e8da22c1ff3211766cc712a60

Additional details:

  • Include a link to your private config
  • Include screenshots/casts of your issue

Please do not submit reports related to wayland, see
here for more
information.

Requesting a feature is no guarantee it will be added.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions