alex-courtis / wideriver

GNU General Public License v3.0
25 stars 3 forks source link

feat(#11): custom border width for when smart gaps hides gaps #12

Closed senkowo closed 1 month ago

senkowo commented 1 month ago

issue #11

I've added a new cli argument --border-width-smart-gaps and did everything except generating the readme and man page using make doc (Running make doc results in lots of missing text in the readme, which I think is an issue with markdown-toc on my end and the hacky way I had to install it in...).

The new cli argument sets the border width for when smart gaps hides the gaps for all layouts except monocle, and has no effect if --no-smart-gaps.

Let me know what you think!

TODO:

Extras: results from checks, probably negligible, haven't resolved:

alex-courtis commented 1 month ago

This is great - using a number instead of a boolean is far more flexible!

I'll review tomorrow and sort out the small nits; the readme/man building is fragile and needs a better solution.

alex-courtis commented 1 month ago

Works beautifully, can't break it, valgrind OK.

Would you mind if we moved this new param down, underneath monocle?

  --(no-)smart-gaps
  --inner-gaps                    pixels                                0           0 <= gap size
  --outer-gaps                    pixels                                0           0 <= gap size

  --border-width                  pixels                                2           0 <= width
  --border-width-monocle          pixels                                0           0 <= width
  --border-width-smart-gaps       pixels                                0           0 <= gap width

We could also add a note to perhaps the ## GAPS section, something like:

"For a seamless experience, set this to the same value as --border-width-monocle."

alex-courtis commented 1 month ago

and make cppcheck returned 21 unused function errors that look pretty similar to

Working fine on CI and my machine, don't stress, cppcheck can behave oddly in different environments.

senkowo commented 1 month ago

Works beautifully, can't break it, valgrind OK.

Would you mind if we moved this new param down, underneath monocle?

  --(no-)smart-gaps
  --inner-gaps                    pixels                                0           0 <= gap size
  --outer-gaps                    pixels                                0           0 <= gap size

  --border-width                  pixels                                2           0 <= width
  --border-width-monocle          pixels                                0           0 <= width
  --border-width-smart-gaps       pixels                                0           0 <= gap width

We could also add a note to perhaps the ## GAPS section, something like:

"For a seamless experience, set this to the same value as --border-width-monocle."

Both sound good to me!

alex-courtis commented 1 month ago

Many thanks for your contribution! I'm using this right now...