From f58e44ea3a27d0530ae7fa97870ddc57a48e62dd Mon Sep 17 00:00:00 2001 From: leo60228 Date: Wed, 20 Nov 2024 20:11:45 -0500 Subject: [PATCH] replace cursed neowofetch config with equally cursed but ~5-10x faster fastfetch config --- files/fastfetch.jsonc | 26 ++++++++++++++++++++++++++ home.nix | 6 +++--- 2 files changed, 29 insertions(+), 3 deletions(-) create mode 100644 files/fastfetch.jsonc diff --git a/files/fastfetch.jsonc b/files/fastfetch.jsonc new file mode 100644 index 0000000..f8655b6 --- /dev/null +++ b/files/fastfetch.jsonc @@ -0,0 +1,26 @@ +{ + "$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json", + "modules": [ + "title", + "separator", + "os", + {"type": "command", "key": "Host", "text": "fastfetch --pipe -l none --key-type none -s host --host-format '{name}' | sed 's/^Laptop/Framework &/;T;s/7040S/7040 S/'"}, + "kernel", + "uptime", + "shell", + {"type": "display", "compactType": "original-with-refresh-rate"}, + {"type": "command", "key": "DE", "text": "[ -z \"$XDG_SESSION_TYPE\" ] && exit; echo \"Plasma $(dbus-send --dest=org.kde.plasmashell --print-reply=literal /MainApplication org.freedesktop.DBus.Properties.Get string:org.qtproject.Qt.QCoreApplication string:applicationVersion | sed 's/^ *variant *//') [KF $(dbus-send --dest=org.kde.kded6 --print-reply=literal /MainApplication org.freedesktop.DBus.Properties.Get string:org.qtproject.Qt.QCoreApplication string:applicationVersion | sed 's/^ *variant *//')] ($XDG_SESSION_TYPE)\""}, /// lol lmao + {"type": "command", "key": "CPU", "text": "fastfetch --pipe -l none --key-type none -s cpu --host-format '{name}' | sed 's;w/ Radeon.*Graphics ;;'"}, + {"type": "gpu", "driverSpecific": true, "format": "{name} ({core-count}) @ {frequency} ({driver})"}, + "memory", + "disk", + {"type": "battery", "key": "Battery"}, + {"type": "localip", "compact": true, "showPrefixLen": false} + ], + "logo": { + "color": { + "1": "38;2;74;107;175", + "2": "38;2;126;177;221" + } + } +} diff --git a/home.nix b/home.nix index 69d4d54..a8a6399 100644 --- a/home.nix +++ b/home.nix @@ -18,7 +18,7 @@ with pkgs; if small then [ - leoPkgs.hyfetch + fastfetch libwebp ripgrep (callPackage ./neovim { }) @@ -67,7 +67,7 @@ ctrtool hactool pdm - leoPkgs.hyfetch + fastfetch libsForQt5.kdelibs4support qpwgraph htop @@ -373,7 +373,7 @@ eval $(hub alias -s) if [ -z "$NEOFETCH_RAN" ]; then - neowofetch --config ${./files/neofetch.conf} + fastfetch --config ${./files/fastfetch.jsonc} export NEOFETCH_RAN=1 fi '';