mirror of
https://codeberg.org/gigirassy/niri-dotfiles
synced 2026-08-30 23:27:38 +00:00
Add rice/fastfetch/config.jsonc
This commit is contained in:
@@ -0,0 +1,28 @@
|
|||||||
|
{
|
||||||
|
"$schema": "https://github.com/fastfetch-cli/fastfetch/raw/master/doc/json_schema.json",
|
||||||
|
"modules": [
|
||||||
|
"title",
|
||||||
|
"separator",
|
||||||
|
"os",
|
||||||
|
"host",
|
||||||
|
"kernel",
|
||||||
|
"uptime",
|
||||||
|
{
|
||||||
|
"type": "command",
|
||||||
|
"key": "Packages",
|
||||||
|
"text": "rust-script -e 'use std::process::Command;\n\nfn run(cmd: &str) -> String {\n String::from_utf8(\n Command::new(\"sh\")\n .arg(\"-c\")\n .arg(cmd)\n .output()\n .unwrap()\n .stdout,\n )\n .unwrap()\n .trim()\n .to_string()\n}\n\nlet xbps = run(\"xbps-query -l | wc -l\");\nlet cargo = run(\"cargo install --list | grep -c \\\":\\\"\");\nlet flatpak = run(\"flatpak list | tail -n +2 | wc -l\");\nlet pipx = run(\"pipx list --short | wc -l\");\n\nprintln!(\"{} (xbps), {} (cargo), {} (flatpak), {} (pipx)\", xbps, cargo, flatpak, pipx);'"
|
||||||
|
},
|
||||||
|
"shell",
|
||||||
|
"de",
|
||||||
|
"wm",
|
||||||
|
"terminal",
|
||||||
|
"terminalfont",
|
||||||
|
"cpu",
|
||||||
|
"gpu",
|
||||||
|
"memory",
|
||||||
|
"swap",
|
||||||
|
"disk",
|
||||||
|
"break",
|
||||||
|
"colors"
|
||||||
|
]
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user