From ec5b6452357bb18111c535959df1a819ddc3ccc6 Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Sun, 10 Jul 2022 12:02:51 +0200 Subject: [PATCH] =?UTF-8?q?polybar:=20df,=20lavg,=20und=20aufger=C3=A4umt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- polybar/config | 16 +++++++++++++++- polybar/scripte/system-cpu-loadavg.sh | 2 +- 2 files changed, 16 insertions(+), 2 deletions(-) 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