polybar: use add .ini
suffix to configuration file
The old name is deprecated and causes a warning to be logged.
This commit is contained in:
parent
d8d9ff0b2d
commit
91f26e0b0e
|
@ -199,14 +199,14 @@ in {
|
|||
];
|
||||
|
||||
home.packages = [ cfg.package ];
|
||||
xdg.configFile."polybar/config".source = configFile;
|
||||
xdg.configFile."polybar/config.ini".source = configFile;
|
||||
|
||||
systemd.user.services.polybar = {
|
||||
Unit = {
|
||||
Description = "Polybar status bar";
|
||||
PartOf = [ "tray.target" ];
|
||||
X-Restart-Triggers =
|
||||
[ "${config.xdg.configFile."polybar/config".source}" ];
|
||||
[ "${config.xdg.configFile."polybar/config.ini".source}" ];
|
||||
};
|
||||
|
||||
Service = {
|
||||
|
|
|
@ -50,8 +50,8 @@
|
|||
assertFileRegex $serviceFile 'X-Restart-Triggers=.*polybar\.conf'
|
||||
assertFileRegex $serviceFile 'ExecStart=.*/bin/polybar-start'
|
||||
|
||||
assertFileExists home-files/.config/polybar/config
|
||||
assertFileContent home-files/.config/polybar/config \
|
||||
assertFileExists home-files/.config/polybar/config.ini
|
||||
assertFileContent home-files/.config/polybar/config.ini \
|
||||
${./basic-configuration.conf}
|
||||
'';
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue