dylanaraps / pywal

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

Rofi themes failing to launch #231

Closed KofiChee closed 6 years ago

KofiChee commented 6 years ago

Versions: wal 2.0.5 rofi 1.4.2

When using Rofi with colors-rofi-dark.rasi or colors-rofi-light.rasi, I get the following error:

**Error while parsing theme:** _~/.cache/wal/colors-rofi-dark.rasi_
Parser error: __syntax error, unexpected error from file parser, expecting end of file or "Element
section ('# {name} { ... } ')" or "Default settings section ( '*{ ... }')" or Configuration block__
Location: Line 49 Column 2 to Line 51 Column 2
File: '/home/ajubatus/.cache/wal/colors-rofi-dark.rasi'

When I edit this block (and the following block, textbox-prompt-colon), Rofi now works fine (but with a double colon). This of course only lasts until the colorscheme changes.

#inputbar {
    children:   [ prompt,textbox-prompt-colon,entry,case-indicator ];
}

#textbox-prompt-colon {
    expand: false;
    str: ":";
    margin: 0px 0.3em 0em 0em;
    text-color: @normal-foreground;
}
dylanaraps commented 6 years ago

Can you upload the contents of /home/ajubatus/.cache/wal/colors-rofi-dark.rasi without your modifications?

KofiChee commented 6 years ago
Here you are: ``` * { active-background: #995234; active-foreground: @foreground; normal-background: @background; normal-foreground: @foreground; urgent-background: #5D585A; urgent-foreground: @foreground; alternate-active-background: @background; alternate-active-foreground: @foreground; alternate-normal-background: @background; alternate-normal-foreground: @foreground; alternate-urgent-background: @background; alternate-urgent-foreground: @foreground; selected-active-background: #5D585A; selected-active-foreground: @foreground; selected-normal-background: #995234; selected-normal-foreground: @foreground; selected-urgent-background: #967056; selected-urgent-foreground: @foreground; background-color: @background; background: #0c0b0e; foreground: #c4c1c1; border-color: @background; spacing: 2; } #window { background-color: @background; border: 0; padding: 2.5ch; } #mainbox { border: 0; padding: 0; } #message { border: 2px 0px 0px; border-color: @border-color; padding: 1px; } #textbox { text-color: @foreground; } inputbar { children: [ prompt,textbox-prompt-colon,entry,case-indicator ]; } textbox-prompt-colon { expand: false; str: ":"; margin: 0px 0.3em 0em 0em; text-color: @normal-foreground; } #listview { fixed-height: 0; border: 2px 0px 0px; border-color: @border-color; spacing: 2px; scrollbar: true; padding: 2px 0px 0px; } #element { border: 0; padding: 1px; } #element.normal.normal { background-color: @normal-background; text-color: @normal-foreground; } #element.normal.urgent { background-color: @urgent-background; text-color: @urgent-foreground; } #element.normal.active { background-color: @active-background; text-color: @active-foreground; } #element.selected.normal { background-color: @selected-normal-background; text-color: @selected-normal-foreground; } #element.selected.urgent { background-color: @selected-urgent-background; text-color: @selected-urgent-foreground; } #element.selected.active { background-color: @selected-active-background; text-color: @selected-active-foreground; } #element.alternate.normal { background-color: @alternate-normal-background; text-color: @alternate-normal-foreground; } #element.alternate.urgent { background-color: @alternate-urgent-background; text-color: @alternate-urgent-foreground; } #element.alternate.active { background-color: @alternate-active-background; text-color: @alternate-active-foreground; } #scrollbar { width: 4px; border: 0; handle-width: 8px; padding: 0; } #sidebar { border: 2px 0px 0px; border-color: @border-color; } #button.selected { background-color: @selected-normal-background; text-color: @selected-normal-foreground; } #inputbar { spacing: 0; text-color: @normal-foreground; padding: 1px; } #case-indicator { spacing: 0; text-color: @normal-foreground; } #entry { spacing: 0; text-color: @normal-foreground; } #prompt { spacing: 0; text-color: @normal-foreground; } ```
dylanaraps commented 6 years ago

That template works just fine for me. I can't reproduce your issue. Do you have a way to reliably reproduce this?

14rcole commented 6 years ago

I'm having the same issue. Looks like running wal -i ~/Path/To/Images/ doesn't add the '#' on lines 51 and 55 when it overwrites the colors-rofi-dark.rasi and colors-rofi-light files.

Versions: wal 3.10 rofi 1.4.2 i3 4.15 (if it makes a difference)

If you can't reproduce the error, post your system info and I'll see if I can track down the root of the problem

d-nikiforov commented 6 years ago

Same issue here when running wal -i ....

ndland commented 5 years ago

I'm seeing the same issue as well.