summaryrefslogtreecommitdiff
path: root/config.def.h
diff options
context:
space:
mode:
authorLeonardo Hernández Hernández <leohdz172@proton.me>2023-10-09 11:45:51 -0600
committerLeonardo Hernández Hernández <leohdz172@proton.me>2023-10-09 11:45:51 -0600
commitb299e01e44d0277a254ba55a030a6d205133c50b (patch)
treee2c76e2f00a3da66d5cc5398cd83f6293b8857b2 /config.def.h
parent1333f8cc6ecbe8b1d4d73c4e3453997d0e5d84f1 (diff)
parent6d9a915fb60d38ebf0ae897fbd6affde39ed8d77 (diff)
Merge remote-tracking branch 'upstream/main' into wlroots-next
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h18
1 files changed, 13 insertions, 5 deletions
diff --git a/config.def.h b/config.def.h
index 1677f6f..4e30885 100644
--- a/config.def.h
+++ b/config.def.h
@@ -1,15 +1,23 @@
+/* Taken from https://github.com/djpohly/dwl/issues/466 */
+#define COLOR(hex) { ((hex >> 24) & 0xFF) / 255.0f, \
+ ((hex >> 16) & 0xFF) / 255.0f, \
+ ((hex >> 8) & 0xFF) / 255.0f, \
+ (hex & 0xFF) / 255.0f }
/* appearance */
static const int sloppyfocus = 1; /* focus follows mouse */
static const int bypass_surface_visibility = 0; /* 1 means idle inhibitors will disable idle tracking even if it's surface isn't visible */
static const unsigned int borderpx = 1; /* border pixel of windows */
-static const float bordercolor[] = {0.5, 0.5, 0.5, 1.0};
-static const float focuscolor[] = {1.0, 0.0, 0.0, 1.0};
+static const float bordercolor[] = COLOR(0x444444ff);
+static const float focuscolor[] = COLOR(0x005577ff);
+static const float urgentcolor[] = COLOR(0xff0000ff);
/* To conform the xdg-protocol, set the alpha to zero to restore the old behavior */
-static const float fullscreen_bg[] = {0.1, 0.1, 0.1, 1.0};
+static const float fullscreen_bg[] = {0.1, 0.1, 0.1, 1.0}; /* You can also use glsl colors */
-/* tagging - tagcount must be no greater than 31 */
+/* tagging - TAGCOUNT must be no greater than 31 */
#define TAGCOUNT (9)
-static const int tagcount = TAGCOUNT;
+
+/* logging */
+static int log_level = WLR_ERROR;
static const Rule rules[] = {
/* app_id title tags mask isfloating monitor */