blob: 2065c796d91969ca2d7e2d30a5f8dac2af9f7804 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
{ inputs, ... }:
{
imports = [ inputs.fetchit.homeManagerModules.default ];
programs.fetchit = {
enable = true;
logoFileName = "nix.txt";
logo = builtins.readFile ./logos/nix.txt;
rows = [
{ label = "os"; color = "cyan"; value = ''string.lower(os.name .. " @ " .. kernel.sysname .. " " .. kernel.release)''; }
{ label = "wm"; color = "cyan"; value = ''"niri wm (v26.04)"''; }
{ label = "res"; color = "cyan"; value = ''"(<)/1920x1080, (>)/1920x1080"''; }
{ label = "cpu"; color = "red"; value = ''"ryzen 7 5700g"''; }
{ label = "gpu"; color = "red"; value = ''"radeon rx 6800xt"''; }
{ label = "ram"; color = "magenta"; value = ''string.format("%.1fgb/%.1fgb (%.1f%%)", memory.used_gb, memory.total_gb, memory.percent)''; }
{ label = "disk"; color = "yellow"; value = ''string.format("%.1fgb/%.1fgb", disk.used_gb, disk.total_gb)''; }
{ label = "shell"; color = "blue"; value = ''string.lower(shell.name)''; }
{ label = "term"; color = "bright_cyan"; value = ''string.lower(terminal.name)''; }
{ label = "ip"; color = "red"; value = ''string.lower(run([[ip -4 -o addr show scope global | grep -oE "([0-9]{1,3}.){3}[0-9]{1,3}" | head -1]]))''; }
];
};
}
|