martanne / dvtm

dvtm brings the concept of tiling window management, popularized by X11-window managers like dwm to the console. As a console window manager it tries to make it easy to work with multiple console based programs.
MIT License
858 stars 105 forks source link

[low priority] Use prettier tag symbols #46

Open ghost opened 7 years ago

ghost commented 7 years ago

What about using box drawing characters for tag symbols? This make them harder to type, but much prettier onscreen:

We are totally sure that these characters are supported, as they are those already composing the interface.

We can also add the character associated with the keybinding next to them, so that user can discover these keybindings by cycling through the layouts.

If you want those I can make a patch, otherwise it is OK to close the issue.

rpmohn commented 7 years ago

This is awesome! In retrospect, it's the obvious choice since box chars are already in use for the other lines, as you say. I'm incorporating it into my configs, thanks! Here's a current shot of my upper-left-hand status bar. 1, 4, 8, and 9 all have windows tagged to them. 1 and 4 are currently being viewed. Default tile right layout.

my current status bar

martanne commented 7 years ago

Recently somebody complained via email that the used defaults take up too much space. It was mentioned that tag names should be separated by | rather than enclosed by [ and ].

In general I'm in favor of making these visual representation more configurable. As for using these Unicode symbols, "mixing" them with the plain ASCII ones (e.g. the status bar content delimiters) looks a bit strange to my eye. If we make them the default, the adjacent ASCII ones should probably be removed?

ghost commented 7 years ago

I think I get it. Here they are:

2016-12-25-213325_1366x768_scrot

Not the same height.

We can then replace "[ %s ]" by "│ %s ":

2016-12-25-214119_1366x768_scrot

Which looks clean and good to me, but then has the left delimiter highlighted rather than only the tag. Maybe this would be the occasion to introduce a delimiter char or string: use "%s" TAG_SYMBOL, DELIMITER ....

Or we can also use "│ %s |":

2016-12-25-214650_1366x768_scrot

Or just spaces " %s ":

2016-12-25-214910_1366x768_scrot

It is all up to your preferences, as one can edit config.h to fit his/her tastes.

[EDIT]: closed by mistake, sorry.