diff options
Diffstat (limited to 'home')
| -rw-r--r-- | home/polybar.nix | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/home/polybar.nix b/home/polybar.nix index bc3211a..b1c54ba 100644 --- a/home/polybar.nix +++ b/home/polybar.nix @@ -56,7 +56,7 @@ module.margin = 1; modules = { - left = "cpu memory music"; + left = "stat music"; center = "i3"; right = "wlan eth filesystem keyboard xkeyboard pulseaudio date"; }; @@ -92,6 +92,20 @@ }; }; + "module/stat" = { + type = "custom/script"; + + exec = "vmstat -n 1 | awk '{printf \"%.0f%% %.2f GiB\\\\n\", 100-$15, (31998756-($4+$5+$6))/1024/1024};fflush()'"; + tail = true; + + format = { + prefix = { + text = " "; + foreground = "#${c.accent}"; + }; + }; + }; + "module/i3" = { type = "internal/i3"; |