diff --git a/polybar/config b/polybar/config index c660e65..bdbac6c 100644 --- a/polybar/config +++ b/polybar/config @@ -39,7 +39,7 @@ font-0 = fixed:pixelsize=10;1 font-1 = unifont:fontformat=truetype:size=8:antialias=false;0 font-2 = siji:pixelsize=10;1 modules-left = i3 -modules-right = alsa nightscout_script backlight cpu system-cpu-loadavg memory wlan eth_intern eth_dock battery popup-calendar powermenu +modules-right = alsa nightscout_script backlight cpu system-cpu-loadavg memory df battery time powermenu modules-center = tray-position = right tray-padding = 2 @@ -58,6 +58,20 @@ interval = 10 format-prefix = "LAVG " format-prefix-foreground = ${colors.foreground-alt} +[module/time] +type = custom/script +exec = /home/mg/dotfiles/polybar/scripte/time.sh +interval = 10 +format-prefix = "DATE " +format-prefix-foreground = ${colors.foreground-alt} + +[module/df] +type = custom/script +exec = /home/mg/dotfiles/polybar/scripte/df.sh +interval = 10 +format-prefix = "DISK " +format-prefix-foreground = ${colors.foreground-alt} + [module/backlight] type = custom/script exec = /usr/bin/brightnessctl get diff --git a/polybar/scripte/system-cpu-loadavg.sh b/polybar/scripte/system-cpu-loadavg.sh index c96bf78..944ff49 100755 --- a/polybar/scripte/system-cpu-loadavg.sh +++ b/polybar/scripte/system-cpu-loadavg.sh @@ -1,3 +1,3 @@ #!/bin/sh -awk '{print $1" "$2" "$3}' < /proc/loadavg +awk '{print $1}' < /proc/loadavg