modularise home conf
This commit is contained in:
parent
b07d950147
commit
4477d0d4a2
23 changed files with 1152 additions and 855 deletions
77
home/programs/ironbar.nix
Normal file
77
home/programs/ironbar.nix
Normal file
|
@ -0,0 +1,77 @@
|
|||
{
|
||||
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));
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue