Skip to content

[REQUEST] Implement CSS background-position and background-repeat attributes #2157

@hankertrix

Description

@hankertrix

Before opening 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?

By implementing background-position and the background-repeat attributes, users can position the background image in the way they want to make it look the best. Currently, the background image is positioned starting from the left, which looks quite ugly with certain background images. For example:

Image

It would be great if the background image could be centred.

The background-repeat attribute would allow users to set that they don't want the background image to repeat, which is usually the case when setting a large image like a wallpaper as the background for Rofi.

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

Currently, it is impossible to centre the background image or position it in any other way other than to start from the left of the image. The background-repeat property is also not supported.

Who will benefit from it?

Users who like to have their wallpaper, or any image for that matter, as their Rofi background would benefit from this change.

Rofi version (rofi -v)

Version: 1.7.9+wayland1-dirty

Configuration

https://github.com/hankertrix/Dotfiles/tree/main/tilde/dot_config/rofi

Additional information

No response

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