Change TD on KD

This commit is contained in:
bitheaven 2024-02-24 18:16:26 +05:00
parent 66a7223541
commit b745273428
7 changed files with 13 additions and 11 deletions

View File

@ -51,7 +51,7 @@ static const Rule rules[] = {
{ "thunderbird", NULL, NULL, 1 << 2, 0, -1 },
{ "KeePassXC", NULL, NULL, 1 << 2, 0, -1 },
// ----- 4 -----
{ "TelegramDesktop", NULL, NULL, 1 << 3, 0, -1 },
{ "KotatogramDesktop", NULL, NULL, 1 << 3, 0, -1 },
{ "discord", NULL, NULL, 1 << 3, 0, -1 },
// ----- 5 -----
{ "Steam", NULL, NULL, 1 << 4, 0, -1 },

View File

@ -51,7 +51,7 @@ static const Rule rules[] = {
{ "thunderbird", NULL, NULL, 1 << 2, 0, -1 },
{ "KeePassXC", NULL, NULL, 1 << 2, 0, -1 },
// ----- 4 -----
{ "TelegramDesktop", NULL, NULL, 1 << 3, 0, -1 },
{ "KotatogramDesktop", NULL, NULL, 1 << 3, 0, -1 },
{ "discord", NULL, NULL, 1 << 3, 0, -1 },
// ----- 5 -----
{ "Steam", NULL, NULL, 1 << 4, 0, -1 },
@ -129,7 +129,6 @@ static const Key keys[] = {
{ SUPERKEY, XK_b, togglebar, {.i = 1} },
{ SUPERKEY|ShiftMask, XK_b, togglebar, {.i = 2} },
{ ALTKEY, XK_Tab, focusstack, {.i = +1 } },
/* { SUPERKEY, XK_k, focusstack, {.i = -1 } }, */
{ SUPERKEY, XK_i, incnmaster, {.i = +1 } },
{ SUPERKEY, XK_d, incnmaster, {.i = -1 } },
{ SUPERKEY, XK_h, setmfact, {.f = -0.05} },
@ -141,13 +140,12 @@ static const Key keys[] = {
{ SUPERKEY, XK_m, setlayout, {.v = &layouts[3]} },
{ SUPERKEY|ShiftMask, XK_g, setlayout, {.v = &layouts[4]} },
{ SUPERKEY, XK_g, setlayout, {.v = &layouts[0]} },
/* { SUPERKEY, XK_space, setlayout, {0} }, */
{ SUPERKEY|ShiftMask, XK_space, togglefloating, {0} },
{ SUPERKEY, XK_comma, focusmon, {.i = -1 } },
{ SUPERKEY, XK_period, focusmon, {.i = +1 } },
{ SUPERKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } },
{ SUPERKEY|ShiftMask, XK_period, tagmon, {.i = +1 } },
{ SUPERKEY|ShiftMask, XK_equal, setgaps, {.i = 0 } },
// { SUPERKEY, XK_comma, focusmon, {.i = -1 } },
// { SUPERKEY, XK_period, focusmon, {.i = +1 } },
// { SUPERKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } },
// { SUPERKEY|ShiftMask, XK_period, tagmon, {.i = +1 } },
// { SUPERKEY|ShiftMask, XK_equal, setgaps, {.i = 0 } },
{ SUPERKEY|ShiftMask, XK_t, togglealwaysontop, {0} },
{ SUPERKEY|ShiftMask, XK_f, togglefullscr, {0} },
{ SUPERKEY, XK_F5, xrdb, {.v = NULL } },

BIN
drw.o

Binary file not shown.

BIN
dwm

Binary file not shown.

8
dwm.c
View File

@ -255,8 +255,7 @@ static void updatetitle(Client *c);
static void updatewindowtype(Client *c);
static void updatewmhints(Client *c);
static void view(const Arg *arg);
static Client *wintoclient(Window w);
static Monitor *wintomon(Window w);
static Client *wintoclient(Window w);static Monitor *wintomon(Window w);
static int xerror(Display *dpy, XErrorEvent *ee);
static int xerrordummy(Display *dpy, XErrorEvent *ee);
static int xerrorstart(Display *dpy, XErrorEvent *ee);
@ -2558,6 +2557,11 @@ wintomon(Window w)
int
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
|| (ee->request_code == X_SetInputFocus && ee->error_code == BadMatch)
|| (ee->request_code == X_PolyText8 && ee->error_code == BadDrawable)

BIN
dwm.o

Binary file not shown.

BIN
util.o

Binary file not shown.