diff options
| author | tslil clingman <tslil@posteo.de> | 2023-02-12 11:42:31 +0100 |
|---|---|---|
| committer | tslil clingman <tslil@posteo.de> | 2023-02-12 12:00:13 +0100 |
| commit | e9d8f093021dc416a5c790e2161d047426db2592 (patch) | |
| tree | d79ef21c1bbf5ce642382e5b95d9afc282dc8a09 /somebar | |
| parent | 85afc067bc8adeaee9269bfbc8cb27230bd78896 (diff) | |
[dwl, somebar] add gaps
also allow dwl to match on empty titles
Diffstat (limited to 'somebar')
| -rw-r--r-- | somebar/src/bar.cpp | 2 | ||||
| -rw-r--r-- | somebar/src/config.hpp | 31 |
2 files changed, 32 insertions, 1 deletions
diff --git a/somebar/src/bar.cpp b/somebar/src/bar.cpp index 3866dbb..38164cd 100644 --- a/somebar/src/bar.cpp +++ b/somebar/src/bar.cpp @@ -120,7 +120,7 @@ void Bar::show(wl_output* output) auto barSize = barfont.height + paddingY * 2; zwlr_layer_surface_v1_set_size(_layerSurface.get(), 0, barSize); - zwlr_layer_surface_v1_set_exclusive_zone(_layerSurface.get(), barSize); + zwlr_layer_surface_v1_set_exclusive_zone(_layerSurface.get(), barSize + gapY); wl_surface_commit(_surface.get()); } diff --git a/somebar/src/config.hpp b/somebar/src/config.hpp new file mode 100644 index 0000000..caf0178 --- /dev/null +++ b/somebar/src/config.hpp @@ -0,0 +1,31 @@ +// somebar - dwl bar +// See LICENSE file for copyright and license details. + +#pragma once +#include "common.hpp" + +constexpr bool topbar = false; + +constexpr int paddingX = 10; +constexpr int paddingY = 3; +constexpr int gapY = 3; + +// See https://docs.gtk.org/Pango/type_func.FontDescription.from_string.html +constexpr const char* font = "BmPlus IBM VGA 9x16 8"; + +constexpr Color orange = Color(0xff, 0x8c, 0x00); +constexpr Color gray2 = Color(0x00, 0x00, 0x00); + +constexpr ColorScheme colorInactive = {orange, gray2}; +constexpr ColorScheme colorActive = {gray2, orange}; +constexpr const char* termcmd[] = {"foot", nullptr}; + +static std::vector<std::string> tagNames = { + "F", "U", "H", + ".", "V", "L", + "O", "M" +}; + +constexpr Button buttons[] = { + { ClkStatusText, BTN_RIGHT, spawn, {.v = termcmd} }, +}; |
