diff options
| author | Arpit Chakladar <arpitchakladar+git@gmail.com> | 2026-08-29 02:22:48 +0530 |
|---|---|---|
| committer | Arpit Chakladar <arpitchakladar+git@gmail.com> | 2026-08-29 03:50:32 +0530 |
| commit | 673e7b8245a67d5627ff41ab1c113c90b4c8c553 (patch) | |
| tree | 6b5679bb5ee56fa5a5b5eb5dc9e522503815ce9d | |
| parent | 1cc7caf459c25f8dea24e40e68b89aaf4862eef4 (diff) | |
| download | home-manager-config-673e7b8245a67d5627ff41ab1c113c90b4c8c553.tar.gz home-manager-config-673e7b8245a67d5627ff41ab1c113c90b4c8c553.zip | |
system: removed system-monitor, removed bottom, added btop
| -rw-r--r-- | assets/icons/bottom-system-monitor.svg | 127 | ||||
| -rw-r--r-- | modules/system/bottom/default.nix | 23 | ||||
| -rw-r--r-- | modules/system/btop/default.nix | 23 | ||||
| -rw-r--r-- | modules/system/default.nix | 3 | ||||
| -rw-r--r-- | modules/system/system-monitor/assertions.nix | 19 | ||||
| -rw-r--r-- | modules/system/system-monitor/default.nix | 41 | ||||
| -rw-r--r-- | modules/system/system-monitor/system-monitor.sh | 26 | ||||
| -rw-r--r-- | users/arpit.nix | 2 |
8 files changed, 25 insertions, 239 deletions
diff --git a/assets/icons/bottom-system-monitor.svg b/assets/icons/bottom-system-monitor.svg deleted file mode 100644 index f873bbd..0000000 --- a/assets/icons/bottom-system-monitor.svg +++ /dev/null @@ -1,127 +0,0 @@ -<?xml version="1.0" encoding="UTF-8" standalone="no"?> -<!-- Created with Inkscape (http://www.inkscape.org/) --> - -<svg - width="256mm" - height="256mm" - viewBox="0 0 256 256.00016" - version="1.1" - id="svg1" - inkscape:version="1.4.2 (ebf0e940d0, 2025-05-08)" - sodipodi:docname="bottom-system-monitor.svg" - xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" - xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" - xmlns="http://www.w3.org/2000/svg" - xmlns:svg="http://www.w3.org/2000/svg"> - <sodipodi:namedview - id="namedview1" - pagecolor="#ffffff" - bordercolor="#000000" - borderopacity="0.25" - inkscape:showpageshadow="2" - inkscape:pageopacity="0.0" - inkscape:pagecheckerboard="0" - inkscape:deskcolor="#d1d1d1" - inkscape:document-units="mm" - inkscape:zoom="0.46404075" - inkscape:cx="664.8123" - inkscape:cy="524.73839" - inkscape:window-width="1920" - inkscape:window-height="1011" - inkscape:window-x="0" - inkscape:window-y="0" - inkscape:window-maximized="1" - inkscape:current-layer="text3-6-6-9-2" /> - <defs - id="defs1"> - <rect - x="-776.46967" - y="6480.1665" - width="627.88593" - height="158.16974" - id="rect34" /> - <rect - x="166.35098" - y="301.948" - width="823.36749" - height="387.22037" - id="rect2" /> - </defs> - <g - inkscape:label="Terminal" - inkscape:groupmode="layer" - id="layer1" /> - <g - inkscape:groupmode="layer" - id="layer2" - inkscape:label="Text" - inkscape:highlight-color="#2e00ff"> - <rect - style="fill:#0d1117;fill-opacity:1;stroke-width:0.264583" - id="rect1-1-7-1-2" - width="230" - height="180" - x="13" - y="38" - rx="16" /> - <g - id="text3-6-6-9-2" - style="font-size:77.6111px;font-family:IntoDotMatrix;-inkscape-font-specification:'IntoDotMatrix, Normal';text-align:center;letter-spacing:-3.43958px;text-anchor:middle;fill:#0d1117;stroke-width:0.264583" - inkscape:label="name" - aria-label="BTM"> - <path - style="fill:#3063d9" - d="m 43.511846,203.13404 q -1.856906,0 -3.145371,-1.28846 -1.288466,-1.28847 -1.288466,-3.14537 0,-1.81901 1.288466,-3.14537 1.288465,-1.28847 3.145371,-1.28847 1.819011,0 3.145372,1.28847 1.288466,1.32636 1.288466,3.14537 0,1.8569 -1.288466,3.14537 -1.326361,1.28846 -3.145372,1.28846 z m 11.065645,0 q -1.81901,0 -3.107475,-1.28846 -1.326362,-1.28847 -1.326362,-3.14537 0,-1.81901 1.326362,-3.14537 1.288465,-1.28847 3.107475,-1.28847 1.856907,0 3.145372,1.28847 1.288466,1.32636 1.288466,3.14537 0,1.8569 -1.288466,3.14537 -1.288465,1.28846 -3.145372,1.28846 z m 11.103541,0 q -1.856906,0 -3.145371,-1.28846 -1.288466,-1.28847 -1.288466,-3.14537 0,-1.81901 1.288466,-3.14537 1.288465,-1.28847 3.145371,-1.28847 1.819011,0 3.145372,1.28847 1.288466,1.32636 1.288466,3.14537 0,1.8569 -1.288466,3.14537 -1.326361,1.28846 -3.145372,1.28846 z m 11.103542,0 q -1.856907,0 -3.145372,-1.28846 -1.326362,-1.28847 -1.326362,-3.14537 0,-1.81901 1.326362,-3.14537 1.288465,-1.28847 3.145372,-1.28847 1.81901,0 3.107475,1.28847 1.326362,1.32636 1.326362,3.14537 0,1.8569 -1.326362,3.14537 -1.288465,1.28846 -3.107475,1.28846 z M 43.511846,192.0684 q -1.856906,0 -3.145371,-1.32636 -1.288466,-1.28847 -1.288466,-3.10748 0,-1.8569 1.288466,-3.14537 1.288465,-1.28846 3.145371,-1.28846 1.819011,0 3.145372,1.28846 1.288466,1.28847 1.288466,3.14537 0,1.81901 -1.288466,3.10748 -1.326361,1.32636 -3.145372,1.32636 z m 44.338373,0 q -1.819011,0 -3.145372,-1.32636 -1.288466,-1.28847 -1.288466,-3.10748 0,-1.8569 1.288466,-3.14537 1.326361,-1.28846 3.145372,-1.28846 1.856906,0 3.145371,1.28846 1.288466,1.28847 1.288466,3.14537 0,1.81901 -1.288466,3.10748 -1.288465,1.32636 -3.145371,1.32636 z M 43.511846,180.96486 q -1.856906,0 -3.145371,-1.28847 -1.288466,-1.28846 -1.288466,-3.14537 0,-1.81901 1.288466,-3.14537 1.288465,-1.28847 3.145371,-1.28847 1.819011,0 3.145372,1.28847 1.288466,1.32636 1.288466,3.14537 0,1.85691 -1.288466,3.14537 -1.326361,1.28847 -3.145372,1.28847 z m 44.338373,0 q -1.819011,0 -3.145372,-1.28847 -1.288466,-1.28846 -1.288466,-3.14537 0,-1.81901 1.288466,-3.14537 1.326361,-1.28847 3.145372,-1.28847 1.856906,0 3.145371,1.28847 1.288466,1.32636 1.288466,3.14537 0,1.85691 -1.288466,3.14537 -1.288465,1.28847 -3.145371,1.28847 z M 43.511846,169.89921 q -1.856906,0 -3.145371,-1.32636 -1.288466,-1.28846 -1.288466,-3.14537 0,-1.81901 1.288466,-3.10748 1.288465,-1.32636 3.145371,-1.32636 1.819011,0 3.145372,1.32636 1.288466,1.28847 1.288466,3.10748 0,1.85691 -1.288466,3.14537 -1.326361,1.32636 -3.145372,1.32636 z m 11.065645,0 q -1.81901,0 -3.107475,-1.32636 -1.326362,-1.28846 -1.326362,-3.14537 0,-1.81901 1.326362,-3.10748 1.288465,-1.32636 3.107475,-1.32636 1.856907,0 3.145372,1.32636 1.288466,1.28847 1.288466,3.10748 0,1.85691 -1.288466,3.14537 -1.288465,1.32636 -3.145372,1.32636 z m 11.103541,0 q -1.856906,0 -3.145371,-1.32636 -1.288466,-1.28846 -1.288466,-3.14537 0,-1.81901 1.288466,-3.10748 1.288465,-1.32636 3.145371,-1.32636 1.819011,0 3.145372,1.32636 1.288466,1.28847 1.288466,3.10748 0,1.85691 -1.288466,3.14537 -1.326361,1.32636 -3.145372,1.32636 z m 11.103542,0 q -1.856907,0 -3.145372,-1.32636 -1.326362,-1.28846 -1.326362,-3.14537 0,-1.81901 1.326362,-3.10748 1.288465,-1.32636 3.145372,-1.32636 1.81901,0 3.107475,1.32636 1.326362,1.28847 1.326362,3.10748 0,1.85691 -1.326362,3.14537 -1.288465,1.32636 -3.107475,1.32636 z M 43.511846,158.79567 q -1.856906,0 -3.145371,-1.28846 -1.288466,-1.32636 -1.288466,-3.14537 0,-1.85691 1.288466,-3.14538 1.288465,-1.28846 3.145371,-1.28846 1.819011,0 3.145372,1.28846 1.288466,1.28847 1.288466,3.14538 0,1.81901 -1.288466,3.14537 -1.326361,1.28846 -3.145372,1.28846 z m 44.338373,0 q -1.819011,0 -3.145372,-1.28846 -1.288466,-1.32636 -1.288466,-3.14537 0,-1.85691 1.288466,-3.14538 1.326361,-1.28846 3.145372,-1.28846 1.856906,0 3.145371,1.28846 1.288466,1.28847 1.288466,3.14538 0,1.81901 -1.288466,3.14537 -1.288465,1.28846 -3.145371,1.28846 z M 43.511846,147.69213 q -1.856906,0 -3.145371,-1.28846 -1.288466,-1.28847 -1.288466,-3.14538 0,-1.81901 1.288466,-3.10747 1.288465,-1.32636 3.145371,-1.32636 1.819011,0 3.145372,1.32636 1.288466,1.28846 1.288466,3.10747 0,1.85691 -1.288466,3.14538 -1.326361,1.28846 -3.145372,1.28846 z m 44.338373,0 q -1.819011,0 -3.145372,-1.28846 -1.288466,-1.28847 -1.288466,-3.14538 0,-1.81901 1.288466,-3.10747 1.326361,-1.32636 3.145372,-1.32636 1.856906,0 3.145371,1.32636 1.288466,1.28846 1.288466,3.10747 0,1.85691 -1.288466,3.14538 -1.288465,1.28846 -3.145371,1.28846 z M 43.511846,136.62648 q -1.856906,0 -3.145371,-1.28848 -1.288466,-1.32636 -1.288466,-3.14538 0,-1.85692 1.288466,-3.14539 1.288465,-1.28848 3.145371,-1.28848 1.819011,0 3.145372,1.28848 1.288466,1.28847 1.288466,3.14539 0,1.81902 -1.288466,3.14538 -1.326361,1.28848 -3.145372,1.28848 z m 11.065645,0 q -1.81901,0 -3.107475,-1.28848 -1.326362,-1.32636 -1.326362,-3.14538 0,-1.85692 1.326362,-3.14539 1.288465,-1.28848 3.107475,-1.28848 1.856907,0 3.145372,1.28848 1.288466,1.28847 1.288466,3.14539 0,1.81902 -1.288466,3.14538 -1.288465,1.28848 -3.145372,1.28848 z m 11.103541,0 q -1.856906,0 -3.145371,-1.28848 -1.288466,-1.32636 -1.288466,-3.14538 0,-1.85692 1.288466,-3.14539 1.288465,-1.28848 3.145371,-1.28848 1.819011,0 3.145372,1.28848 1.288466,1.28847 1.288466,3.14539 0,1.81902 -1.288466,3.14538 -1.326361,1.28848 -3.145372,1.28848 z m 11.103542,0 q -1.856907,0 -3.145372,-1.28848 -1.326362,-1.32636 -1.326362,-3.14538 0,-1.85692 1.326362,-3.14539 1.288465,-1.28848 3.145372,-1.28848 1.81901,0 3.107475,1.28848 1.326362,1.28847 1.326362,3.14539 0,1.81902 -1.326362,3.14538 -1.288465,1.28848 -3.107475,1.28848 z" - id="path17" /> - <path - style="fill:#30d9a4" - d="m 128.74901,203.13404 q -1.8569,0 -3.14537,-1.28846 -1.28846,-1.28847 -1.28846,-3.14537 0,-1.81901 1.28846,-3.14537 1.28847,-1.28847 3.14537,-1.28847 1.81901,0 3.14538,1.28847 1.28846,1.32636 1.28846,3.14537 0,1.8569 -1.28846,3.14537 -1.32637,1.28846 -3.14538,1.28846 z m 0,-11.06564 q -1.8569,0 -3.14537,-1.32636 -1.28846,-1.28847 -1.28846,-3.10748 0,-1.8569 1.28846,-3.14537 1.28847,-1.28846 3.14537,-1.28846 1.81901,0 3.14538,1.28846 1.28846,1.28847 1.28846,3.14537 0,1.81901 -1.28846,3.10748 -1.32637,1.32636 -3.14538,1.32636 z m 0,-11.10354 q -1.8569,0 -3.14537,-1.28847 -1.28846,-1.28846 -1.28846,-3.14537 0,-1.81901 1.28846,-3.14537 1.28847,-1.28847 3.14537,-1.28847 1.81901,0 3.14538,1.28847 1.28846,1.32636 1.28846,3.14537 0,1.85691 -1.28846,3.14537 -1.32637,1.28847 -3.14538,1.28847 z m 0,-11.06565 q -1.8569,0 -3.14537,-1.32636 -1.28846,-1.28846 -1.28846,-3.14537 0,-1.81901 1.28846,-3.10748 1.28847,-1.32636 3.14537,-1.32636 1.81901,0 3.14538,1.32636 1.28846,1.28847 1.28846,3.10748 0,1.85691 -1.28846,3.14537 -1.32637,1.32636 -3.14538,1.32636 z m 0,-11.10354 q -1.8569,0 -3.14537,-1.28846 -1.28846,-1.32636 -1.28846,-3.14537 0,-1.85691 1.28846,-3.14538 1.28847,-1.28846 3.14537,-1.28846 1.81901,0 3.14538,1.28846 1.28846,1.28847 1.28846,3.14538 0,1.81901 -1.28846,3.14537 -1.32637,1.28846 -3.14538,1.28846 z m 0,-11.10354 q -1.8569,0 -3.14537,-1.28846 -1.28846,-1.28847 -1.28846,-3.14538 0,-1.81901 1.28846,-3.10747 1.28847,-1.32636 3.14537,-1.32636 1.81901,0 3.14538,1.32636 1.28846,1.28846 1.28846,3.10747 0,1.85691 -1.28846,3.14538 -1.32637,1.28846 -3.14538,1.28846 z m -22.16918,-11.06565 q -1.85691,0 -3.14537,-1.28848 -1.28847,-1.32636 -1.28847,-3.14538 0,-1.85692 1.28847,-3.14539 1.28846,-1.28848 3.14537,-1.28848 1.81901,0 3.14537,1.28848 1.28847,1.28847 1.28847,3.14539 0,1.81902 -1.28847,3.14538 -1.32636,1.28848 -3.14537,1.28848 z m 11.06564,0 q -1.81901,0 -3.10747,-1.28848 -1.32636,-1.32636 -1.32636,-3.14538 0,-1.85692 1.32636,-3.14539 1.28846,-1.28848 3.10747,-1.28848 1.85691,0 3.14537,1.28848 1.28847,1.28847 1.28847,3.14539 0,1.81902 -1.28847,3.14538 -1.28846,1.28848 -3.14537,1.28848 z m 11.10354,0 q -1.8569,0 -3.14537,-1.28848 -1.28846,-1.32636 -1.28846,-3.14538 0,-1.85692 1.28846,-3.14539 1.28847,-1.28848 3.14537,-1.28848 1.81901,0 3.14538,1.28848 1.28846,1.28847 1.28846,3.14539 0,1.81902 -1.28846,3.14538 -1.32637,1.28848 -3.14538,1.28848 z m 11.10355,0 q -1.85691,0 -3.14538,-1.28848 -1.32636,-1.32636 -1.32636,-3.14538 0,-1.85692 1.32636,-3.14539 1.28847,-1.28848 3.14538,-1.28848 1.81901,0 3.10747,1.28848 1.32636,1.28847 1.32636,3.14539 0,1.81902 -1.32636,3.14538 -1.28846,1.28848 -3.10747,1.28848 z m 11.06564,0 q -1.81901,0 -3.14537,-1.28848 -1.28847,-1.32636 -1.28847,-3.14538 0,-1.85692 1.28847,-3.14539 1.32636,-1.28848 3.14537,-1.28848 1.85691,0 3.14537,1.28848 1.28847,1.28847 1.28847,3.14539 0,1.81902 -1.28847,3.14538 -1.28846,1.28848 -3.14537,1.28848 z" - id="path18" /> - <path - style="fill:#d9bd30" - d="m 169.64781,203.13404 q -1.85691,0 -3.14537,-1.28846 -1.28847,-1.28847 -1.28847,-3.14537 0,-1.81901 1.28847,-3.14537 1.28846,-1.28847 3.14537,-1.28847 1.81901,0 3.14537,1.28847 1.28847,1.32636 1.28847,3.14537 0,1.8569 -1.28847,3.14537 -1.32636,1.28846 -3.14537,1.28846 z m 44.33837,0 q -1.81901,0 -3.14537,-1.28846 -1.28847,-1.28847 -1.28847,-3.14537 0,-1.81901 1.28847,-3.14537 1.32636,-1.28847 3.14537,-1.28847 1.85691,0 3.14537,1.28847 1.28847,1.32636 1.28847,3.14537 0,1.8569 -1.28847,3.14537 -1.28846,1.28846 -3.14537,1.28846 z M 169.64781,192.0684 q -1.85691,0 -3.14537,-1.32636 -1.28847,-1.28847 -1.28847,-3.10748 0,-1.8569 1.28847,-3.14537 1.28846,-1.28846 3.14537,-1.28846 1.81901,0 3.14537,1.28846 1.28847,1.28847 1.28847,3.14537 0,1.81901 -1.28847,3.10748 -1.32636,1.32636 -3.14537,1.32636 z m 44.33837,0 q -1.81901,0 -3.14537,-1.32636 -1.28847,-1.28847 -1.28847,-3.10748 0,-1.8569 1.28847,-3.14537 1.32636,-1.28846 3.14537,-1.28846 1.85691,0 3.14537,1.28846 1.28847,1.28847 1.28847,3.14537 0,1.81901 -1.28847,3.10748 -1.28846,1.32636 -3.14537,1.32636 z m -44.33837,-11.10354 q -1.85691,0 -3.14537,-1.28847 -1.28847,-1.28846 -1.28847,-3.14537 0,-1.81901 1.28847,-3.14537 1.28846,-1.28847 3.14537,-1.28847 1.81901,0 3.14537,1.28847 1.28847,1.32636 1.28847,3.14537 0,1.85691 -1.28847,3.14537 -1.32636,1.28847 -3.14537,1.28847 z m 44.33837,0 q -1.81901,0 -3.14537,-1.28847 -1.28847,-1.28846 -1.28847,-3.14537 0,-1.81901 1.28847,-3.14537 1.32636,-1.28847 3.14537,-1.28847 1.85691,0 3.14537,1.28847 1.28847,1.32636 1.28847,3.14537 0,1.85691 -1.28847,3.14537 -1.28846,1.28847 -3.14537,1.28847 z m -44.33837,-11.06565 q -1.85691,0 -3.14537,-1.32636 -1.28847,-1.28846 -1.28847,-3.14537 0,-1.81901 1.28847,-3.10748 1.28846,-1.32636 3.14537,-1.32636 1.81901,0 3.14537,1.32636 1.28847,1.28847 1.28847,3.10748 0,1.85691 -1.28847,3.14537 -1.32636,1.32636 -3.14537,1.32636 z m 44.33837,0 q -1.81901,0 -3.14537,-1.32636 -1.28847,-1.28846 -1.28847,-3.14537 0,-1.81901 1.28847,-3.10748 1.32636,-1.32636 3.14537,-1.32636 1.85691,0 3.14537,1.32636 1.28847,1.28847 1.28847,3.10748 0,1.85691 -1.28847,3.14537 -1.28846,1.32636 -3.14537,1.32636 z m -44.33837,-11.10354 q -1.85691,0 -3.14537,-1.28846 -1.28847,-1.32636 -1.28847,-3.14537 0,-1.85691 1.28847,-3.14538 1.28846,-1.28846 3.14537,-1.28846 1.81901,0 3.14537,1.28846 1.28847,1.28847 1.28847,3.14538 0,1.81901 -1.28847,3.14537 -1.32636,1.28846 -3.14537,1.28846 z m 22.16919,0 q -1.85691,0 -3.14538,-1.28846 -1.28846,-1.32636 -1.28846,-3.14537 0,-1.85691 1.28846,-3.14538 1.28847,-1.28846 3.14538,-1.28846 1.81901,0 3.14537,1.28846 1.28846,1.28847 1.28846,3.14538 0,1.81901 -1.28846,3.14537 -1.32636,1.28846 -3.14537,1.28846 z m 22.16918,0 q -1.81901,0 -3.14537,-1.28846 -1.28847,-1.32636 -1.28847,-3.14537 0,-1.85691 1.28847,-3.14538 1.32636,-1.28846 3.14537,-1.28846 1.85691,0 3.14537,1.28846 1.28847,1.28847 1.28847,3.14538 0,1.81901 -1.28847,3.14537 -1.28846,1.28846 -3.14537,1.28846 z m -44.33837,-11.10354 q -1.85691,0 -3.14537,-1.28846 -1.28847,-1.28847 -1.28847,-3.14538 0,-1.81901 1.28847,-3.10747 1.28846,-1.32636 3.14537,-1.32636 1.81901,0 3.14537,1.32636 1.28847,1.28846 1.28847,3.10747 0,1.85691 -1.28847,3.14538 -1.32636,1.28846 -3.14537,1.28846 z m 11.06564,0 q -1.81901,0 -3.10747,-1.28846 -1.32636,-1.28847 -1.32636,-3.14538 0,-1.81901 1.32636,-3.10747 1.28846,-1.32636 3.10747,-1.32636 1.85691,0 3.14538,1.32636 1.28846,1.28846 1.28846,3.10747 0,1.85691 -1.28846,3.14538 -1.28847,1.28846 -3.14538,1.28846 z m 22.20709,0 q -1.85691,0 -3.14537,-1.28846 -1.32637,-1.28847 -1.32637,-3.14538 0,-1.81901 1.32637,-3.10747 1.28846,-1.32636 3.14537,-1.32636 1.81901,0 3.10747,1.32636 1.32636,1.28846 1.32636,3.10747 0,1.85691 -1.32636,3.14538 -1.28846,1.28846 -3.10747,1.28846 z m 11.06564,0 q -1.81901,0 -3.14537,-1.28846 -1.28847,-1.28847 -1.28847,-3.14538 0,-1.81901 1.28847,-3.10747 1.32636,-1.32636 3.14537,-1.32636 1.85691,0 3.14537,1.32636 1.28847,1.28846 1.28847,3.10747 0,1.85691 -1.28847,3.14538 -1.28846,1.28846 -3.14537,1.28846 z m -44.33837,-11.06565 q -1.85691,0 -3.14537,-1.28848 -1.28847,-1.32636 -1.28847,-3.14538 0,-1.85692 1.28847,-3.14539 1.28846,-1.28848 3.14537,-1.28848 1.81901,0 3.14537,1.28848 1.28847,1.28847 1.28847,3.14539 0,1.81902 -1.28847,3.14538 -1.32636,1.28848 -3.14537,1.28848 z m 44.33837,0 q -1.81901,0 -3.14537,-1.28848 -1.28847,-1.32636 -1.28847,-3.14538 0,-1.85692 1.28847,-3.14539 1.32636,-1.28848 3.14537,-1.28848 1.85691,0 3.14537,1.28848 1.28847,1.28847 1.28847,3.14539 0,1.81902 -1.28847,3.14538 -1.28846,1.28848 -3.14537,1.28848 z" - id="path19" /> - </g> - <g - id="g21-9-9-4-2" - transform="translate(-8.54617,22.999952)"> - <rect - style="fill:#ffffff;fill-opacity:1;stroke-width:0.264583" - id="rect19-0-2-9-2" - width="45" - height="10" - x="78.846336" - y="72.448143" - rx="5" - inkscape:label="line" /> - <g - id="g20-9-5-9-9" - inkscape:label="arrow" - transform="translate(5.0212958,8.4666671)"> - <rect - style="fill:#ffffff;fill-opacity:1;stroke-width:0.264583" - id="rect19-9-9-1-4-3-7" - width="40" - height="10" - x="-19.889391" - y="-87.437485" - rx="5" - transform="rotate(135)" /> - <rect - style="fill:#ffffff;fill-opacity:1;stroke-width:0.264583" - id="rect19-9-7-0-6-4" - width="40" - height="10" - x="47.26355" - y="-20.063299" - rx="5" - transform="rotate(45)" /> - </g> - </g> - <text - xml:space="preserve" - transform="scale(0.26458333)" - id="text34" - style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:96px;line-height:0;font-family:'DejaVu Math TeX Gyre';-inkscape-font-specification:'DejaVu Math TeX Gyre, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;text-align:start;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;direction:ltr;white-space:pre;shape-inside:url(#rect34);display:inline;fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:0;stroke-dasharray:none;stroke-opacity:1" /> - </g> -</svg> diff --git a/modules/system/bottom/default.nix b/modules/system/bottom/default.nix deleted file mode 100644 index b037c56..0000000 --- a/modules/system/bottom/default.nix +++ /dev/null @@ -1,23 +0,0 @@ -# Cross-platform graphical process and system monitor -{ - config, - lib, - ... -}: -{ - options.system.bottom = { - enable = lib.mkEnableOption "Enables bottom."; - package = lib.mkOption { - type = lib.types.package; - readOnly = true; - default = config.programs.bottom.package; - description = "The bottom package to use."; - }; - }; - - config = lib.mkIf config.system.bottom.enable { - programs.bottom = { - enable = true; - }; - }; -} diff --git a/modules/system/btop/default.nix b/modules/system/btop/default.nix new file mode 100644 index 0000000..1834aa2 --- /dev/null +++ b/modules/system/btop/default.nix @@ -0,0 +1,23 @@ +# Cross-platform graphical process and system monitor +{ + config, + lib, + ... +}: +{ + options.system.btop = { + enable = lib.mkEnableOption "Enables btop."; + package = lib.mkOption { + type = lib.types.package; + readOnly = true; + default = config.programs.btop.package; + description = "The btop package to use."; + }; + }; + + config = lib.mkIf config.system.btop.enable { + programs.btop = { + enable = true; + }; + }; +} diff --git a/modules/system/default.nix b/modules/system/default.nix index 9bd3a01..bf19c04 100644 --- a/modules/system/default.nix +++ b/modules/system/default.nix @@ -2,13 +2,12 @@ { ... }: { imports = [ - ./bottom ./brightnessctl + ./btop ./deep-clean ./htop ./nix-update ./nvtop - ./system-monitor ./systemctl-tui ]; } diff --git a/modules/system/system-monitor/assertions.nix b/modules/system/system-monitor/assertions.nix deleted file mode 100644 index 08b9f7c..0000000 --- a/modules/system/system-monitor/assertions.nix +++ /dev/null @@ -1,19 +0,0 @@ -{ config, ... }: -[ - { - assertion = !config.system.system-monitor.enable || config.system.bottom.enable; - message = "system.system-monitor is enabled but requires `system.bottom.enable`."; - } - { - assertion = !config.system.system-monitor.enable || config.system.nvtop.enable; - message = "system.system-monitor is enabled but requires `system.nvtop.enable`."; - } - { - assertion = !config.system.system-monitor.enable || config.terminal.tmux.enable; - message = "system.system-monitor is enabled but requires `terminal.tmux.enable`."; - } - { - assertion = !config.system.system-monitor.enable || config.terminal.kitty.enable; - message = "system.system-monitor is enabled but requires `terminal.kitty.enable`."; - } -] diff --git a/modules/system/system-monitor/default.nix b/modules/system/system-monitor/default.nix deleted file mode 100644 index e103ed3..0000000 --- a/modules/system/system-monitor/default.nix +++ /dev/null @@ -1,41 +0,0 @@ -# System monitor script using tmux to run bottom and nvtop side-by-side -{ - config, - lib, - pkgs, - ... -}: -let - inherit ((import ../../lib/script.nix { inherit lib pkgs; })) mkScriptModule; - script = mkScriptModule { - scope = [ "system" ]; - name = "system-monitor"; - path = ./system-monitor.sh; - description = "System monitor script using tmux to run bottom and nvtop side-by-side\nOpens a tmux session with:\n - Left pane: bottom (system/process monitor)\n - Right pane: nvtop (GPU monitor)"; - deps = [ - config.system.bottom.package - config.system.nvtop.package - config.terminal.tmux.package - config.terminal.kitty.package - pkgs.bash - ]; - desktop = { - enable = true; - displayName = "System Monitor"; - icon = "bottom-system-monitor"; - }; - inherit config; - }; -in -{ - options = script.options; - config = lib.mkMerge [ - script.config - { - assertions = import ./assertions.nix { inherit config lib; }; - home.file.".local/share/icons/hicolor/scalable/apps/bottom-system-monitor.svg" = { - source = ../../../assets/icons/bottom-system-monitor.svg; - }; - } - ]; -} diff --git a/modules/system/system-monitor/system-monitor.sh b/modules/system/system-monitor/system-monitor.sh deleted file mode 100644 index 7a9e7ea..0000000 --- a/modules/system/system-monitor/system-monitor.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/usr/bin/env bash -SESSION="system-monitor" - -kitty @ set-font-size -- -5 - -cleanup() { - kitty @ set-font-size -- +5 -} -trap cleanup EXIT INT TERM - -# Kill any existing session -tmux kill-session -t "$SESSION" 2>/dev/null - -# Start new tmux session with btm wrapped to kill session on exit -tmux new-session -d -s "$SESSION" -c "$HOME" "bash -c 'btm; tmux kill-session -t $SESSION'" - -# Split horizontally: right pane runs nvtop wrapped similarly -tmux split-window -h -t "$SESSION:0" -c "$HOME" "bash -c 'nvtop; tmux kill-session -t $SESSION'" - -tmux set -g status off -tmux set -g mouse on -tmux set -g focus-events on - -# Select main pane and attach -tmux select-pane -t "$SESSION:0.0" -tmux attach-session -t "$SESSION" diff --git a/users/arpit.nix b/users/arpit.nix index 0bf8e73..46b3702 100644 --- a/users/arpit.nix +++ b/users/arpit.nix @@ -68,7 +68,7 @@ security.ssh.enable = true; # System - system.bottom.enable = true; + system.btop.enable = true; system.brightnessctl.enable = true; system.htop.enable = true; system.nvtop.enable = true; |
