feat: i3bar config

This commit is contained in:
Patrick 2023-09-25 00:29:39 +02:00
parent f6ab496bd5
commit 129d3f0b72
Signed by: patrick
GPG key ID: 451F95EFB8BECD0F
2 changed files with 45 additions and 3 deletions

View file

@ -30,6 +30,6 @@
stylix.fonts.sizes = {
terminal = 9;
applications = 10;
desktop = 9;
desktop = 10;
};
}

View file

@ -2,6 +2,7 @@
config,
nixosConfig,
lib,
pkgs,
...
}:
# shared sway/i3 config
@ -21,8 +22,16 @@ let
#bindkeysToCode = true;
window.titlebar = false;
floating.titlebar = false;
workspaceLayout = "stacking";
bars = [config.lib.stylix.i3.bar];
workspaceLayout = "stacking";
bars = map (x: x // config.lib.stylix.i3.bar) [
{
mode = "dock";
workspaceButtons = true;
workspaceNumbers = true;
statusCommand = "${config.programs.i3status-rust.package}/bin/i3status-rs config-main.toml";
trayOutput = "primary";
}
];
workspaceOutputAssign = let
output = out: workspaces:
@ -94,4 +103,37 @@ let
in {
wayland.windowManager.sway.config = cfg;
xsession.windowManager.i3.config = cfg;
programs.i3status-rust = {
enable = true;
bars.main = {
blocks = [
{
block = "net";
}
{
block = "cpu";
}
{
block = "nvidia_gpu";
}
{
block = "sound";
}
{
block = "backlight";
missing_format = "";
}
{
block = "time";
format = "$icon $timestamp.datetime(f:'%a %d.%m.%y %H:%M:%S') ";
interval = 1;
}
];
icons = "material-nf";
settings."icons.overrides" = {
cpu = "";
};
};
};
}