Version: 1.5.4
Configuration {
...
/* font: "Terminus (TTF) 9";*/
...
}
rofi -show run
Generate config with rofi -dump-config > ~/.config/rofi/config
Run rofi normally rofi -show <mode> or specifically specify the config file.
rofi -show <mode> -config /path/to/config
None of the settings from the config file apply, regardless of which i set.
All settings are default.
I expected it to read my configurations from the config file.
When i run rofi -h it indicates that it has recognized it.
Configuration file: /home/mtothem/.config/rofi/config
Even if i explicitly specify the config file using -config none of the changes apply.
rofi -show run -config ~/.config/rofi/config
Having the .rasi extension makes no difference either.
I saw there is already a closed issue about this specific problem. but it was never addressed.
https://github.com/davatorium/rofi/issues/758
The -dump-config option is for the new 'rasi' format, and needs to be stored in ~/.config/rofi/config.rasi.
To generate the old config, use rofi -dump-xresources.
See remark in the Configuration section of the manpage:
TIP: To get a template config file run:
rofi -dump-xresources > rofi-example.config.
NOTE: In version 1.4.0 we support configuration in a new format, a config for this can be generated by:rofi -dump-config > config.rasi
NOTE: If you want to use the new configuration format, the config file should be namedconfig.rasi.
See remark in the Configuration section of the manpage:
TIP: To get a template config file run:
rofi -dump-xresources > rofi-example.config.
NOTE: In version 1.4.0 we support configuration in a new format, a config for this can be generated by:rofi -dump-config > config.rasi
NOTE: If you want to use the new configuration format, the config file should be namedconfig.rasi.
The
-dump-configoption is for the new 'rasi' format, and needs to be stored in ~/.config/rofi/config.rasi.
To generate the old config, userofi -dump-xresources.
Neither the old format nor new actually gets loaded by the program. This is the issue.
# Correct config file path
[nashandra ~]$ rofi -config ~/.config/rofi/config.rasi -h | grep "Configuration"
Configuration file: /home/mtothem/.config/rofi/config.rasi
# Contents of config file
[nashandra ~]$ cat ~/.config/rofi/config.rasi | grep font
/* font: "Terminus (TTF) 32";*/
# Rofi uses defaults despite there being custom values set in the config file
[nashandra ~]$ rofi -config ~/.config/rofi/config.rasi -h | grep font -A 1
-font [string] Font to use
mono 12 (Default)
# Correct config file path
[nashandra ~]$ rofi -config ~/.config/rofi/rofi.config -h | grep "Configuration"
Configuration file: /home/mtothem/.config/rofi/rofi.config
# Contents of config file
[nashandra ~]$ cat ~/.config/rofi/rofi.config | grep font
! rofi.font: Fira Code 32
# Rofi uses defaults despite there being custom values set in the config file
[nashandra ~]$ rofi -config ~/.config/rofi/rofi.config -h | grep font -A 1
-font [string] Font to use
mono 12 (Default)
Edit. Just to clarify. if i use -font it loads the font properly. but it's not using the configuration at all.
/* font: "Terminus (TTF) 32";*/
and
! rofi.font: Fira Code 32
Are both commented out. It will not load a commented line.
/* font: "Terminus (TTF) 32";*/
and
! rofi.font: Fira Code 32
Are both commented out. It will not load a commented line.
You are absolutely correct. i'm sorry for my stupidity. i thought it was part of the config syntax.
Happy to hear it is working.
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.