Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Transparency not working with rofi #575

Open
sug4ndh opened this issue Dec 26, 2020 · 3 comments
Open

Transparency not working with rofi #575

sug4ndh opened this issue Dec 26, 2020 · 3 comments

Comments

@sug4ndh
Copy link

sug4ndh commented Dec 26, 2020

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
Copy link

chrishoage commented Jan 10, 2021

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
Copy link
Author

sug4ndh commented Jan 10, 2021

@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
Copy link

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.

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

No branches or pull requests

2 participants