diff --git a/.gitignore b/.gitignore index 04cebff..3f5309d 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ *.rej *.orig ses +dwm diff --git a/dwm-centeredmaster-6.1.diff b/.pc/dwm-centeredmaster-6.1.diff similarity index 100% rename from dwm-centeredmaster-6.1.diff rename to .pc/dwm-centeredmaster-6.1.diff diff --git a/dwm-pertag-20200914-61bb8b2.diff b/.pc/dwm-pertag-20200914-61bb8b2.diff similarity index 100% rename from dwm-pertag-20200914-61bb8b2.diff rename to .pc/dwm-pertag-20200914-61bb8b2.diff diff --git a/TODO b/TODO index b33a08d..ae3253e 100644 --- a/TODO +++ b/TODO @@ -2,3 +2,29 @@ affecting the keyboard grab, see scrot -s for example) - add updategeom() hook for external tools like dzen - consider onscreenkeyboard hooks for tablet deployment + +bugs in this build: +fullgaps (might be shortcuts) +awesomebar: hidewindow() function crashes dwm and tag background color is weird +maybe manage hidden windows with dmenu +use dmenu for selecting and focusing window +undo fullgaps and add useless gaps instead for more generality +add patch for moving slave windows +correct tag colors + +hide border of nonfocused windows or make transparent +hide borders in monocle +make rules change default/sel border color for certain titles: green for multiplexer +add tabs +correct st border colors +make tile layout slaves equal sizes +figure out window shadows like in kdk image +add patch for moving selected client to master area +modify centered master using removeborder patch +make mru indexer script that stores files and their last known mod times in a +.cache file sorted by time. Should have commands for updating infor for the +whole directory, pointing it at only a specific directory (which can be +specified from known directories and used in dmenu), and pointing to specific +file to update it's position (ctrlp hook script should be possible) +add shortcut for focusing master +add scratchpad that opens in a special session diff --git a/config.h b/config.h index cebb96f..f09630b 100644 --- a/config.h +++ b/config.h @@ -4,17 +4,17 @@ static const char *fonts[] = { "SauceCodePro NF:size=10" }; -static const char dmenufont[] = "monospace:size=10"; +static const char dmenufont[] = "SauceCodePro NF:size=10"; static const char normbordercolor[] = "#444444"; static const char normbgcolor[] = "#222222"; static const char normfgcolor[] = "#bbbbbb"; -static const char selbordercolor[] = "#005577"; +static const char selbordercolor[] = "#333544"; static const char selbgcolor[] = "#005577"; static const char selfgcolor[] = "#eeeeee"; -static const unsigned int borderpx = 1; /* border pixel of windows */ +static const unsigned int borderpx = 5; /* border pixel of windows */ static const Gap default_gap = {.isgap = 1, .realgap = 10, .gappx = 10}; static const unsigned int snap = 32; /* snap pixel */ -static const int showbar = 1; /* 0 means no bar */ +static const int showbar = 0; /* 0 means no bar */ static const int topbar = 1; /* 0 means bottom bar */ /* tagging */ @@ -59,7 +59,7 @@ static const Layout layouts[] = { /* commands */ static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */ static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", normbgcolor, "-nf", normfgcolor, "-sb", selbgcolor, "-sf", selfgcolor, NULL }; -static const char *termcmd[] = { "x-terminal-emulator", NULL }; +static const char *termcmd[] = { "st", NULL }; static Key keys[] = { /* modifier key function argument */ @@ -91,9 +91,9 @@ static Key keys[] = { { MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } }, { MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } }, { MODKEY|ShiftMask, XK_s, show, {0} }, - { MODKEY|ShiftMask, XK_h, hide, {0} }, - { MODKEY|ShiftMask, XK_b, toggleAttachBelow, {0} }, - { MODKEY, XK_minus, setgaps, {.i = -5 } }, + { MODKEY|ShiftMask, XK_h, hide, {0} }, + { MODKEY|ShiftMask, XK_b, toggleAttachBelow, {0} }, + { MODKEY, XK_minus, setgaps, {.i = -5 } }, { MODKEY, XK_equal, setgaps, {.i = +5 } }, { MODKEY|ShiftMask, XK_minus, setgaps, {.i = GAP_RESET } }, { MODKEY|ShiftMask, XK_equal, setgaps, {.i = GAP_TOGGLE} }, diff --git a/dwm b/dwm deleted file mode 100755 index c38ebc6..0000000 Binary files a/dwm and /dev/null differ diff --git a/dwm-removeborder-20200520-f09418b.diff b/dwm-removeborder-20200520-f09418b.diff new file mode 100644 index 0000000..5414d6b --- /dev/null +++ b/dwm-removeborder-20200520-f09418b.diff @@ -0,0 +1,29 @@ +diff --git a/dwm.c b/dwm.c +index 9fd0286..dcdbc38 100644 +--- a/dwm.c ++++ b/dwm.c +@@ -1277,12 +1277,24 @@ void + resizeclient(Client *c, int x, int y, int w, int h) + { + XWindowChanges wc; ++ unsigned int n; ++ Client *nbc; + + c->oldx = c->x; c->x = wc.x = x; + c->oldy = c->y; c->y = wc.y = y; + c->oldw = c->w; c->w = wc.width = w; + c->oldh = c->h; c->h = wc.height = h; + wc.border_width = c->bw; ++ ++ for (n = 0, nbc = nexttiled(selmon->clients); nbc; nbc = nexttiled(nbc->next), n++); ++ ++ if (c->isfloating || selmon->lt[selmon->sellt]->arrange == NULL) { ++ } else { ++ if (selmon->lt[selmon->sellt]->arrange == monocle || n == 1) { ++ wc.border_width = 0; ++ } ++ } ++ + XConfigureWindow(dpy, c->win, CWX|CWY|CWWidth|CWHeight|CWBorderWidth, &wc); + configure(c); + XSync(dpy, False);