From ab356239f3a3f17207717a6bcbcba618a0b20a70 Mon Sep 17 00:00:00 2001 From: Dylan Date: Sat, 26 Mar 2016 01:02:01 +1100 Subject: [PATCH] Added new disk display mode called 'perc' --- 1.6.md | 3 +++ README.md | 2 +- neofetch | 3 ++- neofetch.1 | 2 +- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/1.6.md b/1.6.md index 61e4a027..d630cc9b 100644 --- a/1.6.md +++ b/1.6.md @@ -30,6 +30,9 @@ Thanks to the following people for contributing this release. **Song**
- [ MPD ] Fixed function when mpd is running on another PC and not your own. +**Disk**
+- Added new display option `perc` to display just the percentage with the progress bar. + **Uptime**
- [ OSX ] Performance improvements. **[@iandrewt](https://github.com/iandrewt)** diff --git a/README.md b/README.md index c0741d75..8b7be8b1 100644 --- a/README.md +++ b/README.md @@ -347,7 +347,7 @@ alias fetch2="fetch \ --battery_display mode Which way should the battery progress bar be added Takes bar, infobar, barinfo --disk_display mode Which way should the disk progress bar be added - Takes bar, infobar, barinfo + Takes bar, infobar, barinfo, perc Image: diff --git a/neofetch b/neofetch index b632efd3..c7bd25dd 100755 --- a/neofetch +++ b/neofetch @@ -1537,6 +1537,7 @@ getdisk () { "bar") disk="$(bar "${disk_used/'.'*}" "${disk_total/'.'*}")" ;; "infobar") disk+=" $(bar "${disk_used/'.'*}" "${disk_total/'.'*}")" ;; "barinfo") disk="$(bar "${disk_used/'.'*}" "${disk_total/'.'*}") $disk" ;; + "perc") disk="$disk_total_per $(bar "${disk_used/'.'*}" "${disk_total/'.'*}")" ;; esac } @@ -2554,7 +2555,7 @@ usage () { cat << EOF --battery_display mode Which way should the battery progress bar be added Takes bar, infobar, barinfo --disk_display mode Which way should the disk progress bar be added - Takes bar, infobar, barinfo + Takes bar, infobar, barinfo, perc Image: diff --git a/neofetch.1 b/neofetch.1 index b2132234..c3ab71c9 100644 --- a/neofetch.1 +++ b/neofetch.1 @@ -151,7 +151,7 @@ Takes: bar, infobar, barinfo .B \--disk_display mode Which way should the disk progress bar be added .br -Takes: bar, infobar, barinfo +Takes: bar, infobar, barinfo, perc .SH IMAGE .TP