Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

graph bar width enhancement #8

Open
wryan67 opened this issue Apr 22, 2023 · 0 comments
Open

graph bar width enhancement #8

wryan67 opened this issue Apr 22, 2023 · 0 comments

Comments

@wryan67
Copy link

wryan67 commented Apr 22, 2023

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                             
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant