diff options
| author | ProsperousPotato <ProsperousPotato@users.noreply.github.com> | 2025-01-15 19:40:48 +0000 |
|---|---|---|
| committer | ProsperousPotato <ProsperousPotato@users.noreply.github.com> | 2025-03-31 18:31:28 +0100 |
| commit | 66f3592108fa87df39f1d5b53437852a4ce74134 (patch) | |
| tree | 65243a3a70e7653a40c3bd0f81a9d5a48630bff6 | |
| parent | 0c4c38dbcc3c11763da71f563a3a238fe9320414 (diff) | |
update config
| -rw-r--r-- | config.h | 17 | ||||
| -rw-r--r-- | drw.o | bin | 11136 -> 11136 bytes | |||
| -rw-r--r-- | dwm | bin | 86064 -> 86112 bytes | |||
| -rw-r--r-- | dwm.c | 15 | ||||
| -rw-r--r-- | dwm.o | bin | 74432 -> 74904 bytes | |||
| -rw-r--r-- | util.o | bin | 2296 -> 2296 bytes |
6 files changed, 24 insertions, 8 deletions
@@ -7,7 +7,7 @@ /* appearance */ static const unsigned int borderpx = 2; /* border pixel of windows */ static const unsigned int snap = 16; /* snap pixel */ -static const unsigned int gappx = 5; /* gaps between windows */ +static const unsigned int gappx = 4; /* gaps between windows */ static const int swallowfloating = 1; /* 1 means swallow floating windows by default */ static const int showbar = 1; /* 0 means no bar */ static const int topbar = 1; /* 0 means bottom bar */ @@ -43,6 +43,7 @@ static const Rule rules[] = { { "steam", "steamwebhelper", "Steam", 0, 0, 0, 0, -1 }, { "steam", NULL, "Steam Settings", 0, 1, 0, 0, -1 }, { "qemu-system-x86_64","qemu-system-x86_64",NULL, 0, 1, 0, 0, -1 }, + { "steam_proton","steam_proton","Unreal Tournament 2004", 0, 1, 0, 0, -1 }, { "Virt-manager",NULL, NULL, 0, 0, 0, 0, -1 }, { "qBittorrent", NULL, NULL, 0, 1, 0, 0, -1 }, { "qBittorrent", "qbittorrent", NULL, 0, 0, 0, 0, -1 }, @@ -94,15 +95,16 @@ static const Key keys[] = { { MODKEY, XK_b, togglebar, {0} }, { MODKEY, XK_j, focusstackvis, {.i = +1 } }, { MODKEY, XK_k, focusstackvis, {.i = -1 } }, - { MODKEY, XK_i, incnmaster, {.i = +1 } }, - { MODKEY, XK_u, incnmaster, {.i = -1 } }, + { MODKEY|ShiftMask, XK_Left, incnmaster, {.i = +1 } }, + { MODKEY|ShiftMask, XK_Right, incnmaster, {.i = -1 } }, { MODKEY|ControlMask, XK_h, setmfact, {.f = -0.05} }, { MODKEY|ControlMask, XK_l, setmfact, {.f = +0.05} }, { Mod1Mask, XK_Tab, zoom, {0} }, { MODKEY, XK_Tab, view, {0} }, { MODKEY, XK_q, killclient, {0} }, { MODKEY, XK_t, setlayout, {.v = &layouts[0]} }, - { MODKEY|ShiftMask, XK_t, setlayout, {.v = &layouts[2]} }, + { MODKEY|ShiftMask, XK_f, setlayout, {.v = &layouts[1]} }, + { MODKEY, XK_m, setlayout, {.v = &layouts[2]} }, { MODKEY|ShiftMask, XK_Return, setlayout, {0} }, { MODKEY, XK_Return, togglefloating, {0} }, { MODKEY, XK_grave, view, {.ui = ~0 } }, @@ -145,12 +147,12 @@ static const Key keys[] = { { 0, XF86XK_AudioMute, spawn, SHCMD("dwmvol toggle") }, { 0, XF86XK_MonBrightnessUp, spawn, SHCMD("dwmlight up") }, { 0, XF86XK_MonBrightnessDown, spawn, SHCMD("dwmlight down") }, - { MODKEY, XK_F11, spawn, SHCMD("dwmstats") }, - { MODKEY, XK_F12, spawn, SHCMD("dwmext") }, + { MODKEY, XK_F2, spawn, SHCMD("dwmstats") }, + { MODKEY, XK_F1, spawn, SHCMD("dwmext") }, { MODKEY, XK_F8, spawn, SHCMD("dwmnet") }, { MODKEY, XK_s, spawn, SHCMD("steam") }, { Mod1Mask|ControlMask, XK_Delete, spawn, SHCMD("slock") }, - { MODKEY, XK_w, spawn, SHCMD(BROWSER) }, + { MODKEY, XK_w, spawn, SHCMD("browse "BROWSER) }, { MODKEY, XK_c, spawn, SHCMD("cliphist add") }, { MODKEY, XK_v, spawn, SHCMD("cliphist sel") }, { MODKEY, XK_x, spawn, SHCMD("xkill") }, @@ -161,7 +163,6 @@ static const Key keys[] = { { MODKEY|ShiftMask, XK_r, quit, {1} }, /* Unused keys */ - // { MODKEY, XK_f, setlayout, {.v = &layouts[1]} }, }; /* button definitions */ Binary files differBinary files differ@@ -1591,6 +1591,16 @@ resizeclient(Client *c, int x, int y, int w, int h) c->oldw = c->w; c->w = wc.width = w; c->oldh = c->h; c->h = wc.height = h; wc.border_width = c->bw; + /* Hide border if only 1 client on screen */ + if (((nexttiled(c->mon->clients) == c && !nexttiled(c->next)) + || &monocle == c->mon->lt[c->mon->sellt]->arrange) + && !c->isfullscreen && !c->isfloating + && NULL != c->mon->lt[c->mon->sellt]->arrange) { + c->w = wc.width += c->bw * 2; + c->h = wc.height += c->bw * 2; + wc.border_width = 0; + } + XConfigureWindow(dpy, c->win, CWX|CWY|CWWidth|CWHeight|CWBorderWidth, &wc); configure(c); XSync(dpy, False); @@ -2069,6 +2079,11 @@ tile(Monitor *m) Client *c; for (n = 0, c = nexttiled(m->clients); c; c = nexttiled(c->next), n++); + if (n == 1) + m->gappx = 0; + else + m->gappx = gappx; + if (n == 0) return; |
