From f5766e76615c8bd0ea13660fbd0338de6718112b Mon Sep 17 00:00:00 2001 From: David Tomaschik Date: Thu, 10 Oct 2019 20:51:04 -0700 Subject: [PATCH] Customize df output with grc. --- dotfiles/grc/conf.df | 47 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 dotfiles/grc/conf.df diff --git a/dotfiles/grc/conf.df b/dotfiles/grc/conf.df new file mode 100644 index 0000000..9d155ef --- /dev/null +++ b/dotfiles/grc/conf.df @@ -0,0 +1,47 @@ +# FS +#regexp=^.*?\s +regexp=^(\/[-\w\d.]+)+\s +colours=green,blue +====== +regexp=^Filesystem.* +colours=white +====== +# tmpfs lines +regexp=^tmpfs +colours=cyan +====== +# Size 'K' +regexp=\s\d*[.,]?\dKi?\s +colours=green +====== +# Size 'M' +regexp=\s\d*[.,]?\dMi?\s +colours=yellow +====== +# Size 'G' +regexp=\s\d*[.,]?\dGi?\s +colours=red +====== +# Size 'T' +regexp=\s\d*[.,]?\dTi?\s +colours=bold red +====== +# Mounted on +regexp=\/$|(\/[-\w\d. ]+)+$ +colours=green,bold green +====== +# Use 0-69% +regexp=\b[1-6]?[0-9]% +colours=green +====== +# Use 70-90% +regexp=[7-9][0-9]% +colours=yellow +====== +# Use 90-97 +regexp=9[0-7]% +colours=red +====== +# Use 98-100 +regexp=9[8-9]%|100% +colours=bold red