Guest User

Untitled

a guest
Dec 4th, 2026
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.97 KB | None | 0 0
  1. _:
  2. let
  3. key = pos: color: icon: name: "{#90}${pos} {#${color}}${icon} ${name} {#keys}";
  4. top = key "╭─";
  5. mid = key "├─";
  6. bot = key "╰─";
  7.  
  8. dotsPad = 16;
  9. center = dotsPad + 7;
  10. in
  11. {
  12. programs.fastfetch = {
  13. enable = true;
  14. settings = {
  15. display = {
  16. separator = " ";
  17. key.width = 15; # aligns every value in one column
  18. bar = {
  19. char = {
  20. elapsed = "=";
  21. total = "-";
  22. };
  23. width = 13;
  24. };
  25. percent = {
  26. type = 2;
  27. green = 65;
  28. yellow = 80;
  29. };
  30. };
  31.  
  32. modules = [
  33. {
  34. type = "command";
  35. key = " ";
  36. text = ''
  37. t="$USER@$(uname -n)"
  38. n=$(printf %s "$t" | wc -m)
  39. printf '%*s%s' $(( ${toString center} - n / 2 )) "" "$t"
  40. '';
  41. }
  42. "break"
  43.  
  44. { type = "os"; key = top "31" "{icon}" "os"; }
  45. { type = "kernel"; key = mid "33" "{icon}" "kernel"; }
  46. { type = "bootmgr"; key = mid "32" "{icon}" "boot"; }
  47. { type = "packages"; key = mid "34" "{icon}" "packages"; }
  48. { type = "uptime"; key = bot "35" "{icon}" "uptime"; }
  49. "break"
  50.  
  51. { type = "lm"; key = top "35" "{icon}" "lm"; }
  52. { type = "wm"; key = mid "36" "{icon}" "wm"; }
  53. {
  54. type = "command";
  55. key = mid "32" "󰍹" "de";
  56. text = ''
  57. pgrep -f noctalia >/dev/null || { echo "$XDG_CURRENT_DESKTOP"; exit; }
  58. v=$(readlink -f "$(command -v noctalia)" | sed -n 's|.*noctalia-\([0-9][^/]*\)/.*|\1|p')
  59. echo "noctalia $v"
  60. '';
  61. }
  62. { type = "shell"; key = mid "33" "{icon}" "shell"; }
  63. { type = "terminal"; key = bot "34" "{icon}" "term"; }
  64. "break"
  65.  
  66. { type = "host"; key = top "32" "󰌢" "host"; }
  67. { type = "chassis"; key = mid "36" "{icon}" "chassis"; }
  68. { type = "cpu"; key = mid "35" "󰍛" "cpu"; }
  69. { type = "memory"; key = mid "34" "󰘚" "memory"; }
  70. { type = "swap"; key = mid "33" "󰓡" "swap"; }
  71. { type = "disk"; key = mid "31" "󰉉" "disk"; folders = "/"; }
  72. {
  73. type = "command";
  74. key = bot "32" "󰅐" "age";
  75. text = ''
  76. birth_install=$(stat -c %W /); current=$(date +%s); time_progression=$((current - birth_install)); days_difference=$((time_progression / 86400)); echo $days_difference days
  77. '';
  78. }
  79. "break"
  80. {
  81. type = "wifi";
  82. key = top "36" "" "wifi";
  83. format = "{signal-quality-bar} {signal-quality}";
  84. percent.type = [ "bar" "num" "num-color" ];
  85. }
  86. {
  87. type = "localip";
  88. key = bot "35" "󰛳" "ip";
  89. format = "{ipv4}";
  90. showPrefixLen = false;
  91. }
  92. "break"
  93. { type = "colors"; paddingLeft = dotsPad; symbol = "circle"; }
  94. ];
  95. };
  96. };
  97. }
Advertisement
Add Comment
Please, Sign In to add comment