1
0
Fork 0
forked from foxora/nix

made fastfetch so pretty

This commit is contained in:
foxora 2026-03-01 18:18:35 +00:00
parent 6240cdd4c6
commit f7a56bc7bb
5 changed files with 151 additions and 11 deletions

View file

@ -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",
},
]
}

View file

@ -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 = {