aboutsummaryrefslogtreecommitdiff
path: root/config.def.h
diff options
context:
space:
mode:
authorIvan Kanakarakis <ivan.kanak@gmail.com>2012-02-05 18:51:31 +0200
committerIvan Kanakarakis <ivan.kanak@gmail.com>2012-02-05 18:51:31 +0200
commit4f567079cb5649ec504fcc5d7e4b6da4dcde2e8d (patch)
tree00b5bce6a9460905b4a0356c9ac10b43c83faf89 /config.def.h
parent4c121cc7cd40c3c58405fbdf4bd46ac953ba2be5 (diff)
core is as minimal and practical as it can be
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h32
1 files changed, 6 insertions, 26 deletions
diff --git a/config.def.h b/config.def.h
index 05ab773..6857df6 100644
--- a/config.def.h
+++ b/config.def.h
@@ -11,7 +11,6 @@
/** generic settings **/
#define MASTER_SIZE 0.52
-#define SHOW_PANEL True /* show panel by default on exec */
#define TOP_PANEL True /* False mean panel is on bottom */
#define PANEL_HEIGHT 18 /* 0 for no space for panel, thus no panel */
#define DEFAULT_MODE TILE /* TILE MONOCLE BSTACK GRID */
@@ -23,22 +22,17 @@
#define FOCUS "#ff950e" /* focused window border color */
#define UNFOCUS "#444444" /* unfocused window border color */
#define DESKTOPS 4 /* number of desktops - edit DESKTOPCHANGE keys to suit */
-#define DEFAULT_DESKTOP 0 /* the desktop to focus on exec */
#define MINWSZ 50 /* minimum window size in pixels */
-/** open applications to specified desktop **/
+/** open applications to specified desktop. if desktop is negative, then spawn in current **/
static const AppRule rules[] = { \
- /* class desktop follow float */ /* desktop index starts from 0 */
- { "MPlayer", 3, True, False }, /* if there are 4 desktops, 3 is the */
- { "Gimp", 0, False, True }, /* last desktop, 0 is always the fist */
+ /* class desktop follow float */
+ { "MPlayer", 3, True, False },
+ { "Gimp", 0, False, True },
};
-/* helper for spawning shell commands */
-#define SHCMD(cmd) {.com = (const char*[]){"/bin/sh", "-c", cmd, NULL}}
-
/** commands **/
-static const char *termcmd[] = { "xterm", NULL };
-static const char *dmenucmd[] = { "dmenu", NULL };
+static const char *termcmd[] = { "uxterm", NULL };
#define DESKTOPCHANGE(K,N) \
{ MOD1, K, change_desktop, {.i = N}}, \
@@ -47,20 +41,9 @@ static const char *dmenucmd[] = { "dmenu", NULL };
/** Shortcuts **/
static key keys[] = {
/* modifier key function argument */
- { MOD1, XK_b, togglepanel, {NULL}},
- { MOD1, XK_BackSpace, focusurgent, {NULL}},
{ MOD1|SHIFT, XK_c, killclient, {NULL}},
{ MOD1, XK_j, next_win, {NULL}},
{ MOD1, XK_k, prev_win, {NULL}},
- { MOD1, XK_h, resize_master, {.i = -10}}, /* decrease */
- { MOD1, XK_l, resize_master, {.i = +10}}, /* increase */
- { MOD1, XK_o, resize_stack, {.i = -10}}, /* shrink */
- { MOD1, XK_p, resize_stack, {.i = +10}}, /* grow */
- { MOD1|CONTROL, XK_h, rotate, {.i = PREV}},
- { MOD1|CONTROL, XK_l, rotate, {.i = NEXT}},
- { MOD1|SHIFT, XK_h, rotate_filled, {.i = PREV}},
- { MOD1|SHIFT, XK_l, rotate_filled, {.i = NEXT}},
- { MOD1, XK_Tab, last_desktop, {NULL}},
{ MOD1, XK_Return, swap_master, {NULL}},
{ MOD1|SHIFT, XK_j, move_down, {NULL}},
{ MOD1|SHIFT, XK_k, move_up, {NULL}},
@@ -68,10 +51,8 @@ static key keys[] = {
{ MOD1|SHIFT, XK_m, switch_mode, {.i = MONOCLE}},
{ MOD1|SHIFT, XK_b, switch_mode, {.i = BSTACK}},
{ MOD1|SHIFT, XK_g, switch_mode, {.i = GRID}},
- { MOD1|CONTROL, XK_r, quit, {.i = 0}}, /* quit with exit value 0 */
- { MOD1|CONTROL, XK_q, quit, {.i = 1}}, /* quit with exit value 1 */
+ { MOD1|CONTROL, XK_r, quit, {NULL}},
{ MOD1|SHIFT, XK_Return, spawn, {.com = termcmd}},
- { MOD4, XK_v, spawn, {.com = dmenucmd}},
DESKTOPCHANGE( XK_F1, 0)
DESKTOPCHANGE( XK_F2, 1)
DESKTOPCHANGE( XK_F3, 2)
@@ -81,6 +62,5 @@ static key keys[] = {
static Button buttons[] = {
{ MOD1, Button1, mousemotion, {.i = MOVE}},
{ MOD1, Button3, mousemotion, {.i = RESIZE}},
- { MOD4, Button3, spawn, {.com = dmenucmd}},
};
#endif