fastfetch: more DE detail + stylix palette
This commit is contained in:
parent
df2fe84c5d
commit
3d3a9e7997
1 changed files with 41 additions and 2 deletions
|
|
@ -1,4 +1,11 @@
|
||||||
{ config, pkgs, lib, ... }:
|
{ config, pkgs, lib, ... }:
|
||||||
|
let
|
||||||
|
c = config.lib.stylix.colors;
|
||||||
|
# Truecolor swatch for one base16 slot. `` stays a literal JSON escape
|
||||||
|
# here — fastfetch's JSONC parser turns it into a real ESC byte.
|
||||||
|
swatch = n: "\\u001b[48;2;${c."${n}-rgb-r"};${c."${n}-rgb-g"};${c."${n}-rgb-b"}m ";
|
||||||
|
paletteRow = names: lib.concatMapStrings swatch names + "\\u001b[0m";
|
||||||
|
in
|
||||||
{
|
{
|
||||||
# Install fastfetch
|
# Install fastfetch
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
|
|
@ -38,11 +45,43 @@
|
||||||
"separator",
|
"separator",
|
||||||
"os",
|
"os",
|
||||||
"kernel",
|
"kernel",
|
||||||
|
"uptime",
|
||||||
|
"memory",
|
||||||
|
"break",
|
||||||
"de",
|
"de",
|
||||||
|
"wm",
|
||||||
|
"theme",
|
||||||
|
"icons",
|
||||||
|
"cursor",
|
||||||
|
"font",
|
||||||
|
"display",
|
||||||
"shell",
|
"shell",
|
||||||
"terminal",
|
"terminal",
|
||||||
"uptime",
|
"terminalfont",
|
||||||
"memory"
|
"break",
|
||||||
|
{
|
||||||
|
"type": "custom",
|
||||||
|
"key": "Scheme",
|
||||||
|
"format": "base16, generated by stylix from wallpaper.png (${config.stylix.polarity})"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "custom",
|
||||||
|
"key": "Base",
|
||||||
|
"format": "${paletteRow [ "base00" "base01" "base02" "base03" "base04" "base05" "base06" "base07" ]}"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "custom",
|
||||||
|
"key": "Accent",
|
||||||
|
"format": "${paletteRow [ "base08" "base09" "base0A" "base0B" "base0C" "base0D" "base0E" "base0F" ]}"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "colors",
|
||||||
|
"key": "Term",
|
||||||
|
"symbol": "block",
|
||||||
|
"block": {
|
||||||
|
"width": 2
|
||||||
|
}
|
||||||
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue