home: wm: i3: simplify status command

The v0.30.0 of `i3status-rs` automatically resolves a configuration name
inside its configuration directory, making this much simpler.
This commit is contained in:
Bruno BELANYI 2023-03-19 21:14:12 +00:00
parent 7cec58e215
commit 2e9704ed1d

View file

@ -73,14 +73,11 @@ in
bars =
let
barConfigPath =
config.xdg.configFile."i3status-rust/config-top.toml".target;
i3status-rs =
"${config.programs.i3status-rust.package}/bin/i3status-rs";
i3status-rs = lib.getExe config.programs.i3status-rust.package;
in
[
{
statusCommand = "${i3status-rs} ~/${barConfigPath}";
statusCommand = "${i3status-rs} config-top.toml";
trayOutput = "primary";
position = "top";