dylanaraps / pywal

🎨 Generate and change color-schemes on the fly.
MIT License
8.39k stars 326 forks source link

Transparency not working with rofi #575

Open sug4ndh opened 3 years ago

sug4ndh commented 3 years ago

Hi,

I recently upgraded my system to Pop Os 20.04 and I am trying to get i3 working as it used to earlier. Pywal sets the colors properly but the transparency does not work with rofi. I have tried to use both, old and new pywal configurations for rofi, i.e. setting rofi.theme: ~/.cache/wal/colors-rofi-dark.rasi in ~/.config/rofi/config and the example provided in Pywal's wiki by entering the following in ~/.config/rofi/config.rasi:

configuration {
        @import "~/.cache/wal/colors-rofi-dark"
}

However, this generated an error for me, "Error while parsing theme". When I used a theme provided by rofi then the transparency works and it sets the rofi theme as rofi.theme: 'theme-path'.

rofi version: 1.5.4 pywal version:3.3.0

chrishoage commented 3 years ago

This is not a problem with pywal, you have a configuration issue.

First, you're specifying the theme incorrectly

https://github.com/chrishoage/dotfiles/blob/eeb50fc60912adc02485d5ed3c62b80aaa257676/bspwm-desktop/.config/rofi/config.rasi#L1-L8

Second the default rasi theme from pywal does not implement transparency by default.

https://github.com/chrishoage/dotfiles/blob/eeb50fc60912adc02485d5ed3c62b80aaa257676/bspwm-desktop/.config/wal/templates/colors-rofi-custom.rasi#L31-L35

When properly configured everything works.

sug4ndh commented 3 years ago

@chrishoage I tried your custom colors rasi settings and I changed my rofi config file to contain just:

configuration{
        theme:"~/.cache/wal/colors-rofi-dark.rasi";
}

But it resets rofi to the default theme(without any theming).

For me, I am able to get the colors when I use the following in rofi config file: rofi.theme: ~/.cache/wal/colors-rofi-dark.rasi

Unfortunately, transparency is still not working.

chrishoage commented 3 years ago

I am unable to help you debug what is wrong with your setup.

I just wanted to share that transparency is functioning for me. Therefore it is unlikely a bug in pywal itself, and more likely a bug in configuration.