99 lines
3.5 KiB
Nix
99 lines
3.5 KiB
Nix
{pkgs, ...}:
|
||
with pkgs; {
|
||
programs.macchina = {
|
||
enable = true;
|
||
|
||
config = {
|
||
theme = "Mezora";
|
||
interface = "wlp4s0";
|
||
|
||
show = [
|
||
"DesktopEnvironment"
|
||
"Distribution"
|
||
"Kernel"
|
||
"LocalIP"
|
||
"Memory"
|
||
"Packages"
|
||
"ProcessorLoad"
|
||
"Resolution"
|
||
"Shell"
|
||
"Terminal"
|
||
"Uptime"
|
||
"WindowManager"
|
||
];
|
||
};
|
||
|
||
themes = {
|
||
Mezora = {
|
||
custom_ascii =
|
||
# I prefer to use the default icon on macOS
|
||
if stdenv.isDarwin
|
||
then {}
|
||
else {
|
||
path = writeText "nix_logo" ''
|
||
[38;2;69;71;90m▗▄▄▄ ▗▄▄▄▄ ▄▄▄▖[0m
|
||
[38;2;69;71;90m▜███▙ ▜███▙ ▟███▛[0m
|
||
[38;2;127;132;156m▜███▙ ▜███▙▟███▛[0m
|
||
[38;2;127;132;156m▜███▙ ▜██████▛[0m
|
||
[38;2;127;132;156m▟█████████████████▙ ▜████▛ ▟▙[0m
|
||
▟███████████████████▙ ▜███▙ ▟██▙
|
||
▄▄▄▄▖ ▜███▙ ▟███▛
|
||
▟███▛ ▜██▛ ▟███▛
|
||
[32m▟███▛ ▜▛ ▟███▛[0m
|
||
[32m▟███████████▛ ▟██████████▙[0m
|
||
[32m▜██████████▛ ▟███████████▛[0m
|
||
[32m▟███▛ ▟▙ ▟███▛[0m
|
||
▟███▛ ▟██▙ ▟███▛
|
||
▟███▛ ▜███▙ ▝▀▀▀▀
|
||
▜██▛ ▜███▙ ▜██████████████████▛
|
||
[38;2;127;132;156m▜▛ ▟████▙ ▜████████████████▛[0m
|
||
[38;2;127;132;156m▟██████▙ ▜███▙[0m
|
||
[38;2;127;132;156m▟███▛▜███▙ ▜███▙[0m
|
||
[38;2;69;71;90m▟███▛ ▜███▙ ▜███▙[0m
|
||
[38;2;69;71;90m▝▀▀▀ ▀▀▀▀▘ ▀▀▀▘[0m
|
||
'';
|
||
};
|
||
separator = "";
|
||
separator_color = "blue";
|
||
key_color = "blue";
|
||
|
||
palette = {
|
||
type = "Dark";
|
||
visible = true;
|
||
glyph = " ⬤ ";
|
||
};
|
||
|
||
box = {
|
||
border = "rounded";
|
||
visible = true;
|
||
inner_margin = {
|
||
x = 0;
|
||
y = 1;
|
||
};
|
||
};
|
||
|
||
bar = {
|
||
glyph = "○";
|
||
hide_delimiters = true;
|
||
visible = true;
|
||
};
|
||
|
||
keys = {
|
||
kernel = " Kernel";
|
||
packages = " Packages";
|
||
cpu_load = " CPU";
|
||
memory = " Memory";
|
||
resolution = " Res";
|
||
uptime = " Uptime";
|
||
distro = " Distro";
|
||
machine = " Machine";
|
||
de = " DE";
|
||
local_ip = " Local IP";
|
||
terminal = " Terminal";
|
||
shell = " Shell";
|
||
};
|
||
};
|
||
};
|
||
};
|
||
}
|