diff options
Diffstat (limited to 'dwm/config.h')
-rw-r--r-- | dwm/config.h | 47 |
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 */ |
4 | static const unsigned int borderpx = 0; /* border pixel of windows */ | 4 | static const unsigned int borderpx = 0; /* border pixel of windows */ |
5 | static const unsigned int snap = 32; /* snap pixel */ | 5 | static const unsigned int snap = 32; /* snap pixel */ |
6 | static const unsigned int gappih = 8; /* horiz inner gap between windows */ | 6 | static const unsigned int gappih = 10; /* horiz inner gap between windows */ |
7 | static const unsigned int gappiv = 8; /* vert inner gap between windows */ | 7 | static const unsigned int gappiv = 10; /* vert inner gap between windows */ |
8 | static const unsigned int gappoh = 8; /* horiz outer gap between windows and screen edge */ | 8 | static const unsigned int gappoh = 10; /* horiz outer gap between windows and screen edge */ |
9 | static const unsigned int gappov = 8; /* vert outer gap between windows and screen edge */ | 9 | static const unsigned int gappov = 10; /* vert outer gap between windows and screen edge */ |
10 | static const int smartgaps = 0; /* 1 means no outer gap when there is only one window */ | 10 | static const int smartgaps = 0; /* 1 means no outer gap when there is only one window */ |
11 | static const int showbar = 1; /* 0 means no bar */ | 11 | static const int showbar = 1; /* 0 means no bar */ |
12 | static const int topbar = 1; /* 0 means bottom bar */ | 12 | static const int topbar = 1; /* 0 means bottom bar */ |
13 | static const char *fonts[] = { "Hermit:pixelsize=11:antialias=true:autohint=true" }; | 13 | static const char *fonts[] = { "Hermit:pixelsize=12.5:antialias=true:autohint=true" }; |
14 | static const char col_gray1[] = "#696969"; | 14 | static const char col_gray1[] = "#696969"; |
15 | static const char col_gray2[] = "#000000"; | 15 | static const char col_gray2[] = "#000000"; |
16 | static const char col_gray3[] = "#c6c8d1"; | 16 | static const char col_gray3[] = "#c6c8d1"; |
17 | static const char col_gray4[] = "#696969"; | 17 | static const char col_gray4[] = "#696969"; |
18 | static const char col_cyan[] = "#e0e0e0"; | 18 | static const char col_cyan[] = "#e0e0e0"; |
19 | static const char col_black[] = "#000000"; | ||
20 | static const char col_red[] = "#ff0000"; | ||
21 | static const char col_yellow[] = "#ffff00"; | ||
22 | static const char col_white[] = "#ffffff"; | ||
23 | #define NUMCOLORS 4 | ||
24 | static const char *colors[][3] = { | 19 | static 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) */ |
46 | static const float mfact = 0.50; /* factor of master area size [0.05..0.95] */ | 39 | static const float mfact = 0.50; /* factor of master area size [0.05..0.95] */ |
47 | static const int nmaster = 1; /* number of clients in master area */ | 40 | static const int nmaster = 1; /* number of clients in master area */ |
48 | static const int resizehints = 0; /* 1 means respect size hints in tiled resizals */ | 41 | static const int resizehints = 1; /* 1 means respect size hints in tiled resizals */ |
49 | 42 | ||
50 | static const Layout layouts[] = { | 43 | static 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() | |||
70 | static const char *dmenucmd[] = { "menu", NULL }; | 63 | static const char *dmenucmd[] = { "menu", NULL }; |
71 | static const char *termcmd[] = { "st", NULL }; | 64 | static const char *termcmd[] = { "st", NULL }; |
72 | static const char scratchpadname[] = "scratchpad"; | 65 | static const char scratchpadname[] = "scratchpad"; |
73 | static const char *scratchpadcmd[] = { "st", "-t", scratchpadname, "-g", "80x24", NULL }; | 66 | static const char *scratchpadcmd[] = { "st", "-t", scratchpadname, "-g", "120x34", NULL }; |
74 | 67 | ||
75 | /* volume */ | 68 | /* volume */ |
76 | static const char *upvol[] = { "pulsemixer", "--change-volume", "+5", NULL }; | 69 | static const char *upvol[] = { "pulsemixer", "--change-volume", "+5", NULL }; |
@@ -82,11 +75,6 @@ static const char *shut[] = { "shut", NULL }; | |||
82 | static const char *brightup[] = { "doas", "bup", NULL }; | 75 | static const char *brightup[] = { "doas", "bup", NULL }; |
83 | static const char *brightdown[] = { "doas", "bdown", NULL }; | 76 | static const char *brightdown[] = { "doas", "bdown", NULL }; |
84 | 77 | ||
85 | /* cmus */ | ||
86 | static const char *plyrnext[] = { "cmus-remote", "-n", NULL }; | ||
87 | static const char *plyrprev[] = { "cmus-remote", "-r", NULL }; | ||
88 | static const char *plyrplay[] = { "cmus-remote", "-u", NULL }; | ||
89 | |||
90 | /* lock */ | 78 | /* lock */ |
91 | static const char *lock[] = { "xset", "s", "activate", NULL }; | 79 | static 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 } }, |