Polybar System Monitor Custom Script
Jun 24, 2019
33 seconds
This is a simple bash-script for polybar that displays system usage of the cpu, ram, swap and gpu(nvidia) with the use of bars.
dependencies:
- nvidia-smi (only if you want to use the GPU-module
usage/installation:
- download system-mon.tar.gz
- place the script files in “.config/polybar”
- add scripts to polybar as custom modules:
[module/cpu]
type = custom/script
exec = .config/polybar/cpu.sh
interval = 3
[module/memory]
type = custom/script
exec = .config/polybar/memory.sh
interval = 3
[module/swap]
type = custom/script
exec = .config/polybar/swap.sh
interval = 3
[module/gpu]
type = custom/script
exec = .config/polybar/gpu.sh
interval = 3
- add module to bar by putting cpu,memory,swap and gpu in either “modules-left”, “modules-center” or “modules-right”
- add “Unifont” as a font in your polybar configs
font-9 = Unifont
(replace 9 with the next unused number) - enjoy