From f7a56bc7bb7134bc09fac33be0fa769027ed9347 Mon Sep 17 00:00:00 2001 From: foxora Date: Sun, 1 Mar 2026 18:18:35 +0000 Subject: [PATCH] made fastfetch so pretty --- homes/aurora/default.nix | 6 + homes/data/ascii-art/flower-3.txt | 1 - .../modules/shell/fastfetch/themes/laimu.json | 0 .../shell/fastfetch/themes/laimu.jsonc | 128 ++++++++++++++++++ homes/modules/shell/zsh.nix | 27 ++-- 5 files changed, 151 insertions(+), 11 deletions(-) delete mode 100644 homes/modules/shell/fastfetch/themes/laimu.json create mode 100644 homes/modules/shell/fastfetch/themes/laimu.jsonc diff --git a/homes/aurora/default.nix b/homes/aurora/default.nix index 0172093..23350ba 100644 --- a/homes/aurora/default.nix +++ b/homes/aurora/default.nix @@ -68,6 +68,12 @@ recursive = true; }; + # copies the ascii art into .local/share/ascii-art :3 + home.file.".local/share/ascii-art" = { + source = root + "/homes/data/ascii-art"; + recursive = true; + }; + fonts.fontconfig.enable = true; home.file.".mozilla/native-messaging-hosts/tridactyl.json".source = diff --git a/homes/data/ascii-art/flower-3.txt b/homes/data/ascii-art/flower-3.txt index a9395cb..a0731fd 100644 --- a/homes/data/ascii-art/flower-3.txt +++ b/homes/data/ascii-art/flower-3.txt @@ -11,4 +11,3 @@ ⢠⡎⠀⣠⢈⡆⠀⠀⡆⡠⠊⠀⢰⠁⠀⠈⡰⢺⠉⡏⠂⠉⢲⠖⠛⠲⢄⡀ ⠘⢇⡀⠙⠋⠀⢀⡠⢏⠁⢴⣆⠈⠒⠶⢲⠁⠈⢀⣇⠀⠀⣸⢃⡴⠆⢀⡇ ⠀⠈⠙⠒⠶⠖⠋⠁⠈⠐⠚⠁⠀⠀⠀⠘⠦⠤⠊⠀⠉⠉⠁⠀⠑⠒⠊⠀ -⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⠀⢀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ diff --git a/homes/modules/shell/fastfetch/themes/laimu.json b/homes/modules/shell/fastfetch/themes/laimu.json deleted file mode 100644 index e69de29..0000000 diff --git a/homes/modules/shell/fastfetch/themes/laimu.jsonc b/homes/modules/shell/fastfetch/themes/laimu.jsonc new file mode 100644 index 0000000..5c774e8 --- /dev/null +++ b/homes/modules/shell/fastfetch/themes/laimu.jsonc @@ -0,0 +1,128 @@ +{ + "$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json", + "logo": { + "type": "auto", + "source": "nixos", + }, + "display": { + "separator": " > ", + "constants": [], + }, + "modules": [ + { + "type": "title", + "format": "╭─────╯ {user-name}@{host-name} ╰───────────────╌╌╌┄┄┄┈┈┈", + "outputColor": "cyan", + }, + { + "type": "os", + "key": "│ os", + "keyColor": "cyan", + "format": "{name} {version}", + }, + { + "type": "kernel", + "key": "│ kernel", + "keyColor": "cyan", + "format": "{sysname} {arch} - {release}", + }, + { + "type": "uptime", + "key": "│ uptime", + "keyColor": "cyan", + }, + { + "type": "packages", + "key": "│ pkgs", + "keyColor": "cyan", + }, + { + "type": "cpu", + "key": "│ cpu", + "keyColor": "magenta", + "temp": true, + "format": "{name} {cores-physical}c/{cores-logical}t @ {freq-max} ({temperature})", + }, + { + "type": "gpu", + "key": "│ gpu{1}", + "keyColor": "magenta", + "driverSpecific": false, + "detectionMethod": "pci", + "temp": true, + "percent": { + "green": 50, + "yellow": 80, + "type": 0 + }, + "format": "{name} ({temperature}) [{type}]", + }, + { + "type": "memory", + "key": "│ memory", + "keyColor": "magenta", + }, + { + "type": "swap", + "key": "│ swap", + "keyColor": "magenta", + }, + { + "type": "disk", + "key": "│ disk({1})", + "keyColor": "magenta", + }, + { + "type": "shell", + "key": "│ shell", + "keyColor": "green", + }, + { + "type": "terminal", + "key": "│ term", + "keyColor": "green", + }, + { + "type": "wm", + "key": "│ wm", + "keyColor": "green", + }, + { + "type": "terminalfont", + "key": "│ font", + "keyColor": "green", + "format": "{name}", + }, + { + "type": "locale", + "key": "│ locale", + "keyColor": "green", + }, + { + "type": "title", + "format": "├─────────────────────────────────────────╌╌╌┄┄┄┈┈┈", + "outputColor": "red", + }, + { + "type": "command", + "key": "│", + "keyWidth": 3, + "keyColor": "red", + "shell": "bash", + "text": "for i in {0..7}; do printf \"\\e[4%dm \\e[0m\" $i; done", + }, + { + "type": "command", + "key": "│", + "keyWidth": 3, + "keyColor": "red", + "shell": "bash", + "text": "for i in {0..7}; do printf \"\\e[10%dm \\e[0m\" $i; done", + }, + { + "type": "title", + "format": "╰─────────────────────────────────────────╌╌╌┄┄┄┈┈┈", + "outputColor": "red", + }, + ] +} diff --git a/homes/modules/shell/zsh.nix b/homes/modules/shell/zsh.nix index a004edb..5fe921c 100644 --- a/homes/modules/shell/zsh.nix +++ b/homes/modules/shell/zsh.nix @@ -1,4 +1,5 @@ -{upkgs, ...}: { +{ upkgs, ... }: +{ programs.zsh = { enable = true; enableCompletion = true; @@ -14,16 +15,22 @@ ]; initContent = '' - # yazi wrapper!!! - function yazi() { - local tmp="$(mktemp -p "/run/user/$UID" -t "yazi-cwd.XXXXXX")" cwd - command yazi "$@" --cwd-file="$tmp" - IFS= read -r -d ''' cwd < "$tmp" - [ -n "$cwd" ] && [ "$cwd" != "$PWD" ] && builtin cd -- "$cwd" - rm -f -- "$tmp" - } + # yazi wrapper!!! + function yazi() { + local tmp="$(mktemp -p "/run/user/$UID" -t "yazi-cwd.XXXXXXXX")" cwd + command yazi "$@" --cwd-file="$tmp" + IFS= read -r -d ''' cwd < "$tmp" + [ -n "$cwd" ] && [ "$cwd" != "$PWD" ] && builtin cd -- "$cwd" + rm -f -- "$tmp" + } - hyfetch # oh i'm so gay!! :3 + # oh i'm so gay!! :3 + function hf() { + local queer_flags=('genderfae' 'lesbian' 'xenogender' 'transgender' 'transfeminine' 'transbian') + local ascii_art=('fox-1.txt' 'fox-2.txt' 'fox-3.txt' 'blackhole-1.txt' 'butterfly-4.txt' 'butterfly-7.txt' 'flower-3.txt' 'flower-4.txt') + hyfetch --ascii-file="$XDG_DATA_HOME/ascii-art/$ascii_art[RANDOM % $#ascii_art + 1]" --preset="$queer_flags[RANDOM % $#queer_flags + 1]" --args="--config themes/laimu.jsonc" + } + hf ''; shellAliases = {