Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strange error #122

Open
Brutalino opened this issue Nov 28, 2022 · 16 comments
Open

Strange error #122

Brutalino opened this issue Nov 28, 2022 · 16 comments

Comments

@Brutalino
Copy link

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?

@heliomar-pena
Copy link

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

@Brutalino
Copy link
Author

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

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??

@heliomar-pena
Copy link

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:

@Brutalino
Copy link
Author

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?

@heliomar-pena
Copy link

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

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

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

@Brutalino
Copy link
Author

Brutalino commented Nov 29, 2022

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

edit- everything works.
thanks for helping me

@lockcher4
Copy link

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?

@SelinJodhani
Copy link

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?

@sfty-bit
Copy link

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

@TheRegularDX
Copy link

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

@JhairV2002
Copy link

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.

@Sickday
Copy link

Sickday commented Jan 12, 2023

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.

@akatriel
Copy link

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.

snwfdhmp added a commit to snwfdhmp/rofi that referenced this issue Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants