diff options
| author | Christian <[email protected]> | 2026-01-29 14:35:15 -0600 |
|---|---|---|
| committer | Christian <[email protected]> | 2026-01-29 14:35:15 -0600 |
| commit | 25483a5b8960525447e3f81e86926508731c8fa6 (patch) | |
| tree | 26fcc6c0561723c4cb4c022e038fd4a4666b24cb /modules/home | |
| parent | 6f2729c673d7911c37926a8f958124b7d028b8cc (diff) | |
XMobar
Diffstat (limited to 'modules/home')
| -rw-r--r-- | modules/home/christian.nix | 7 | ||||
| -rw-r--r-- | modules/home/xmobar/xmobarrc | 26 |
2 files changed, 32 insertions, 1 deletions
diff --git a/modules/home/christian.nix b/modules/home/christian.nix index 9c35e07..b7bbe3d 100644 --- a/modules/home/christian.nix +++ b/modules/home/christian.nix @@ -49,7 +49,12 @@ ]; }; }; - + + programs.xmobar = { + enable = true; + extraConfig = builtins.readFile ./xmobar/xmobarrc; + }; + programs.home-manager.enable = true; } diff --git a/modules/home/xmobar/xmobarrc b/modules/home/xmobar/xmobarrc new file mode 100644 index 0000000..3185112 --- /dev/null +++ b/modules/home/xmobar/xmobarrc @@ -0,0 +1,26 @@ +Config + { font = "Monospace" + , borderColor = "#d0d0d0" + , border = FullB + , borderWidth = 1 + , bgColor = "#222" + , fgColor = "grey" + , position = TopH 30 + , commands = + [ Run Cpu ["-t", "cpu: <fc=#4eb4fa><bar> <total>%</fc>"] 10 + , Run Network "wlan0" ["-S", "True", "-t", "wlan: <fc=#4eb4fa><rx></fc>/<fc=#4eb4fa><tx></fc>"] 10 + , Run Memory ["-t","mem: <fc=#4eb4fa><usedbar> <usedratio>%</fc>"] 10 + , Run Date "date: <fc=#4eb4fa>%a %d %b %Y %I:%M:%S %p </fc>" "date" 10 + , Run Battery + ["-t", "bat: <leftbar> <left> <watts>", + "-L", "10", "-H", "80", "-S", "True", + "-l", "red", "-n", "#4eb4fa", "-h", "green", + "--", + "-L", "-15", "-H", "-5", + "-l", "red", "-m", "#4eb4fa", "-h", "green"] + 600 + ] + , sepChar = "%" + , alignSep = "}{" + , template = " %battery% | %cpu% | %memory% | %wlan0% }{%date% " +} |
