diff options
author | LuXu <oliver_lew@outlook.com> | 2021-11-04 12:20:28 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-04 04:20:28 +0000 |
commit | 36f42081d0d3e6f401e18bf84f6796ca8f8bcfb5 (patch) | |
tree | 0cca3a0880cd47fb1e21d8d16ff291e83337ec20 /config.def.h | |
parent | abf316a066ed19e2f6c1a38c7faaa594de7287c4 (diff) |
make width of navigation area configurable (#155)
this allows users to configure navigation width from config.h. it also
allows disabling the navigation function entirely by using a 0 width.
one extra functionality this adds is being able to define an absolute
width (in pixels) instead of just percentage via `NAV_IS_REL`.
Co-authored-by: NRK <nrk@disroot.org>
Diffstat (limited to 'config.def.h')
-rw-r--r-- | config.def.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/config.def.h b/config.def.h index 75c5eed..1ccf5a4 100644 --- a/config.def.h +++ b/config.def.h @@ -173,6 +173,11 @@ static const button_t buttons[] = { { 0, 5, g_zoom, -1 }, }; +/* true means NAV_WIDTH is relative (33%), false means absolute (33 pixels) */ +static const bool NAV_IS_REL = true; +/* width of navigation area, 0 disables cursor navigation, */ +static const unsigned int NAV_WIDTH = 33; + /* mouse cursor on left, middle and right part of the window */ static const cursor_t imgcursor[3] = { CURSOR_LEFT, CURSOR_ARROW, CURSOR_RIGHT |