feat(config): add neofetch config
This commit is contained in:
parent
9af45ea1ab
commit
d1c27bcfc9
1 changed files with 56 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
||||||
{ config, main, lib, ... }:
|
{ config, main, lib, pkgs, ... }:
|
||||||
with lib;
|
with lib;
|
||||||
{
|
{
|
||||||
xdg.configFile = {
|
xdg.configFile = {
|
||||||
|
@ -8,6 +8,61 @@ with lib;
|
||||||
${config.xdg.configHome}/emacs/bin/doom sync -p
|
${config.xdg.configHome}/emacs/bin/doom sync -p
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
"neofetch/config.conf".text =
|
||||||
|
let
|
||||||
|
image = pkgs.fetchurl {
|
||||||
|
url = "https://raw.githubusercontent.com/TheDarkBug/uwufetch/main/res/nixos.png";
|
||||||
|
sha256 = "007q947q2a5c8z9r6cc6mj3idq0ss9zsi9xvij8l8chkjnh8fwn2";
|
||||||
|
};
|
||||||
|
in
|
||||||
|
''
|
||||||
|
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) Memory" memory
|
||||||
|
info "$(color 15)├─$(color 6) Battery" battery
|
||||||
|
info "$(color 15)└─$(color 6) Resolution" resolution
|
||||||
|
|
||||||
|
${ 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
|
||||||
|
}
|
||||||
|
|
||||||
|
kernel_shorthand="off"
|
||||||
|
uptime_shorthand="off"
|
||||||
|
memory_percent="on"
|
||||||
|
memory_unit="gib"
|
||||||
|
separator=" ➜"
|
||||||
|
|
||||||
|
# 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 = ./qtile;
|
"qtile".source = ./qtile;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue