refactor(infinidoge): move neofetch config into file
This commit is contained in:
parent
baa03d7498
commit
844418747f
2 changed files with 57 additions and 56 deletions
|
@ -10,63 +10,16 @@ with lib;
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
"neofetch/config.conf".text =
|
"neofetch/config.conf".source = pkgs.substituteAll {
|
||||||
let
|
src = ./neofetch.conf;
|
||||||
|
|
||||||
image = pkgs.fetchurl {
|
image = pkgs.fetchurl {
|
||||||
url = "https://raw.githubusercontent.com/TheDarkBug/uwufetch/main/res/nixos.png";
|
url = "https://raw.githubusercontent.com/TheDarkBug/uwufetch/main/res/nixos.png";
|
||||||
sha256 = "007q947q2a5c8z9r6cc6mj3idq0ss9zsi9xvij8l8chkjnh8fwn2";
|
sha256 = "007q947q2a5c8z9r6cc6mj3idq0ss9zsi9xvij8l8chkjnh8fwn2";
|
||||||
};
|
};
|
||||||
in
|
inherit (main.info) model;
|
||||||
''
|
inherit (main.info.env) wm;
|
||||||
print_info() {
|
};
|
||||||
info title
|
|
||||||
info underline
|
|
||||||
|
|
||||||
info "$(color 7)OS" distro
|
|
||||||
info "$(color 15)├─$(color 6) Kernel" kernel
|
|
||||||
info "$(color 15)├─$(color 6) Uptime" uptime
|
|
||||||
info "$(color 15)└─$(color 6) Packages" packages
|
|
||||||
|
|
||||||
prin
|
|
||||||
prin "$(color 7)PC" "${if main.info.model != "" then main.info.model else "A Computer"}"
|
|
||||||
info "$(color 15)├─$(color 6) CPU" cpu
|
|
||||||
info "$(color 15)├─$(color 6) GPU" gpu
|
|
||||||
info "$(color 15)├─$(color 6) Battery" battery
|
|
||||||
info "$(color 15)├─$(color 6) Resolution" resolution
|
|
||||||
info "$(color 15)└─$(color 6) Memory" memory
|
|
||||||
|
|
||||||
${ if main.info.graphical then ''
|
|
||||||
prin
|
|
||||||
prin "$(color 15)WM" ${main.info.env.wm}
|
|
||||||
'' else "" }
|
|
||||||
|
|
||||||
prin
|
|
||||||
info "$(color 15)Terminal" term
|
|
||||||
info "$(color 15)└─$(color 6) Shell" shell
|
|
||||||
|
|
||||||
prin
|
|
||||||
prin "$(color 15)Disks"
|
|
||||||
info disk
|
|
||||||
|
|
||||||
info cols
|
|
||||||
}
|
|
||||||
|
|
||||||
kernel_shorthand="off"
|
|
||||||
uptime_shorthand="off"
|
|
||||||
memory_percent="on"
|
|
||||||
memory_unit="gib"
|
|
||||||
separator=" ➜"
|
|
||||||
color_blocks="off"
|
|
||||||
|
|
||||||
# Disk
|
|
||||||
disk_show=('/' '/media/main' '/media/data')
|
|
||||||
|
|
||||||
# Image
|
|
||||||
image_backend="kitty"
|
|
||||||
image_source="${image}"
|
|
||||||
crop_mode="none"
|
|
||||||
image_size="470px"
|
|
||||||
'';
|
|
||||||
} // optionalAttrs main.info.graphical {
|
} // optionalAttrs main.info.graphical {
|
||||||
"qtile".source = pkgs.substituteSubset {
|
"qtile".source = pkgs.substituteSubset {
|
||||||
src = ./qtile;
|
src = ./qtile;
|
||||||
|
|
48
users/infinidoge/config/neofetch.conf
Normal file
48
users/infinidoge/config/neofetch.conf
Normal file
|
@ -0,0 +1,48 @@
|
||||||
|
print_info() {
|
||||||
|
info title
|
||||||
|
info underline
|
||||||
|
|
||||||
|
info "$(color 7)OS" distro
|
||||||
|
info "$(color 15)├─$(color 6) Kernel" kernel
|
||||||
|
info "$(color 15)├─$(color 6) Uptime" uptime
|
||||||
|
info "$(color 15)└─$(color 6) Packages" packages
|
||||||
|
|
||||||
|
prin
|
||||||
|
prin "$(color 7)PC" "@model@"
|
||||||
|
info "$(color 15)├─$(color 6) CPU" cpu
|
||||||
|
info "$(color 15)├─$(color 6) GPU" gpu
|
||||||
|
info "$(color 15)├─$(color 6) Battery" battery
|
||||||
|
info "$(color 15)├─$(color 6) Resolution" resolution
|
||||||
|
info "$(color 15)└─$(color 6) Memory" memory
|
||||||
|
|
||||||
|
if test "@wm@"; then
|
||||||
|
prin
|
||||||
|
prin "$(color 15)WM" @wm@
|
||||||
|
fi
|
||||||
|
|
||||||
|
prin
|
||||||
|
info "$(color 15)Terminal" term
|
||||||
|
info "$(color 15)└─$(color 6) Shell" shell
|
||||||
|
|
||||||
|
prin
|
||||||
|
prin "$(color 15)Disks"
|
||||||
|
info disk
|
||||||
|
|
||||||
|
info cols
|
||||||
|
}
|
||||||
|
|
||||||
|
kernel_shorthand="off"
|
||||||
|
uptime_shorthand="off"
|
||||||
|
memory_percent="on"
|
||||||
|
memory_unit="gib"
|
||||||
|
separator=" ➜"
|
||||||
|
color_blocks="off"
|
||||||
|
|
||||||
|
# Disk
|
||||||
|
disk_show=('/' '/media/main' '/media/data')
|
||||||
|
|
||||||
|
# Image
|
||||||
|
image_backend="kitty"
|
||||||
|
image_source="@image@"
|
||||||
|
crop_mode="none"
|
||||||
|
image_size="470px"
|
Loading…
Add table
Add a link
Reference in a new issue