summaryrefslogtreecommitdiff
path: root/dwm/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'dwm/config.h')
-rw-r--r--dwm/config.h47
1 files changed, 16 insertions, 31 deletions
diff --git a/dwm/config.h b/dwm/config.h
index 0674870..11f6c81 100644
--- a/dwm/config.h
+++ b/dwm/config.h
@@ -3,30 +3,23 @@
3/* appearance */ 3/* appearance */
4static const unsigned int borderpx = 0; /* border pixel of windows */ 4static const unsigned int borderpx = 0; /* border pixel of windows */
5static const unsigned int snap = 32; /* snap pixel */ 5static const unsigned int snap = 32; /* snap pixel */
6static const unsigned int gappih = 8; /* horiz inner gap between windows */ 6static const unsigned int gappih = 10; /* horiz inner gap between windows */
7static const unsigned int gappiv = 8; /* vert inner gap between windows */ 7static const unsigned int gappiv = 10; /* vert inner gap between windows */
8static const unsigned int gappoh = 8; /* horiz outer gap between windows and screen edge */ 8static const unsigned int gappoh = 10; /* horiz outer gap between windows and screen edge */
9static const unsigned int gappov = 8; /* vert outer gap between windows and screen edge */ 9static const unsigned int gappov = 10; /* vert outer gap between windows and screen edge */
10static const int smartgaps = 0; /* 1 means no outer gap when there is only one window */ 10static const int smartgaps = 0; /* 1 means no outer gap when there is only one window */
11static const int showbar = 1; /* 0 means no bar */ 11static const int showbar = 1; /* 0 means no bar */
12static const int topbar = 1; /* 0 means bottom bar */ 12static const int topbar = 1; /* 0 means bottom bar */
13static const char *fonts[] = { "Hermit:pixelsize=11:antialias=true:autohint=true" }; 13static const char *fonts[] = { "Hermit:pixelsize=12.5:antialias=true:autohint=true" };
14static const char col_gray1[] = "#696969"; 14static const char col_gray1[] = "#696969";
15static const char col_gray2[] = "#000000"; 15static const char col_gray2[] = "#000000";
16static const char col_gray3[] = "#c6c8d1"; 16static const char col_gray3[] = "#c6c8d1";
17static const char col_gray4[] = "#696969"; 17static const char col_gray4[] = "#696969";
18static const char col_cyan[] = "#e0e0e0"; 18static const char col_cyan[] = "#e0e0e0";
19static const char col_black[] = "#000000";
20static const char col_red[] = "#ff0000";
21static const char col_yellow[] = "#ffff00";
22static const char col_white[] = "#ffffff";
23#define NUMCOLORS 4
24static const char *colors[][3] = { 19static const char *colors[][3] = {
25 /* fg bg border */ 20 /* fg bg border */
26 [SchemeNorm] = { col_gray4, col_gray2, col_gray2 }, 21 [SchemeNorm] = { col_gray4, col_gray2, col_gray2 },
27 [SchemeSel] = { col_gray3, col_gray2, col_gray2 }, 22 [SchemeSel] = { col_gray3, col_gray2, col_gray2},
28 [SchemeWarn] = { col_black, col_yellow, col_red },
29 [SchemeUrgent]= { col_white, col_red, col_red },
30}; 23};
31 24
32/* tagging */ 25/* tagging */
@@ -45,7 +38,7 @@ static const Rule rules[] = {
45/* layout(s) */ 38/* layout(s) */
46static const float mfact = 0.50; /* factor of master area size [0.05..0.95] */ 39static const float mfact = 0.50; /* factor of master area size [0.05..0.95] */
47static const int nmaster = 1; /* number of clients in master area */ 40static const int nmaster = 1; /* number of clients in master area */
48static const int resizehints = 0; /* 1 means respect size hints in tiled resizals */ 41static const int resizehints = 1; /* 1 means respect size hints in tiled resizals */
49 42
50static const Layout layouts[] = { 43static const Layout layouts[] = {
51 /* symbol arrange function */ 44 /* symbol arrange function */
@@ -70,7 +63,7 @@ static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn()
70static const char *dmenucmd[] = { "menu", NULL }; 63static const char *dmenucmd[] = { "menu", NULL };
71static const char *termcmd[] = { "st", NULL }; 64static const char *termcmd[] = { "st", NULL };
72static const char scratchpadname[] = "scratchpad"; 65static const char scratchpadname[] = "scratchpad";
73static const char *scratchpadcmd[] = { "st", "-t", scratchpadname, "-g", "80x24", NULL }; 66static const char *scratchpadcmd[] = { "st", "-t", scratchpadname, "-g", "120x34", NULL };
74 67
75/* volume */ 68/* volume */
76static const char *upvol[] = { "pulsemixer", "--change-volume", "+5", NULL }; 69static const char *upvol[] = { "pulsemixer", "--change-volume", "+5", NULL };
@@ -82,11 +75,6 @@ static const char *shut[] = { "shut", NULL };
82static const char *brightup[] = { "doas", "bup", NULL }; 75static const char *brightup[] = { "doas", "bup", NULL };
83static const char *brightdown[] = { "doas", "bdown", NULL }; 76static const char *brightdown[] = { "doas", "bdown", NULL };
84 77
85/* cmus */
86static const char *plyrnext[] = { "cmus-remote", "-n", NULL };
87static const char *plyrprev[] = { "cmus-remote", "-r", NULL };
88static const char *plyrplay[] = { "cmus-remote", "-u", NULL };
89
90/* lock */ 78/* lock */
91static const char *lock[] = { "xset", "s", "activate", NULL }; 79static const char *lock[] = { "xset", "s", "activate", NULL };
92 80
@@ -101,9 +89,6 @@ static Key keys[] = {
101 { 0, XF86XK_AudioRaiseVolume, spawn, {.v = upvol } }, 89 { 0, XF86XK_AudioRaiseVolume, spawn, {.v = upvol } },
102 { 0, XF86XK_MonBrightnessUp, spawn, {.v = brightup } }, 90 { 0, XF86XK_MonBrightnessUp, spawn, {.v = brightup } },
103 { 0, XF86XK_MonBrightnessDown, spawn, {.v = brightdown } }, 91 { 0, XF86XK_MonBrightnessDown, spawn, {.v = brightdown } },
104 { 0, XF86XK_AudioNext, spawn, {.v = plyrnext } },
105 { 0, XF86XK_AudioPrev, spawn, {.v = plyrprev } },
106 { 0, XF86XK_AudioPlay, spawn, {.v = plyrplay } },
107 { MODKEY|ShiftMask, XK_Delete, spawn, {.v = lock } }, 92 { MODKEY|ShiftMask, XK_Delete, spawn, {.v = lock } },
108 { MODKEY, XK_b, togglebar, {0} }, 93 { MODKEY, XK_b, togglebar, {0} },
109 { MODKEY, XK_j, focusstack, {.i = +1 } }, 94 { MODKEY, XK_j, focusstack, {.i = +1 } },
@@ -112,14 +97,14 @@ static Key keys[] = {
112 { MODKEY, XK_d, incnmaster, {.i = -1 } }, 97 { MODKEY, XK_d, incnmaster, {.i = -1 } },
113 { MODKEY, XK_h, setmfact, {.f = -0.05} }, 98 { MODKEY, XK_h, setmfact, {.f = -0.05} },
114 { MODKEY, XK_l, setmfact, {.f = +0.05} }, 99 { MODKEY, XK_l, setmfact, {.f = +0.05} },
115 { MODKEY|Mod1Mask, XK_h, incrgaps, {.i = +1 } }, 100 { MODKEY|Mod4Mask, XK_h, incrgaps, {.i = +1 } },
116 { MODKEY|Mod1Mask, XK_l, incrgaps, {.i = -1 } }, 101 { MODKEY|Mod4Mask, XK_l, incrgaps, {.i = -1 } },
117 { MODKEY|Mod1Mask|ShiftMask, XK_h, incrogaps, {.i = +1 } }, 102 { MODKEY|Mod4Mask|ShiftMask, XK_h, incrogaps, {.i = +1 } },
118 { MODKEY|Mod1Mask|ShiftMask, XK_l, incrogaps, {.i = -1 } }, 103 { MODKEY|Mod4Mask|ShiftMask, XK_l, incrogaps, {.i = -1 } },
119 { MODKEY|Mod1Mask|ControlMask, XK_h, incrigaps, {.i = +1 } }, 104 { MODKEY|Mod4Mask|ControlMask, XK_h, incrigaps, {.i = +1 } },
120 { MODKEY|Mod1Mask|ControlMask, XK_l, incrigaps, {.i = -1 } }, 105 { MODKEY|Mod4Mask|ControlMask, XK_l, incrigaps, {.i = -1 } },
121 { MODKEY|Mod1Mask, XK_0, togglegaps, {0} }, 106 { MODKEY|Mod4Mask, XK_0, togglegaps, {0} },
122 { MODKEY|Mod1Mask|ShiftMask, XK_0, defaultgaps, {0} }, 107 { MODKEY|Mod4Mask|ShiftMask, XK_0, defaultgaps, {0} },
123 { MODKEY, XK_y, incrihgaps, {.i = +1 } }, 108 { MODKEY, XK_y, incrihgaps, {.i = +1 } },
124 { MODKEY, XK_o, incrihgaps, {.i = -1 } }, 109 { MODKEY, XK_o, incrihgaps, {.i = -1 } },
125 { MODKEY|ControlMask, XK_y, incrivgaps, {.i = +1 } }, 110 { MODKEY|ControlMask, XK_y, incrivgaps, {.i = +1 } },