77 lines
1.5 KiB
Nix
77 lines
1.5 KiB
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
inputs,
|
|
...
|
|
}: {
|
|
config.imports =
|
|
config.imports
|
|
++ [
|
|
inputs.ironbar.homeManagerModules.default
|
|
];
|
|
config.programs.ironbar = with pkgs.rice; {
|
|
# enable = true;
|
|
config = {
|
|
anchor_to_edges = true;
|
|
position = "top";
|
|
height = 8;
|
|
icon_theme = icons.name;
|
|
|
|
start = [
|
|
{
|
|
type = "workspaces";
|
|
all_monitors = true;
|
|
}
|
|
{
|
|
type = "sys_info";
|
|
interval.memory = 30;
|
|
interval.cpu = 1;
|
|
format = [
|
|
" {cpu_percent}%"
|
|
" {memory_used} / {memory_total} GB"
|
|
];
|
|
}
|
|
];
|
|
center = [
|
|
{
|
|
type = "focused";
|
|
icon_size = 8;
|
|
}
|
|
];
|
|
end = [
|
|
{
|
|
type = "music";
|
|
player_type = "mpris";
|
|
|
|
on_click_middle = "playerctl play-pause";
|
|
on_scroll_up = "playerctl volume +5";
|
|
on_scroll_down = "playerctl volume -5";
|
|
}
|
|
{type = "clock";}
|
|
];
|
|
};
|
|
style = with palette-hex; (builtins.replaceStrings
|
|
[
|
|
"#BG"
|
|
"#DARKBG"
|
|
"#BORDER"
|
|
"#ACTIVEBORDER"
|
|
"#TEXT"
|
|
"#URGENT"
|
|
"#FONT"
|
|
"#SZFONT"
|
|
]
|
|
[
|
|
util.bg
|
|
normal.black
|
|
normal.black
|
|
normal.black
|
|
util.fg
|
|
normal.red
|
|
fonts.sans.name
|
|
"10" # (builtins.toString fonts.sans.size)
|
|
]
|
|
(builtins.readFile dots/ironbar.css));
|
|
};
|
|
}
|