polybar: load-avg

This commit is contained in:
Michael Grote 2021-06-29 16:20:59 +02:00
parent 43c474a3ce
commit 42751593ff
2 changed files with 9 additions and 1 deletions

View file

@ -40,7 +40,7 @@ font-1 = unifont:fontformat=truetype:size=8:antialias=false;0
font-2 = siji:pixelsize=10;1
modules-left = i3
modules-center = popup-calendar
modules-right = nightscout_script backlight alsa memory cpu wlan eth_intern eth_dock battery powermenu
modules-right = nightscout_script backlight alsa cpu system-cpu-loadavg memory wlan eth_intern eth_dock battery powermenu
tray-position = right
tray-padding = 2
tray-background = #888888
@ -63,6 +63,11 @@ exec = /home/mg/dotfiles/polybar/popup-calendar.sh
interval = 5
click-left = /home/mg/dotfiles/polybar/popup-calendar.sh --popup &
[module/system-cpu-loadavg]
type = custom/script
exec = /home/mg/dotfiles/polybar/system-cpu-loadavg.sh
interval = 5
[module/backlight]
type = custom/script
exec=/home/mg/dotfiles/polybar/backlight.sh

View file

@ -0,0 +1,3 @@
#!/bin/sh
awk '{print $1" "$2" "$3}' < /proc/loadavg