From 68fc2748ea9dde1b162a8850302f45099257fc36 Mon Sep 17 00:00:00 2001 From: elimin8 Date: Mon, 14 Nov 2022 18:08:51 +0000 Subject: [PATCH] Added config.hpp --- .gitignore | 2 +- src/config.hpp | 27 +++++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 src/config.hpp diff --git a/.gitignore b/.gitignore index 50d749b..dcc3062 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ compile_commands.json build .cache -src/config.hpp +#src/config.hpp diff --git a/src/config.hpp b/src/config.hpp new file mode 100644 index 0000000..5e4adcc --- /dev/null +++ b/src/config.hpp @@ -0,0 +1,27 @@ +// somebar - dwl bar +// See LICENSE file for copyright and license details. + +#pragma once +#include "common.hpp" + +constexpr bool topbar = true; + +constexpr int paddingX = 10; +constexpr int paddingY = 3; + +// See https://docs.gtk.org/Pango/type_func.FontDescription.from_string.html +constexpr const char* font = "Monospace 15"; + +constexpr ColorScheme colorInactive = {Color(0xbb, 0xbb, 0xbb), Color(0x22, 0x22, 0x22)}; +constexpr ColorScheme colorActive = {Color(0xee, 0xee, 0xee), Color(0xea, 0x82, 0x17)}; +constexpr const char* termcmd[] = {"foot", nullptr}; + +static std::vector tagNames = { + "1", "2", "3", + "4", "5", "6", + "7", "8", "9", +}; + +constexpr Button buttons[] = { + { ClkStatusText, BTN_RIGHT, spawn, {.v = termcmd} }, +};