From 4ec9e2622898de61fb2f2904f3f7e73672821f01 Mon Sep 17 00:00:00 2001 From: Joachim Nielandt Date: Mon, 15 Nov 2021 09:50:52 +0100 Subject: [PATCH] Added df to polybar. --- dot_dotfiles/polybar/config.tmpl | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/dot_dotfiles/polybar/config.tmpl b/dot_dotfiles/polybar/config.tmpl index 498d6d2..406dccd 100644 --- a/dot_dotfiles/polybar/config.tmpl +++ b/dot_dotfiles/polybar/config.tmpl @@ -205,13 +205,22 @@ format-prefix-foreground = ${colors.light0} [module/filesystem] type = internal/fs interval = 25 + ; mounts differ depending on the machine +; need to include comments in each of the options: template swallows newlines {{- if eq .chezmoi.hostname "dome" }} +; mount root mount-0 = / {{ else if eq .chezmoi.hostname "carbonraptor" -}} +; mount root mount-0 = / +; mount ext4 partition for non-btrfs files mount-1 = /mnt/ext4 +{{ else if eq .chezmoi.hostname "jnielandt" -}} +; only root +mount-0 = / {{- end }} + ;label-mounted = %{F#0a81f5}%mountpoint%%{F-} %percentage_used%% ;#b8bb26 label-mounted = %{F#b8bb26}%mountpoint%%{F-} %percentage_used%% @@ -389,14 +398,14 @@ label = %percentage_used%% [module/updates-pacman] type = custom/script format-prefix=" " -format-prefix-foreground = ${colors.bright_orange} +format-prefix-foreground = ${colors.bright_yellow} exec = ~/.dotfiles/polybar/polybar-scripts/updates-pacman/updates-pacman.sh interval = 600 [module/updates-aurhelper] type = custom/script format-prefix=" " -format-prefix-foreground = ${colors.bright_orange} +format-prefix-foreground = ${colors.bright_yellow} exec = ~/.dotfiles/polybar/polybar-scripts/updates-aurhelper/updates-aurhelper.sh interval = 600