fix dwm lock
[config.git] / suckless / dwm / config.parkeon.diff
1 diff --git a/suckless/dwm/config.def.h b/suckless/dwm/config.def.h
2 index af06b88..2818bcc 100644
3 --- a/suckless/dwm/config.def.h
4 +++ b/suckless/dwm/config.def.h
5 @@ -22,8 +22,8 @@ static const Rule rules[] = {
6          *      WM_NAME(STRING) = title
7          */
8         /* class      instance    title       tags mask     isfloating   monitor */
9 -       { "Gimp",     NULL,       NULL,       0,            True,        -1 },
10 -       { "Firefox",  NULL,       NULL,       1 << 8,       False,       -1 },
11 +       { "Thunderbird",     NULL,       NULL,       0,            False,        1 },
12 +       { "Gajim",  NULL,       NULL,       1 << 1,       False,       1 },
13  };
14  
15  /* layout(s) */
16 @@ -51,15 +51,19 @@ static const Layout layouts[] = {
17  
18  /* commands */
19  static const char *dmenucmd[] = { "dmenu_run", "-fn", font, "-nb", normbgcolor, "-nf", normfgcolor, "-sb", selbgcolor, "-sf", selfgcolor, NULL };
20 -static const char *termcmd[]  = { "xfce4-terminal", NULL };
21 +static const char *termcmd[]  = { "gnome-terminal", NULL };
22  static const char *browsercmd[]  = { "firefox", NULL };
23  static const char *projectcmd[]  = { "launchProjectVim.sh", NULL };
24 +static const char *lockcmd[]  = { "slock", NULL };
25 +static const char *filecmd[]  = { "nautilus", "--no-desktop", NULL };
26  
27  static Key keys[] = {
28         /* modifier                     key        function        argument */
29         { MODKEY,                       XK_p,      spawn,          {.v = dmenucmd } },
30         { MODKEY|ShiftMask,             XK_Return, spawn,          {.v = termcmd } },
31         { MODKEY|ShiftMask,             XK_e,      spawn,          {.v = browsercmd } },
32 +       { MODKEY|ShiftMask,             XK_f,      spawn,          {.v = filecmd } },
33 +       { MODKEY|ShiftMask,             XK_l,      spawn,          {.v = lockcmd } },
34         { MODKEY,                       XK_v,      spawn,          {.v = projectcmd } },
35         { MODKEY,                       XK_b,      togglebar,      {0} },
36         { MODKEY,                       XK_j,      focusstack,     {.i = +1 } },
37 diff --git a/suckless/dwm/config.mk b/suckless/dwm/config.mk
38 index e5bc676..c9ef9cd 100644
39 --- a/suckless/dwm/config.mk
40 +++ b/suckless/dwm/config.mk
41 @@ -11,8 +11,8 @@ X11INC = /usr/X11R6/include
42  X11LIB = /usr/X11R6/lib
43  
44  # Xinerama, comment if you don't want it
45 -#XINERAMALIBS  = -lXinerama
46 -#XINERAMAFLAGS = -DXINERAMA
47 +XINERAMALIBS  = -lXinerama
48 +XINERAMAFLAGS = -DXINERAMA
49  
50  # includes and libs
51  INCS = -I${X11INC}
52 diff --git a/suckless/dwm/config.parkeon.diff b/suckless/dwm/config.parkeon.diff
53 index f06452d..e69de29 100644
54 --- a/suckless/dwm/config.parkeon.diff
55 +++ b/suckless/dwm/config.parkeon.diff
56 @@ -1,51 +0,0 @@
57 -diff --git a/suckless/dwm/config.def.h b/suckless/dwm/config.def.h
58 -index af06b88..6c0dcb4 100644
59 ---- a/suckless/dwm/config.def.h
60 -+++ b/suckless/dwm/config.def.h
61 -@@ -22,8 +22,8 @@ static const Rule rules[] = {
62 -        *      WM_NAME(STRING) = title
63 -        */
64 -       /* class      instance    title       tags mask     isfloating   monitor */
65 --      { "Gimp",     NULL,       NULL,       0,            True,        -1 },
66 --      { "Firefox",  NULL,       NULL,       1 << 8,       False,       -1 },
67 -+      { "Thunderbird",     NULL,       NULL,       0,            False,        1 },
68 -+      { "Gajim",  NULL,       NULL,       1 << 1,       False,       1 },
69 - };
70
71 - /* layout(s) */
72 -@@ -51,15 +51,19 @@ static const Layout layouts[] = {
73
74 - /* commands */
75 - static const char *dmenucmd[] = { "dmenu_run", "-fn", font, "-nb", normbgcolor, "-nf", normfgcolor, "-sb", selbgcolor, "-sf", selfgcolor, NULL };
76 --static const char *termcmd[]  = { "xfce4-terminal", NULL };
77 -+static const char *termcmd[]  = { "gnome-terminal", NULL };
78 - static const char *browsercmd[]  = { "firefox", NULL };
79 - static const char *projectcmd[]  = { "launchProjectVim.sh", NULL };
80 -+static const char *lockcmd[]  = { "slock", NULL };
81 -+static const char *filecmd[]  = { "nautilus", "--no-desktop", NULL };
82
83 - static Key keys[] = {
84 -       /* modifier                     key        function        argument */
85 -       { MODKEY,                       XK_p,      spawn,          {.v = dmenucmd } },
86 -       { MODKEY|ShiftMask,             XK_Return, spawn,          {.v = termcmd } },
87 -       { MODKEY|ShiftMask,             XK_e,      spawn,          {.v = browsercmd } },
88 -+      { MODKEY|ShiftMask,             XK_f,      spawn,          {.v = filecmd } },
89 -+      { MODKEY|ShiftMask,             XK_g,      spawn,          {.v = lockcmd } },
90 -       { MODKEY,                       XK_v,      spawn,          {.v = projectcmd } },
91 -       { MODKEY,                       XK_b,      togglebar,      {0} },
92 -       { MODKEY,                       XK_j,      focusstack,     {.i = +1 } },
93 -diff --git a/suckless/dwm/config.mk b/suckless/dwm/config.mk
94 -index e5bc676..c9ef9cd 100644
95 ---- a/suckless/dwm/config.mk
96 -+++ b/suckless/dwm/config.mk
97 -@@ -11,8 +11,8 @@ X11INC = /usr/X11R6/include
98 - X11LIB = /usr/X11R6/lib
99
100 - # Xinerama, comment if you don't want it
101 --#XINERAMALIBS  = -lXinerama
102 --#XINERAMAFLAGS = -DXINERAMA
103 -+XINERAMALIBS  = -lXinerama
104 -+XINERAMAFLAGS = -DXINERAMA
105
106 - # includes and libs
107 - INCS = -I${X11INC}