Change TD on KD
This commit is contained in:
parent
66a7223541
commit
b745273428
|
@ -51,7 +51,7 @@ static const Rule rules[] = {
|
||||||
{ "thunderbird", NULL, NULL, 1 << 2, 0, -1 },
|
{ "thunderbird", NULL, NULL, 1 << 2, 0, -1 },
|
||||||
{ "KeePassXC", NULL, NULL, 1 << 2, 0, -1 },
|
{ "KeePassXC", NULL, NULL, 1 << 2, 0, -1 },
|
||||||
// ----- 4 -----
|
// ----- 4 -----
|
||||||
{ "TelegramDesktop", NULL, NULL, 1 << 3, 0, -1 },
|
{ "KotatogramDesktop", NULL, NULL, 1 << 3, 0, -1 },
|
||||||
{ "discord", NULL, NULL, 1 << 3, 0, -1 },
|
{ "discord", NULL, NULL, 1 << 3, 0, -1 },
|
||||||
// ----- 5 -----
|
// ----- 5 -----
|
||||||
{ "Steam", NULL, NULL, 1 << 4, 0, -1 },
|
{ "Steam", NULL, NULL, 1 << 4, 0, -1 },
|
||||||
|
|
14
config.h
14
config.h
|
@ -51,7 +51,7 @@ static const Rule rules[] = {
|
||||||
{ "thunderbird", NULL, NULL, 1 << 2, 0, -1 },
|
{ "thunderbird", NULL, NULL, 1 << 2, 0, -1 },
|
||||||
{ "KeePassXC", NULL, NULL, 1 << 2, 0, -1 },
|
{ "KeePassXC", NULL, NULL, 1 << 2, 0, -1 },
|
||||||
// ----- 4 -----
|
// ----- 4 -----
|
||||||
{ "TelegramDesktop", NULL, NULL, 1 << 3, 0, -1 },
|
{ "KotatogramDesktop", NULL, NULL, 1 << 3, 0, -1 },
|
||||||
{ "discord", NULL, NULL, 1 << 3, 0, -1 },
|
{ "discord", NULL, NULL, 1 << 3, 0, -1 },
|
||||||
// ----- 5 -----
|
// ----- 5 -----
|
||||||
{ "Steam", NULL, NULL, 1 << 4, 0, -1 },
|
{ "Steam", NULL, NULL, 1 << 4, 0, -1 },
|
||||||
|
@ -129,7 +129,6 @@ static const Key keys[] = {
|
||||||
{ SUPERKEY, XK_b, togglebar, {.i = 1} },
|
{ SUPERKEY, XK_b, togglebar, {.i = 1} },
|
||||||
{ SUPERKEY|ShiftMask, XK_b, togglebar, {.i = 2} },
|
{ SUPERKEY|ShiftMask, XK_b, togglebar, {.i = 2} },
|
||||||
{ ALTKEY, XK_Tab, focusstack, {.i = +1 } },
|
{ ALTKEY, XK_Tab, focusstack, {.i = +1 } },
|
||||||
/* { SUPERKEY, XK_k, focusstack, {.i = -1 } }, */
|
|
||||||
{ SUPERKEY, XK_i, incnmaster, {.i = +1 } },
|
{ SUPERKEY, XK_i, incnmaster, {.i = +1 } },
|
||||||
{ SUPERKEY, XK_d, incnmaster, {.i = -1 } },
|
{ SUPERKEY, XK_d, incnmaster, {.i = -1 } },
|
||||||
{ SUPERKEY, XK_h, setmfact, {.f = -0.05} },
|
{ SUPERKEY, XK_h, setmfact, {.f = -0.05} },
|
||||||
|
@ -141,13 +140,12 @@ static const Key keys[] = {
|
||||||
{ SUPERKEY, XK_m, setlayout, {.v = &layouts[3]} },
|
{ SUPERKEY, XK_m, setlayout, {.v = &layouts[3]} },
|
||||||
{ SUPERKEY|ShiftMask, XK_g, setlayout, {.v = &layouts[4]} },
|
{ SUPERKEY|ShiftMask, XK_g, setlayout, {.v = &layouts[4]} },
|
||||||
{ SUPERKEY, XK_g, setlayout, {.v = &layouts[0]} },
|
{ SUPERKEY, XK_g, setlayout, {.v = &layouts[0]} },
|
||||||
/* { SUPERKEY, XK_space, setlayout, {0} }, */
|
|
||||||
{ SUPERKEY|ShiftMask, XK_space, togglefloating, {0} },
|
{ SUPERKEY|ShiftMask, XK_space, togglefloating, {0} },
|
||||||
{ SUPERKEY, XK_comma, focusmon, {.i = -1 } },
|
// { SUPERKEY, XK_comma, focusmon, {.i = -1 } },
|
||||||
{ SUPERKEY, XK_period, focusmon, {.i = +1 } },
|
// { SUPERKEY, XK_period, focusmon, {.i = +1 } },
|
||||||
{ SUPERKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } },
|
// { SUPERKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } },
|
||||||
{ SUPERKEY|ShiftMask, XK_period, tagmon, {.i = +1 } },
|
// { SUPERKEY|ShiftMask, XK_period, tagmon, {.i = +1 } },
|
||||||
{ SUPERKEY|ShiftMask, XK_equal, setgaps, {.i = 0 } },
|
// { SUPERKEY|ShiftMask, XK_equal, setgaps, {.i = 0 } },
|
||||||
{ SUPERKEY|ShiftMask, XK_t, togglealwaysontop, {0} },
|
{ SUPERKEY|ShiftMask, XK_t, togglealwaysontop, {0} },
|
||||||
{ SUPERKEY|ShiftMask, XK_f, togglefullscr, {0} },
|
{ SUPERKEY|ShiftMask, XK_f, togglefullscr, {0} },
|
||||||
{ SUPERKEY, XK_F5, xrdb, {.v = NULL } },
|
{ SUPERKEY, XK_F5, xrdb, {.v = NULL } },
|
||||||
|
|
8
dwm.c
8
dwm.c
|
@ -255,8 +255,7 @@ static void updatetitle(Client *c);
|
||||||
static void updatewindowtype(Client *c);
|
static void updatewindowtype(Client *c);
|
||||||
static void updatewmhints(Client *c);
|
static void updatewmhints(Client *c);
|
||||||
static void view(const Arg *arg);
|
static void view(const Arg *arg);
|
||||||
static Client *wintoclient(Window w);
|
static Client *wintoclient(Window w);static Monitor *wintomon(Window w);
|
||||||
static Monitor *wintomon(Window w);
|
|
||||||
static int xerror(Display *dpy, XErrorEvent *ee);
|
static int xerror(Display *dpy, XErrorEvent *ee);
|
||||||
static int xerrordummy(Display *dpy, XErrorEvent *ee);
|
static int xerrordummy(Display *dpy, XErrorEvent *ee);
|
||||||
static int xerrorstart(Display *dpy, XErrorEvent *ee);
|
static int xerrorstart(Display *dpy, XErrorEvent *ee);
|
||||||
|
@ -2558,6 +2557,11 @@ wintomon(Window w)
|
||||||
int
|
int
|
||||||
xerror(Display *dpy, XErrorEvent *ee)
|
xerror(Display *dpy, XErrorEvent *ee)
|
||||||
{
|
{
|
||||||
|
int opcode, event, error;
|
||||||
|
if(XQueryExtension(dpy, "RENDER", &opcode, &event, &error)
|
||||||
|
|| (ee->request_code == opcode && ee->error_code == BadLength))
|
||||||
|
return 0;
|
||||||
|
|
||||||
if (ee->error_code == BadWindow
|
if (ee->error_code == BadWindow
|
||||||
|| (ee->request_code == X_SetInputFocus && ee->error_code == BadMatch)
|
|| (ee->request_code == X_SetInputFocus && ee->error_code == BadMatch)
|
||||||
|| (ee->request_code == X_PolyText8 && ee->error_code == BadDrawable)
|
|| (ee->request_code == X_PolyText8 && ee->error_code == BadDrawable)
|
||||||
|
|
Loading…
Reference in New Issue