dylanaraps / pywal

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

Small error in Rofi import documentation: The import should be placed outside the brackets #605

Open flubberding opened 3 years ago

flubberding commented 3 years ago

Hello,

First off; thank you very much for all efforts put into pywal! I'm really enjoying it so far!

I just had some issues when I tried to import the theme-settings into Rofi. I followed the instructions, but it kept giving me parsing errors whenever I opened up Rofi.

After a while I found an example in the Rofi's documentation where an import was placed inside the configuration{...} block, but after the block. After making that change to my config it started working as intended.

Edit: Forgot to add a link to Rofi's documentation

Abraxas-Knister commented 2 years ago
configuration {
  timeout {
      action: "kb-cancel";
      delay:  0;
  }
  filebrowser {
      directories-first: true;
      sorting-method:    "name";
  }
@import "~/.cache/wal/colors-rofi-dark.rasi"
}

still gives me a parser error

ninjawaffle commented 2 years ago
configuration {
  timeout {
      action: "kb-cancel";
      delay:  0;
  }
  filebrowser {
      directories-first: true;
      sorting-method:    "name";
  }
@import "~/.cache/wal/colors-rofi-dark.rasi"
}

still gives me a parser error

Your import is still inside configuration. Moving it down outside of the last curly brace should fix your problem - did for me.

configuration {
  timeout {
      action: "kb-cancel";
      delay:  0;
  }
  filebrowser {
      directories-first: true;
      sorting-method:    "name";
  }
}

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