summaryrefslogtreecommitdiff
path: root/dwl/config.h
diff options
context:
space:
mode:
authortslil clingman <tslil@posteo.de>2023-10-21 16:02:23 +0200
committertslil clingman <tslil@posteo.de>2023-10-21 16:02:23 +0200
commit4e7f0d014f4b1ffc2b0a302e64c19e440c6bbe68 (patch)
tree16787ca463e90aa5e872322d9229c8f84b7e7ea9 /dwl/config.h
parent8607fd0b5d3cb9efcd4bd805321128713823271d (diff)
[dwl] merge changes from upstream
Diffstat (limited to 'dwl/config.h')
-rw-r--r--dwl/config.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/dwl/config.h b/dwl/config.h
index 57da994..0b5e03f 100644
--- a/dwl/config.h
+++ b/dwl/config.h
@@ -1,3 +1,11 @@
+static int log_level = WLR_ERROR;
+
+/* 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 */
@@ -6,11 +14,12 @@ static const float rootcolor[] = {0.3, 0.3, 0.3, 1.0};
static const unsigned int gap = 10; /* inner gap between windows */
static const float bordercolor[] = {0.266, 0.266, 0.266, 1.0}; // 44 44 44
static const float focuscolor[] = {1.000, 0.549, 0.000, 1.0}; // ff 8c 00
+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};
/* tagging */
-#define tagcount 8
+#define TAGCOUNT 8
static const Rule rules[] = {
/* app_id title tags mask isfloating monitor keep_focus */