dwm

dynamic window manager - with my changes
git clone https://pi.duncano.de/git/dwm.git
Log | Files | Refs | README | LICENSE

commit 3280b9d0a8b7d9de505b0a7d2a8a10daff714eba
parent c4a5b3663a68d6b29bf1beb8f76a975564aaed10
Author: Duncaen <mail@duncano.de>
Date:   Sat, 17 Jun 2017 10:24:28 +0200

update config.def.h

Diffstat:
config.def.h | 74+++++++++++++++++++++++++++++++++++++++++++++++++++++++-------------------
1 file changed, 55 insertions(+), 19 deletions(-)

diff --git a/config.def.h b/config.def.h @@ -2,20 +2,27 @@ /* appearance */ static const unsigned int borderpx = 1; /* border pixel of windows */ -static const unsigned int snap = 32; /* snap pixel */ +static const unsigned int snap = 10; /* snap pixel */ static const int showbar = 1; /* 0 means no bar */ static const int topbar = 1; /* 0 means bottom bar */ -static const char *fonts[] = { "-*-terminus-medium-r-*-*-16-*-*-*-*-*-*-*" }; -static const char dmenufont[] = "-*-terminus-medium-r-*-*-16-*-*-*-*-*-*-*"; -static const char col_gray1[] = "#222222"; -static const char col_gray2[] = "#444444"; -static const char col_gray3[] = "#bbbbbb"; -static const char col_gray4[] = "#eeeeee"; -static const char col_cyan[] = "#005577"; +static const char *fonts[] = { + "-*-terminus-medium-r-normal-*-12-*-*-*-*-*-*-*," + /* "-misc-fixed-medium-r-normal-*-12-*-*-*-*-*-*-*," */ + /* "-gnu-unifont-medium-r-normal-*-*-*-*-*-*-*-*-*," */ +}; +static const char dmenufont[] = "-*-terminus-medium-r-*-*-12-*-*-*-*-*-*-*"; +static const char normbordercolor[] = "#383838"; +static const char normbgcolor[] = "#181818"; +static const char normfgcolor[] = "#D8D8D8"; +static const char selbordercolor[] = "#7CAFC2"; +static const char selbgcolor[] = "#383838"; +static const char selfgcolor[] = "#D8D8D8"; +static const char urgentcolor[] = "#AB4642"; static const char *colors[][3] = { /* fg bg border */ - [SchemeNorm] = { col_gray3, col_gray1, col_gray2 }, - [SchemeSel] = { col_gray4, col_cyan, col_cyan }, + [SchemeNorm] = { normfgcolor, normbgcolor, selbgcolor }, + [SchemeSel] = { selfgcolor, selbgcolor, selbordercolor }, + [SchemeUrg] = { selfgcolor, urgentcolor, urgentcolor }, }; /* tagging */ @@ -27,14 +34,28 @@ static const Rule rules[] = { * WM_NAME(STRING) = title */ /* class instance title tags mask isfloating monitor */ - { "Gimp", NULL, NULL, 0, 1, -1 }, - { "Firefox", NULL, NULL, 1 << 8, 0, -1 }, + { "st-256color", NULL, NULL, 0, 0, -1, }, + { "Firefox", NULL, NULL, 1 << 6, 0, -1, }, + { "Chromium", NULL, NULL, 1 << 6, 0, -1, }, + { "Thunderbird", NULL, NULL, 1 << 5, 0, -1, }, + { "Spotify", NULL, NULL, 1 << 4, 0, -1, }, + { "Tomahawk", NULL, NULL, 1 << 4, 0, -1, }, + { "Vlc", NULL, NULL, 1 << 4, 0, -1, }, + { "mpv", NULL, NULL, 1 << 4, 0, -1, }, + { "VirtualBox", NULL, NULL, 1 << 7, 0, -1, }, + { "VBoxSDL", NULL, NULL, 1 << 7, 0, -1, }, + { "mixer", NULL, NULL, 0, 1, -1, }, + { "feh", NULL, NULL, 0, 1, -1, }, + { "Steam", NULL, NULL, 1 << 8, 1, -1, }, + { NULL, NULL, "Steam", 1 << 8, 1, -1, }, + { "dota2", NULL, NULL, 1 << 8, 1, -1, }, }; /* layout(s) */ static const float mfact = 0.55; /* factor of master area size [0.05..0.95] */ static const int nmaster = 1; /* number of clients in master area */ -static const int resizehints = 1; /* 1 means respect size hints in tiled resizals */ +static const int resizehints = 0; /* 1 means respect size hints in tiled resizals */ +static const int fresizehints = 0; /* 1 means respect size hints in floated resizals */ static const Layout layouts[] = { /* symbol arrange function */ @@ -44,7 +65,7 @@ static const Layout layouts[] = { }; /* key definitions */ -#define MODKEY Mod1Mask +#define MODKEY Mod4Mask #define TAGKEYS(KEY,TAG) \ { MODKEY, KEY, view, {.ui = 1 << TAG} }, \ { MODKEY|ControlMask, KEY, toggleview, {.ui = 1 << TAG} }, \ @@ -56,11 +77,27 @@ 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", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL }; -static const char *termcmd[] = { "st", NULL }; +static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", normbgcolor, "-nf", normfgcolor, "-sb", selbgcolor, "-sf", selfgcolor, NULL }; +static const char *termcmd[] = { "st", "-e", "dvtm", NULL }; static Key keys[] = { /* modifier key function argument */ + { MODKEY|ControlMask, XK_j, movey, {.i = +10 } }, + { MODKEY|ControlMask, XK_k, movey, {.i = -10 } }, + { MODKEY|ControlMask|ShiftMask, XK_j, movey, {.i = +1 } }, + { MODKEY|ControlMask|ShiftMask, XK_k, movey, {.i = -1 } }, + { MODKEY|ControlMask, XK_l, movex, {.i = +10 } }, + { MODKEY|ControlMask, XK_h, movex, {.i = -10 } }, + { MODKEY|ControlMask|ShiftMask, XK_l, movex, {.i = +1 } }, + { MODKEY|ControlMask|ShiftMask, XK_h, movex, {.i = -1 } }, + { MODKEY|Mod1Mask, XK_j, resizeh, {.i = +10 } }, + { MODKEY|Mod1Mask, XK_k, resizeh, {.i = -10 } }, + { MODKEY|Mod1Mask|ShiftMask, XK_j, resizeh, {.i = +1 } }, + { MODKEY|Mod1Mask|ShiftMask, XK_k, resizeh, {.i = -1 } }, + { MODKEY|Mod1Mask, XK_l, resizew, {.i = +10 } }, + { MODKEY|Mod1Mask, XK_h, resizew, {.i = -10 } }, + { MODKEY|Mod1Mask|ShiftMask, XK_l, resizew, {.i = +1 } }, + { MODKEY|Mod1Mask|ShiftMask, XK_h, resizew, {.i = -1 } }, { MODKEY, XK_p, spawn, {.v = dmenucmd } }, { MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } }, { MODKEY, XK_b, togglebar, {0} }, @@ -68,8 +105,8 @@ static Key keys[] = { { MODKEY, XK_k, focusstack, {.i = -1 } }, { MODKEY, XK_i, incnmaster, {.i = +1 } }, { MODKEY, XK_d, incnmaster, {.i = -1 } }, - { MODKEY, XK_h, setmfact, {.f = -0.05} }, - { MODKEY, XK_l, setmfact, {.f = +0.05} }, + { MODKEY, XK_h, setmfact, {.f = -0.01} }, + { MODKEY, XK_l, setmfact, {.f = +0.01} }, { MODKEY, XK_Return, zoom, {0} }, { MODKEY, XK_Tab, view, {0} }, { MODKEY|ShiftMask, XK_c, killclient, {0} }, @@ -112,4 +149,3 @@ static Button buttons[] = { { ClkTagBar, MODKEY, Button1, tag, {0} }, { ClkTagBar, MODKEY, Button3, toggletag, {0} }, }; -