mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-30 12:06:13 +01:00
74 lines
956 B
Nix
74 lines
956 B
Nix
{ pkgs, hostname }:
|
|
|
|
with pkgs.lib;
|
|
|
|
{
|
|
config = ''
|
|
theme = "modern"
|
|
${
|
|
if (hostname == "fractal") then
|
|
''icons = "awesome"''
|
|
else
|
|
''icons = "awesome5"''
|
|
}
|
|
|
|
${
|
|
if (hostname == "omen") then
|
|
''
|
|
[[block]]
|
|
block = "battery"
|
|
interval = 30
|
|
format = "{percentage}% {time} {power}W"
|
|
|
|
[[block]]
|
|
block = "networkmanager"
|
|
on_click = "nm-connection-editor"
|
|
interface_name_include = [ "wlo1", "eno1", "wg0" ]
|
|
''
|
|
else
|
|
""
|
|
}
|
|
|
|
[[block]]
|
|
block = "memory"
|
|
display_type = "memory"
|
|
format_mem = "{Mup}%"
|
|
format_swap = "{SUp}%"
|
|
|
|
${
|
|
if (hostname == "omen") then
|
|
''
|
|
[[block]]
|
|
block = "nvidia_gpu"
|
|
label = "GTX 1050"
|
|
show_memory = true
|
|
show_clocks = true
|
|
interval = 1
|
|
''
|
|
else if (hostname == "heater") then
|
|
''
|
|
[[block]]
|
|
block = "nvidia_gpu"
|
|
label = "GTX 1060"
|
|
show_memory = true
|
|
show_clocks = true
|
|
interval = 1
|
|
''
|
|
else
|
|
""
|
|
}
|
|
|
|
[[block]]
|
|
block = "cpu"
|
|
interval = 1
|
|
|
|
[[block]]
|
|
block = "sound"
|
|
|
|
[[block]]
|
|
block = "time"
|
|
interval = 60
|
|
format = "%a %d/%m %R"
|
|
'';
|
|
}
|