Added new disk display mode called 'perc'

This commit is contained in:
Dylan 2016-03-26 01:02:01 +11:00
parent 1463b8f336
commit ab356239f3
4 changed files with 7 additions and 3 deletions

3
1.6.md
View File

@ -30,6 +30,9 @@ Thanks to the following people for contributing this release.
**Song**<br \>
- [ MPD ] Fixed function when mpd is running on another PC and not your own.
**Disk**<br \>
- Added new display option `perc` to display just the percentage with the progress bar.
**Uptime**<br \>
- [ OSX ] Performance improvements. **[@iandrewt](https://github.com/iandrewt)**

View File

@ -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:

View File

@ -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:

View File

@ -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