From 8f06f02793c2dd411ff97ab5cd17a31f9f014baf Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Thu, 21 Jul 2022 15:40:45 +0200 Subject: [PATCH] polybar: df ersetzt --- polybar/conf.d/mod_df | 11 +++++++---- polybar/config | 2 +- scripts/polybar/df.sh | 3 --- 3 files changed, 8 insertions(+), 8 deletions(-) delete mode 100755 scripts/polybar/df.sh diff --git a/polybar/conf.d/mod_df b/polybar/conf.d/mod_df index 6d2dbd9..b395021 100644 --- a/polybar/conf.d/mod_df +++ b/polybar/conf.d/mod_df @@ -1,4 +1,7 @@ -[module/df] -inherit = module/defaults -exec = ~/dotfiles/scripts/polybar/df.sh -format-prefix = "DU " +[module/filesystem] +type = internal/fs +mount-0 = / +label-mounted = %percentage_used%% +format-mounted = +format-mounted-prefix = "DU " +format-mounted-prefix-foreground =${colors.foreground-alt} diff --git a/polybar/config b/polybar/config index fe1cf53..a5ef4c4 100644 --- a/polybar/config +++ b/polybar/config @@ -25,7 +25,7 @@ margin-bottom = 5 inherit = bar/defaults modules-left = i3 modules-center = -modules-right = backlight cpu system-cpu-loadavg memory df battery +modules-right = backlight cpu system-cpu-loadavg memory filesystem battery tray-position = right tray-padding = 2 diff --git a/scripts/polybar/df.sh b/scripts/polybar/df.sh deleted file mode 100755 index eed74a0..0000000 --- a/scripts/polybar/df.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash - -df -h / | awk '{print $5}' | tail -n1