pywal icon indicating copy to clipboard operation
pywal copied to clipboard

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

Open flubberding opened this issue 4 years ago • 2 comments

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

flubberding avatar May 28 '21 15:05 flubberding

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

Abraxas-Knister avatar Nov 01 '21 12:11 Abraxas-Knister

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"

ninjawaffle avatar Nov 09 '21 01:11 ninjawaffle