Compare commits
4 commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 6e9eaf61ac | |||
| 5eb2db4061 | |||
| 162f3c32f2 | |||
| 5a38a89afd |
2 changed files with 28 additions and 23 deletions
2
Makefile
2
Makefile
|
|
@ -20,7 +20,7 @@ dwm: ${OBJ}
|
|||
${CC} -o $@ ${OBJ} ${LDFLAGS}
|
||||
|
||||
clean:
|
||||
rm -f dwm ${OBJ} dwm-${VERSION}.tar.gz
|
||||
rm -f dwm ${OBJ} config.h dwm-${VERSION}.tar.gz
|
||||
|
||||
dist: clean
|
||||
mkdir -p dwm-${VERSION}
|
||||
|
|
|
|||
49
config.def.h
49
config.def.h
|
|
@ -1,34 +1,37 @@
|
|||
/* See LICENSE file for copyright and license details. */
|
||||
|
||||
/* appearance */
|
||||
static const unsigned int borderpx = 1; /* border pixel of windows */
|
||||
static const unsigned int borderpx = 3; /* border pixel of windows */
|
||||
static const unsigned int snap = 32; /* snap pixel */
|
||||
static const int showbar = 1; /* 0 means no bar */
|
||||
static const int topbar = 1; /* 0 means bottom bar */
|
||||
static const char *fonts[] = { "monospace:size=10" };
|
||||
static const char dmenufont[] = "monospace:size=10";
|
||||
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 *colors[][3] = {
|
||||
/* fg bg border */
|
||||
[SchemeNorm] = { col_gray3, col_gray1, col_gray2 },
|
||||
[SchemeSel] = { col_gray4, col_cyan, col_cyan },
|
||||
};
|
||||
/*static const char *fonts[] = { "monospace:size=16" };
|
||||
*/
|
||||
static const char *fonts[] = {"Mononoki Nerd Font:size=16:antialias=true:autohint=true",
|
||||
"Hack:size=14:antialias=true:autohint=true",
|
||||
"JoyPixels:size=16:antialias=true:autohint=true"};
|
||||
|
||||
#include "/home/moo/.config/themes/using/colors-wal-dwm.h"
|
||||
|
||||
/* tagging */
|
||||
static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" };
|
||||
/*static const char *tags[] = { "", "", "", "", "", "", "7", "8", "9" };
|
||||
*/
|
||||
static const char *tags[] = { "•", "•", "•", "•", "•", "•", "•", "•", "•" };
|
||||
|
||||
static const Rule rules[] = {
|
||||
/* xprop(1):
|
||||
* WM_CLASS(STRING) = instance, class
|
||||
* WM_NAME(STRING) = title
|
||||
*/
|
||||
/* class instance title tags mask isfloating monitor */
|
||||
{ "Gimp", NULL, NULL, 0, 1, -1 },
|
||||
{ "Firefox", NULL, NULL, 1 << 8, 0, -1 },
|
||||
/* class instance title tags mask isfloating monitor */
|
||||
{ "Gimp", NULL, NULL, 1 << 6, 0, -1 },
|
||||
{ NULL, NULL, "pulsemixer", 0, 1, -1 },
|
||||
{ "waterfox", NULL, NULL, 1, 0, -1 },
|
||||
{ "Element", NULL, NULL, 1 << 8, 0, -1 },
|
||||
{ NULL, NULL, "LibreWolf", 1 << 0, 0, -1 },
|
||||
{ NULL, NULL, "Waterfox", 1 << 0, 0, -1 },
|
||||
{ NULL, NULL, "Discord", 1 << 8, 0, -1 },
|
||||
{ "mpv", NULL, NULL, 1 << 5, 1, -1 },
|
||||
};
|
||||
|
||||
/* layout(s) */
|
||||
|
|
@ -45,7 +48,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} }, \
|
||||
|
|
@ -57,13 +60,15 @@ 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 *dmenucmd[] = { "dmenu_run", "-p", "Run: ", NULL };
|
||||
static const char *termcmd[] = { "st", NULL };
|
||||
static const char *volume[] = { "st", "-e", "pulsemixer", NULL };
|
||||
|
||||
static const Key keys[] = {
|
||||
/* modifier key function argument */
|
||||
{ MODKEY, XK_p, spawn, {.v = dmenucmd } },
|
||||
{ MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } },
|
||||
{ MODKEY, XK_Return, spawn, {.v = termcmd } },
|
||||
{ MODKEY|ShiftMask, XK_Return, spawn, {.v = dmenucmd } },
|
||||
{ MODKEY|Mod1Mask, XK_v, spawn, {.v = volume } },
|
||||
{ MODKEY, XK_b, togglebar, {0} },
|
||||
{ MODKEY, XK_j, focusstack, {.i = +1 } },
|
||||
{ MODKEY, XK_k, focusstack, {.i = -1 } },
|
||||
|
|
@ -71,7 +76,7 @@ static const Key keys[] = {
|
|||
{ MODKEY, XK_d, incnmaster, {.i = -1 } },
|
||||
{ MODKEY, XK_h, setmfact, {.f = -0.05} },
|
||||
{ MODKEY, XK_l, setmfact, {.f = +0.05} },
|
||||
{ MODKEY, XK_Return, zoom, {0} },
|
||||
{ MODKEY, XK_p, zoom, {0} },
|
||||
{ MODKEY, XK_Tab, view, {0} },
|
||||
{ MODKEY|ShiftMask, XK_c, killclient, {0} },
|
||||
{ MODKEY, XK_t, setlayout, {.v = &layouts[0]} },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue