mirror of
https://github.com/nix-community/home-manager
synced 2024-11-23 11:39:46 +01:00
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
2 changed files with 4 additions and 4 deletions
|
@ -199,14 +199,14 @@ in {
|
||||||
];
|
];
|
||||||
|
|
||||||
home.packages = [ cfg.package ];
|
home.packages = [ cfg.package ];
|
||||||
xdg.configFile."polybar/config".source = configFile;
|
xdg.configFile."polybar/config.ini".source = configFile;
|
||||||
|
|
||||||
systemd.user.services.polybar = {
|
systemd.user.services.polybar = {
|
||||||
Unit = {
|
Unit = {
|
||||||
Description = "Polybar status bar";
|
Description = "Polybar status bar";
|
||||||
PartOf = [ "tray.target" ];
|
PartOf = [ "tray.target" ];
|
||||||
X-Restart-Triggers =
|
X-Restart-Triggers =
|
||||||
[ "${config.xdg.configFile."polybar/config".source}" ];
|
[ "${config.xdg.configFile."polybar/config.ini".source}" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
Service = {
|
Service = {
|
||||||
|
|
|
@ -50,8 +50,8 @@
|
||||||
assertFileRegex $serviceFile 'X-Restart-Triggers=.*polybar\.conf'
|
assertFileRegex $serviceFile 'X-Restart-Triggers=.*polybar\.conf'
|
||||||
assertFileRegex $serviceFile 'ExecStart=.*/bin/polybar-start'
|
assertFileRegex $serviceFile 'ExecStart=.*/bin/polybar-start'
|
||||||
|
|
||||||
assertFileExists home-files/.config/polybar/config
|
assertFileExists home-files/.config/polybar/config.ini
|
||||||
assertFileContent home-files/.config/polybar/config \
|
assertFileContent home-files/.config/polybar/config.ini \
|
||||||
${./basic-configuration.conf}
|
${./basic-configuration.conf}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue