summaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
authorProsperousPotato <ProsperousPotato@users.noreply.github.com>2025-08-15 19:23:44 +0100
committerProsperousPotato <ProsperousPotato@users.noreply.github.com>2025-08-15 19:23:44 +0100
commitbb66c2a6c1bec4bada52a5f4972d60b3148b6800 (patch)
treef98c605fd74987e60bc378c858059fdfa32684a6 /config.h
parentd011fc0158c6bfc5bd1cdc17573011cd0d14b4c0 (diff)
implement function to toggle mouse on & off
Diffstat (limited to 'config.h')
-rw-r--r--config.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/config.h b/config.h
index 0c3ec8b..b2682b6 100644
--- a/config.h
+++ b/config.h
@@ -8,16 +8,14 @@
static const unsigned int borderpx = 3; /* border pixel of windows */
static const unsigned int snap = 12; /* snap pixel */
static const int swallowfloating = 1; /* 1 means swallow floating windows by default */
+static const int mouse_default = 0; /* 1 means enable mouse by default */
static const char col_gray1[] = "#000000";
-static const char col_gray2[] = "#000000";
-static const char col_gray3[] = "#bbbbbb";
-static const char col_gray4[] = "#eeeeee";
+static const char col_gray2[] = "#bbbbbb";
static const char col_float[] = "#770000";
-static const char col_cyan[] = "#bbbbbb";
static const char *colors[][4] = {
/* fg bg border float */
- [SchemeNorm] = { col_gray3, col_gray1, col_gray2, col_gray2 },
- [SchemeSel] = { col_gray1, col_cyan, col_cyan, col_float },
+ [SchemeNorm] = { col_gray2, col_gray1, col_gray1, col_gray1 },
+ [SchemeSel] = { col_gray1, col_gray2, col_gray2, col_float },
};
/* tagging */
@@ -74,6 +72,7 @@ static const Layout layouts[] = {
static const char *termcmd[] = { TERMINAL, NULL };
#include "quicksearch.c"
+#include "togglemouse.c"
#include <X11/XF86keysym.h>
static const Key keys[] = {
/* modifier key function argument */
@@ -132,6 +131,8 @@ static const Key keys[] = {
{ MODKEY, XK_p, quicksearch, {.i = 0} },
{ MODKEY|ShiftMask, XK_p, quicksearch, {.i = 1} },
+
+ { MODKEY, XK_BackSpace, togglemouse, {0} },
};
/* button definitions */