refactor(i3status-rs): manage with Home Manager
This commit is contained in:
parent
a0e364269c
commit
7c8e2d3284
4 changed files with 43 additions and 35 deletions
|
@ -247,11 +247,6 @@ in
|
|||
recursive = true;
|
||||
};
|
||||
|
||||
xdg.configFile.i3status-rs = {
|
||||
source = ../../config/i3status-rs;
|
||||
recursive = true;
|
||||
};
|
||||
|
||||
xdg.configFile.nvim = {
|
||||
source = ../../config/neovim;
|
||||
recursive = true;
|
||||
|
|
|
@ -5,4 +5,46 @@
|
|||
home.stateVersion = "22.05";
|
||||
|
||||
programs.home-manager.enable = true;
|
||||
|
||||
programs.i3status-rust = {
|
||||
enable = true;
|
||||
|
||||
bars = {
|
||||
default = {
|
||||
blocks = [
|
||||
{
|
||||
block = "net";
|
||||
format = " $ip ";
|
||||
}
|
||||
{
|
||||
block = "battery";
|
||||
format = " $icon $percentage $time ";
|
||||
}
|
||||
{
|
||||
block = "cpu";
|
||||
}
|
||||
{
|
||||
block = "memory";
|
||||
format = " $icon $mem_total_used_percents.eng(w:2) ";
|
||||
format_alt = " $icon_swap $swap_used_percents.eng(w:2) ";
|
||||
}
|
||||
{
|
||||
block = "disk_space";
|
||||
path = "/";
|
||||
info_type = "available";
|
||||
alert_unit = "GB";
|
||||
interval = 20;
|
||||
warning = 20.0;
|
||||
alert = 10.0;
|
||||
format = " $icon $available.eng(w:2) ";
|
||||
}
|
||||
{
|
||||
block = "time";
|
||||
interval = 1;
|
||||
format = " $timestamp.datetime(f:'%F %T') ";
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue