dwm

[fork] dynamic window manager
Log | Files | Refs | README | LICENSE

commit 9bc112474cb985299e24d6d17989d46094f4e565
parent 183d2e16f85ad8dae98a708f2746459e9fb7317f
Author: Hayden Hamilton <hayden@haydenvh.com>
Date:   Tue, 15 Sep 2020 20:59:02 +0100

going compositorless

Diffstat:
Mconfig.h | 5+++--
Mdwm.c | 11+----------
2 files changed, 4 insertions(+), 12 deletions(-)

diff --git a/config.h b/config.h @@ -1,7 +1,7 @@ /* See LICENSE file for copyright and license details. */ /* appearance */ -static const unsigned int borderpx = 0; /* border pixel of windows */ +static const unsigned int borderpx = 2; /* border pixel of windows */ static const unsigned int gappx = 10; static const unsigned int snap = 1; /* snap pixel */ static const int showbar = 1; /* 0 means no bar */ @@ -13,10 +13,11 @@ static const char col_gray3[] = "#bbbbbb"; static const char col_gray4[] = "#eeeeee"; static const char col_cyan[] = "#30404e"; static const char col_stat[] = "#0a2126"; +static const char col_red[] = "#892b2b"; static const char *colors[][3] = { /* fg bg border */ [SchemeNorm] = { col_gray3, col_gray1, col_gray1 }, - [SchemeSel] = { col_gray4, col_cyan, col_cyan }, + [SchemeSel] = { col_gray4, col_cyan, col_red }, [SchemeStat] = { col_gray4, col_stat, col_stat }, }; diff --git a/dwm.c b/dwm.c @@ -199,7 +199,6 @@ static void resize(Client *c, int x, int y, int w, int h, int interact); static void resizeclient(Client *c, int x, int y, int w, int h); static void restack(Monitor *m); static void run(void); -static void runAutostart(void); static void scan(void); static int sendevent(Client *c, Atom proto); static void sendmon(Client *c, Monitor *m); @@ -1333,13 +1332,6 @@ run(void) } void -runAutostart(void) { - system("cd ~/.scripts/input; ./keyboard"); - system("picom --config ~/.config/picom/config -b -f"); - system("cd ~/.scripts/dwmblocks/; ./dwmbar &"); -} - -void scan(void) { unsigned int i, num; @@ -1534,7 +1526,7 @@ setup(void) netatom[NetWMWindowTypeDialog] = XInternAtom(dpy, "_NET_WM_WINDOW_TYPE_DIALOG", False); netatom[NetClientList] = XInternAtom(dpy, "_NET_CLIENT_LIST", False); /* init cursors */ - cursor[CurNormal] = drw_cur_create(drw, XC_left_ptr); + cursor[CurNormal] = drw_cur_create(drw, XC_sailboat); cursor[CurResize] = drw_cur_create(drw, XC_sizing); cursor[CurMove] = drw_cur_create(drw, XC_fleur); /* init appearance */ @@ -2114,7 +2106,6 @@ main(int argc, char *argv[]) die("pledge"); #endif /* __OpenBSD__ */ scan(); - runAutostart(); run(); cleanup(); XCloseDisplay(dpy);