1
1
/* See LICENSE file for copyright and license details. */
2
2
3
3
/* appearance */
4
- static const char font [] = "-*-terminus-medium-r-*-*-16-*-*-*-*-*-*-*" ;
4
+ static const char * fonts [] = {
5
+ "monospace:size=10"
6
+ };
7
+ static const char dmenufont [] = "monospace:size=10" ;
5
8
static const char normbordercolor [] = "#444444" ;
6
9
static const char normbgcolor [] = "#222222" ;
7
10
static const char normfgcolor [] = "#bbbbbb" ;
@@ -10,23 +13,27 @@ static const char selbgcolor[] = "#005577";
10
13
static const char selfgcolor [] = "#eeeeee" ;
11
14
static const unsigned int borderpx = 1 ; /* border pixel of windows */
12
15
static const unsigned int snap = 32 ; /* snap pixel */
13
- static const Bool showbar = True ; /* False means no bar */
14
- static const Bool topbar = True ; /* False means bottom bar */
16
+ static const int showbar = 1 ; /* 0 means no bar */
17
+ static const int topbar = 1 ; /* 0 means bottom bar */
15
18
16
19
/* tagging */
17
20
static const char * tags [] = { "1" , "2" , "3" , "4" , "5" , "6" , "7" , "8" , "9" };
18
21
19
22
static const Rule rules [] = {
23
+ /* xprop(1):
24
+ * WM_CLASS(STRING) = instance, class
25
+ * WM_NAME(STRING) = title
26
+ */
20
27
/* class instance title tags mask isfloating monitor */
21
- { "Gimp" , NULL , NULL , 0 , True , -1 },
22
- { "Firefox" , NULL , NULL , 1 << 0 , False , -1 },
28
+ { "Gimp" , NULL , NULL , 0 , 1 , -1 },
29
+ { "Firefox" , NULL , NULL , 1 << 0 , 0 , -1 },
23
30
};
24
31
25
32
/* layout(s) */
26
- static const float mfact = 0.55 ; /* factor of master area size [0.05..0.95] */
27
- static const int nmaster = 1 ; /* number of clients in master area */
28
- /* False to take care of "empty space around terminals" problem */
29
- static const Bool resizehints = False ; /* True means respect size hints in tiled resizals */
33
+ static const float mfact = 0.55 ; /* factor of master area size [0.05..0.95] */
34
+ static const int nmaster = 1 ; /* number of clients in master area */
35
+ // needs to be 0 to solve ugly spacing issues
36
+ static const int resizehints = 0 ; /* 1 means respect size hints in tiled resizals */
30
37
31
38
static const Layout layouts [] = {
32
39
/* symbol arrange function */
@@ -47,25 +54,27 @@ static const Layout layouts[] = {
47
54
#define SHCMD (cmd ) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } }
48
55
49
56
/* commands */
50
- static const char * dmenucmd [] = { "dmenu_run" , "-fn" , font , "-nb" , normbgcolor , "-nf" , normfgcolor , "-sb" , selbgcolor , "-sf" , selfgcolor , NULL };
57
+ static char dmenumon [2 ] = "0" ; /* component of dmenucmd, manipulated in spawn() */
58
+ static const char * dmenucmd [] = { "dmenu_run" , "-m" , dmenumon , "-fn" , dmenufont , "-nb" , normbgcolor , "-nf" , normfgcolor , "-sb" , selbgcolor , "-sf" , selfgcolor , NULL };
59
+ static const char * termcmd [] = { "st" , NULL };
51
60
52
- // misc
61
+ // urxvt
62
+ static const char * utermcmd [] = { "urxvt" , NULL };
63
+ // firefox
53
64
static const char * ffcmd [] = { "firefox" , NULL };
54
- static const char * termcmd [] = { "urxvt" , NULL };
55
-
56
65
// dropdown terminal with tmux - https://github.com/noctuid/tdrop
57
66
static const char * termdropcmd [] = { "tdrop" , "-a" , "-s" , "dropdown" , "urxvt" , NULL };
58
67
59
- // note that konsole and gnome-terminal are mapped to the same key
60
68
static Key keys [] = {
61
69
/* modifier key function argument */
62
70
{ MODKEY , XK_p , spawn , {.v = dmenucmd } },
63
- //misc
71
+ { MODKEY |ShiftMask , XK_Return , spawn , {.v = termcmd } },
72
+ // firefox
64
73
{ MODKEY |ShiftMask , XK_f , spawn , {.v = ffcmd } },
65
- { MODKEY |ShiftMask , XK_u , spawn , {.v = termcmd } },
74
+ // urxvt
75
+ { MODKEY |ShiftMask , XK_u , spawn , {.v = utermcmd } },
66
76
// drop down terminal
67
77
{ MODKEY , XK_o , spawn , {.v = termdropcmd } },
68
- //others
69
78
{ MODKEY , XK_b , togglebar , {0 } },
70
79
{ MODKEY , XK_j , focusstack , {.i = +1 } },
71
80
{ MODKEY , XK_k , focusstack , {.i = -1 } },
0 commit comments