From 994a8bfd7d1f3bc2be06bc4238261605c4d6554f Mon Sep 17 00:00:00 2001 From: He4eT Date: Thu, 21 Nov 2024 02:51:18 +0100 Subject: [PATCH] zsh: add status command --- fastfetch/status.jsonc | 101 +++++++++++++++++++++++++++++++++++++++++ root/.zshrc | 1 + 2 files changed, 102 insertions(+) create mode 100644 fastfetch/status.jsonc diff --git a/fastfetch/status.jsonc b/fastfetch/status.jsonc new file mode 100644 index 0000000..308f5d2 --- /dev/null +++ b/fastfetch/status.jsonc @@ -0,0 +1,101 @@ +{ + "$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json", + "logo": "none", + "display": { + "color": "white", + }, + "modules": [ + "os", + "kernel", + "initsystem", + "packages", + "uptime", + "users", + + "break", + + "terminalsize", + { + "type": "colors", + "key": "Terminal Colors", + "symbol": "square", + }, + + "break", + + "host", + "poweradapter", + "sound", + { + "type": "battery", + "temp": true, + }, + + "break", + + { + "type": "cpu", + "showPeCoreCount": true, + "temp": true, + }, + "cpuusage", + "processes", + "loadavg", + + "break", + + { + "type": "gpu", + "driverSpecific": true, + "temp": true, + }, + "display", + "brightness", + // "monitor", + + "break", + + "memory", + "swap", + "physicalmemory", + + "break", + + "disk", + { + "type": "physicaldisk", + "temp": true + }, + // "diskio", + + "break", + + "wifi", + "dns", + { + "type": "publicip", + "timeout": 1000 + }, + { + "type": "localip", + "showIpv6": false, + "showMac": false, + "showSpeed": false, + "showMtu": false, + "showLoop": false, + "showFlags": false, + "showAllIps": true + }, + // "netio", + + "break", + + "datetime", + { + "type": "weather", + "timeout": 1000 + }, + + "break", + ] +} diff --git a/root/.zshrc b/root/.zshrc index e774f77..84b6ef9 100644 --- a/root/.zshrc +++ b/root/.zshrc @@ -49,6 +49,7 @@ alias fakemsg='echo "$(curl -s https://whatthecommit.com/index.txt)"' alias ncdu='ncdu --color off' alias lynx='WWW_HOME=https://duckduckgo.com \ lynx -accept_all_cookies -nocolor -nopause -show_cursor:true -tna -vikeys' +alias status='clear && fastfetch -c ~/dotfiles/fastfetch/status.jsonc' # Aliases for nmtui @see https://lemmy.world/post/17689127