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

feature request: stay "open" and autorefresh like htop #141

Open
c33s opened this issue Oct 19, 2021 · 8 comments · May be fixed by #146
Open

feature request: stay "open" and autorefresh like htop #141

c33s opened this issue Oct 19, 2021 · 8 comments · May be fixed by #146
Labels
enhancement New feature or request

Comments

@c33s
Copy link

c33s commented Oct 19, 2021

it would be awesome duf beeing able to stay open and auto refresh its output in a customizable interval.

so i could "monitor" which partition gets full while for example upgrading the system (very useful for systems with extra small partitions to keep the image small).

@c33s
Copy link
Author

c33s commented Oct 20, 2021

it works quite ok with watch -n 1 duf but the sweet ### bars are gone.

@jrwren
Copy link

jrwren commented Oct 23, 2021

You can get the ### by telling duf the width to use.

watch duf -width $COLUMNS

When run through watch, wuf thinks that its output isn't a terminal and so defaults to 80column width which excludes the ### bars.

Now if only there were a way to force color the same way.

@jrwren
Copy link

jrwren commented Oct 23, 2021

I just put up PR #141 with which you can force color. It requires you to use watch -c to interpret the color.

watch -c duf -C -width $COLUMNS works well for me.

@mrngm
Copy link
Contributor

mrngm commented Oct 31, 2021

I've added #146 that implements the requested feature. If there's anything missing, or could be improved, let me know!

@c33s
Copy link
Author

c33s commented Oct 31, 2021

awesome, will test it as soon as you release it. have you planned a release in the next time (have seen that the last release was quite a while ago)?

@c33s
Copy link
Author

c33s commented Oct 31, 2021

@mrngm a config file could be handsome. i would prefer to use duf similar to htop and dont have to remember command line switches. so a config where i can define that if i call duf it is always with --refresh=1 would be helpful.

@jrwren
Copy link

jrwren commented Oct 31, 2021

@mrngm a config file could be handsome. i would prefer to use duf similar to htop and dont have to remember command line switches. so a config where i can define that if i call duf it is always with --refresh=1 would be helpful.

Your shell alias can do this. Add alias duf="duf --refresh=1" to your .bashrc file.

@mrngm
Copy link
Contributor

mrngm commented Oct 31, 2021

@mrngm a config file could be handsome. i would prefer to use duf similar to htop and dont have to remember command line switches. so a config where i can define that if i call duf it is always with --refresh=1 would be helpful.

That could be handy indeed, but that is outside the scope of this issue. Besides, I'm just a mere contributor, not the project maintainer :)

@muesli muesli added the enhancement New feature or request label Feb 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants