Added gaming mode.

This disables dwm's handling of modifier combos, so you can use them in
game without conflict.
This commit is contained in:
sheldonmlee
2021-07-07 20:35:50 +08:00
parent 1b5d39f394
commit 2f0b477545
2 changed files with 53 additions and 10 deletions
+13 -4
View File
@@ -87,10 +87,13 @@ static const char *termcmd[] = { "alacritty", NULL };
static const char *browsercmd[] = { "firefox", NULL };
static const char *slockcmd[] = { "slock", NULL };
void focusmaster(const Arg* arg)
{
focus(NULL);
}
/* functions */
void focusmaster(const Arg* arg);
/* variables */
static int gamingmodmask = MODKEY; /* mod keys to disable when gaming */
static Key togglegamingkey = { MODKEY|ControlMask, XK_g, togglegaming, {0} };
static Key keys[] = {
/* modifier key function argument */
@@ -151,3 +154,9 @@ static Button buttons[] = {
{ ClkTagBar, MODKEY, Button3, toggletag, {0} },
};
void
focusmaster(const Arg* arg)
{
focus(NULL);
}