rofi
rofi copied to clipboard
Strange error
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?
Doesn't look like a serious problem. Could you share your setup.sh and config files?
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
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??
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
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?
I didn't change the color, just the style in ~/.config/rofi/launchers/type-X/launcher.sh
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
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)
I'm not sure how to make rofi to use by default those themes without add the -theme
param
Ahhhhhh thank you. Now i just need to figure out how to implement it with awesomeWM.
edit- everything works. thanks for helping me
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?
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?
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
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
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.
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.
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.