polybar: load-avg
This commit is contained in:
parent
43c474a3ce
commit
42751593ff
2 changed files with 9 additions and 1 deletions
|
@ -40,7 +40,7 @@ font-1 = unifont:fontformat=truetype:size=8:antialias=false;0
|
||||||
font-2 = siji:pixelsize=10;1
|
font-2 = siji:pixelsize=10;1
|
||||||
modules-left = i3
|
modules-left = i3
|
||||||
modules-center = popup-calendar
|
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-position = right
|
||||||
tray-padding = 2
|
tray-padding = 2
|
||||||
tray-background = #888888
|
tray-background = #888888
|
||||||
|
@ -63,6 +63,11 @@ exec = /home/mg/dotfiles/polybar/popup-calendar.sh
|
||||||
interval = 5
|
interval = 5
|
||||||
click-left = /home/mg/dotfiles/polybar/popup-calendar.sh --popup &
|
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]
|
[module/backlight]
|
||||||
type = custom/script
|
type = custom/script
|
||||||
exec=/home/mg/dotfiles/polybar/backlight.sh
|
exec=/home/mg/dotfiles/polybar/backlight.sh
|
||||||
|
|
3
polybar/system-cpu-loadavg.sh
Normal file
3
polybar/system-cpu-loadavg.sh
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
awk '{print $1" "$2" "$3}' < /proc/loadavg
|
Loading…
Reference in a new issue