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