Skip to content

graph bar width enhancement #8

@wryan67

Description

@wryan67

Enhancement request: It would be nice to have a -w (--width) argument to manually set the width of the graph bar to n characters. When piping the output of pydf to grep, the graph bar becomes very narrow, so this option would let us widen the graph bar when using pydf in conjunction with grep.

Example from Ubuntu, the graph bar is only 5 characters wide, 7 including the square brackets. There's plenty of room on my terminal for a wider graph bar. I would like to use the option to set the width to 15-20 characters, including the square brackets.

$ pydf  | egrep -v "/loop|/snap"
Filesystem   Size  Used Avail  Use%         Mounted on                         
/dev/sda6    107G   39G   64G  36.4 [##...] /                                  
/dev/sda1   3764M  193M 3360M   5.1 [.....] /boot                              
/dev/sdb1   2015G   23G 1889G   1.2 [.....] /home                              
kirk        2748G 1962G  786G  71.4 [####.] /kirk                              
picard      5545G 3181G 2363G  57.4 [###..] /picard                            
spock       5542G 3481G 2062G  62.8 [###..] /spock                             

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions