rofi icon indicating copy to clipboard operation
rofi copied to clipboard

Strange error

Open Brutalino opened this issue 2 years ago • 16 comments

Hi, first of all I want to say that I'm new to rofi and linux in general. I am encountering a strange error when i open rofi after executing the setup.sh.

It says: error while parsing theme: parser error: syntax error, unexpected invalid property name, expecting "property separator ( ' : ' )" location: line 41 column 6 to line 41 column 8.

I have looked into the config.rasi file but I cannot figure out whats wrong.

Am I missing something?

Brutalino avatar Nov 28 '22 23:11 Brutalino

Doesn't look like a serious problem. Could you share your setup.sh and config files?

heliomar-pena avatar Nov 29 '22 13:11 heliomar-pena

I figured out what the problem is. Since I'm on Debian "apt install rofi" installs automatically the 1.5.4 version. I'm going to try and install the latest version and try again. I'll keep you posted

Brutalino avatar Nov 29 '22 14:11 Brutalino

After hours of trying i managed to install the latest version of rofi :). After executing setup.sh it still works. I just can't figure out how to apply different themes. rofi-theme-selector has the default themes. I can't apply the custom themes. How does that work??

Brutalino avatar Nov 29 '22 18:11 Brutalino

I'm also new in ROFI, but I recently installed these themes without a problem following their installation instructions, I don't know if that could help you, I meant, to read the code that they write to create those themes:

  • https://github.com/adi1090x/rofi

heliomar-pena avatar Nov 29 '22 18:11 heliomar-pena

So after changing the style in ~/.config/rofi/launchers/type-X/launcher.sh and the color in ~/.config/rofi/launchers/type-X/shared/colors.rasi by running the command rofi -show drun you can see the selected theme applied?

Brutalino avatar Nov 29 '22 18:11 Brutalino

I didn't change the color, just the style in ~/.config/rofi/launchers/type-X/launcher.sh

lastpeek

Then in each type-X folder is a launcher.sh file, you should call them to open rofi with the theme selected, if you open the launcher.sh file, it's just calling:

rofi -show drun -theme ${dir}/${theme}.rasi

so if you want to open it manually and don't use the launcher.sh script, you can try something like it:

rofi -show drun -theme ~/.config/rofi/launchers/type-X/style-X.rasi

heliomar-pena avatar Nov 29 '22 19:11 heliomar-pena

If you want to make it more automatic you can create shortcuts to run that command rofi -show drun -theme ${dir}/${theme}.rasi, so you can open rofi easily with the keyboard (that is what I do)

heliomar-pena avatar Nov 29 '22 19:11 heliomar-pena

I'm not sure how to make rofi to use by default those themes without add the -theme param

heliomar-pena avatar Nov 29 '22 19:11 heliomar-pena

Ahhhhhh thank you. Now i just need to figure out how to implement it with awesomeWM.

edit- everything works. thanks for helping me

Brutalino avatar Nov 29 '22 19:11 Brutalino

After hours of trying i managed to install the latest version of rofi :). After executing setup.sh it still works. I just can't figure out how to apply different themes. rofi-theme-selector has the default themes. I can't apply the custom themes. How does that work??

how did you download? can't you tell?

lockcher4 avatar Dec 09 '22 17:12 lockcher4

After hours of trying i managed to install the latest version of rofi :). After executing setup.sh it still works. I just can't figure out how to apply different themes. rofi-theme-selector has the default themes. I can't apply the custom themes. How does that work??

how did you manage to install latest version of rofi in your system. could you please help?

SelinJodhani avatar Dec 14 '22 15:12 SelinJodhani

I encountered a similar error that I belive is the same one Error: parser error: syntax error, unexpected invalid property name, expecting "property separator ( ' : ' )" Location: line 54

At that line of code I have run,drun {fallback-icon: "application-x-addon"}

It started working for me when I commented it

sfty-bit avatar Dec 15 '22 21:12 sfty-bit

After hours of trying i managed to install the latest version of rofi :). After executing setup.sh it still works. I just can't figure out how to apply different themes. rofi-theme-selector has the default themes. I can't apply the custom themes. How does that work??

H o w

TheRegularDX avatar Dec 27 '22 01:12 TheRegularDX

After hours of trying i managed to install the latest version of rofi :). After executing setup.sh it still works. I just can't figure out how to apply different themes. rofi-theme-selector has the default themes. I can't apply the custom themes. How does that work??

H o w

Its really easy depending of your distribution. In ubuntu or based all you need to do is go to Rofi repository https://github.com/davatorium/rofi and download the lastest realese (1.7.5) and follow the installation instructions. You need to download all the dependencies. When you do the ../configure command it checks for all the dependencies and returns whatever missing so it dont break anything if you miss a dependency.

JhairV2002 avatar Jan 04 '23 04:01 JhairV2002

I encountered a similar error that I belive is the same one Error: parser error: syntax error, unexpected invalid property name, expecting "property separator ( ' : ' )" Location: line 54

At that line of code I have run,drun {fallback-icon: "application-x-addon"}

It started working for me when I commented it

I ran into this issue as well on Debian testing/bookworm. It appears rofi version 1.7.3 is what is served by the testing repository.

I'm unsure why, but the line 54 in config.rasi was causing me to receive the below error when I tried running rofi.

Error: parser error: syntax error, unexpected invalid property name, expecting "property separator ( ' : ' )"
Location: line 54

I changed the line to the following and was able to use the program and customized themes.

drun {
    fallback-icon: "application-x-addon";
}

Hope this helps anyone else in similar situation.

Sickday avatar Jan 12 '23 22:01 Sickday

After hours of trying i managed to install the latest version of rofi :). After executing setup.sh it still works. I just can't figure out how to apply different themes. rofi-theme-selector has the default themes. I can't apply the custom themes. How does that work??

H o w

Its really easy depending of your distribution. In ubuntu or based all you need to do is go to Rofi repository https://github.com/davatorium/rofi and download the lastest realese (1.7.5) and follow the installation instructions. You need to download all the dependencies. When you do the ../configure command it checks for all the dependencies and returns whatever missing so it dont break anything if you miss a dependency.

The Rofi FAQ has a note about installation which helps avoid doubling up on already installed libraries.

Build libxkbcommon by hand (not that complicated) but with a few configure switches: ./configure --with-x-locale-root=/usr/share/X11/locale --with-xkb-config-root=/usr/share/X11/xkb (or whatever correct prefix your system uses). This will make sure libxkbcommon knows where to look for files.

akatriel avatar Jan 14 '23 18:01 akatriel