duf icon indicating copy to clipboard operation
duf copied to clipboard

Unicode print style activated as default with too much colored area

Open Daryes opened this issue 3 months ago • 11 comments

Hello, Thanks for the new version. It seems it has some slight troubles with the colors : for an unknown reason, the unicode print style is now activated by default with duf v0.9.0. Same machines, the output uses the ascii style without color as default when switching back to v0.8.1,

By itself it wouldn't be much of an issue if it wasn't also activating the color mode, which for the unicode style, will use a colored background for the usage bars, leaving a very large colored area Example :

# same with : duf --style unicode
$ duf
Image Honestly, the colored area is too much.

By comparison, using the ascii style :

$ duf --style ascii
Image

Using Putty with the Window/Translation/Remote character set to UTF8

Daryes avatar Sep 08 '25 10:09 Daryes

Hello, Thanks for the new version. It seems it has some slight troubles with the colors : for an unknown reason, the unicode print style is now activated by default with duf v0.9.0. Same machines, the output uses the ascii style without color as default when switching back to v0.8.1,

Actually there hasn't been a unicode style for the bars in previous versions, it was only used for the frames. So, this is new in v0.9.0 and why you haven't seen it before.

By itself it wouldn't be much of an issue if it wasn't also activating the color mode, which for the unicode style, will use a colored background for the usage bars, leaving a very large colored area Example :

This indeed looks a bit weird with your font settings. Just curious, which font do you use?

The idea was to have it look something like this:

Image

We'll probably have to make the bars configurable with a flag, so you can adjust their styling separately.

muesli avatar Sep 08 '25 20:09 muesli

I am sorry to say this, but I really dislike this new bar design. Is it possible to have bars displayed as they where before? I do like unicode style for frames. Tia.

f73 avatar Sep 08 '25 20:09 f73

I am sorry to say this, but I really dislike this new bar design. Is it possible to have bars displayed as they where before? I do like unicode style for frames. Tia.

No, but as I said, we could make them configurable.

muesli avatar Sep 08 '25 20:09 muesli

Hello, The font is fixedsys, AFAIK, it doesn't have all the Unicode and truetype capabilities. Hence the different result, I suppose. The --theme parameter has also no effect.

This said, related to the final result, it will be affected by both the font choice but also the default environment and the client. You can see the final color scheme is very vivid for me. Having the colored background removed would be better in all cases.

Actually there hasn't been a unicode style for the bars in previous versions, it was only used for the frames. So, this is new in v0.9.0 and why you haven't seen it before.

You're right. Given the differences limited to the frames only, I didn't saw it. Too subtle at the moment it seems.

As the behavior is now different, would it be possible to have the following changes :

  • a new parameter to toggle the usage of the colors (or a new value for the --theme parameter)

  • the possibility to use an environment variable to store DUF command line arguments and defining a default configuration, without the need of a file. (for example, DUF_CONFIGURATION or DUF_SETTINGS or anything suitable) Aliases are possible, but they are limited to the current user. An environment variable can be set globally at the system level.

  • a new parameter --ignore-env (or similar with also an alias using environment in full) to ignore the new environment variable. This could be set as a shell alias when the env settings aren't suitable for an user, or a one-time usage for a particular situation.

These together should cover all the situations and any future changes, I think.

Daryes avatar Sep 09 '25 07:09 Daryes

I am sorry to say this, but I really dislike this new bar design. Is it possible to have bars displayed as they where before? I do like unicode style for frames. Tia.

No, but as I said, we could make them configurable.

That would be helpful. The coloured bars looks 'crowded' (the usage bar area, personal opinion).

alaymari avatar Sep 09 '25 12:09 alaymari

I am sorry to say this, but I really dislike this new bar design. Is it possible to have bars displayed as they where before? I do like unicode style for frames. Tia.

No, but as I said, we could make them configurable.

Just a side note (and I could make it a separate issue): it would be nice to have small different line colors for better separation and distinction of each line. Could also be an accessibility issue. But not sure about this topic. Nevertheless, this amazing tool just replaced my df command.

SyseAdmine avatar Sep 09 '25 13:09 SyseAdmine

Another vote for -bar ascii 😉

doterik avatar Sep 11 '25 12:09 doterik

I have to say the same. It's ugly now! Can we please have the ascii bars back? If not, the option -bar ascii would be nice. Thank you for duf.

PS: adding -style ascii for now cause it's unbearable ;)

HAL9081 avatar Sep 26 '25 11:09 HAL9081

One or a few are the best (athletes, apps, cars), the rest are somewhere in the middle and some, ore one, are the worst. The worst example I've ever come across (until now) was https://github.com/Hofknecht/SystemTrayMenu/issues/337 (changed at last), couldn't stand it, of course I created my own icon. Now duf has ended up at the very bottom of the list, so terribly hideously ugly that I no longer have it in my automatic startup or use it otherwise. Changing the style doesn't help, the frame then becomes ugly as hell. The current bar is almost worse than the old icon for SystemTrayMenu, although the colors are just as hideously ugly. You mentioned early on that you could create a new parameter/option, time is running out, do you need help? Why destroy an otherwise nice tool, far, far, far from necessary, but previously neat and tidy.

doterik avatar Sep 29 '25 21:09 doterik

Obviously having the ascii bar is ideal, but if you just want to have the bar gone, I've found -width 74 seems to get rid of it…

Edit: not great if you don't -hide special :P

57194 avatar Sep 30 '25 16:09 57194

[…] Why destroy an otherwise nice tool, far, far, far from necessary, but previously neat and tidy.

@doterik: You can also do like go install github.com/muesli/[email protected] and just never update. 😬 Though I found I need to manually specify a wide -width to get it to actually show the bar sometimes.

57194 avatar Sep 30 '25 16:09 57194