Permalink
Browse files

new ver of monsterwm

  • Loading branch information...
redlotus committed Oct 1, 2012
1 parent 0d090ae commit f08541b0e2261288f8cc5ef945271ddb1b9dbe65
Showing with 103 additions and 103 deletions.
  1. +16 −14 config.h
  2. +1 −1 monsterwm.1
  3. +86 −88 monsterwm.c
View
@@ -19,6 +19,7 @@
#define FOLLOW_WINDOW False /* follow the window when moved to a different desktop */
#define FOLLOW_MOUSE False /* focus the window the mouse just entered */
#define CLICK_TO_FOCUS True /* focus an unfocused window when clicked */
+#define FOCUS_BUTTON Button3 /* mouse button to be used along with CLICK_TO_FOCUS */
#define BORDER_WIDTH 2 /* window border width */
#define FOCUS "#8fe3ff" /* focused window border color */
#define UNFOCUS "#444444" /* unfocused window border color */
@@ -60,9 +61,9 @@ static const char *shutdowncmd[] = { "dbus-send", "--system", "--print-reply"
static Key keys[] = {
/* modifier key function argument */
/* Basic commands */
- { MOD4, XK_b, togglepanel, {NULL}},
+ { MOD4|SHIFT, XK_b, togglepanel, {NULL}},
{ MOD4, XK_u, focusurgent, {NULL}},
- { MOD4|SHIFT, XK_c, killclient, {NULL}},
+ { MOD4, XK_c, killclient, {NULL}},
{ MOD4, XK_j, next_win, {NULL}},
{ MOD4, XK_k, prev_win, {NULL}},
{ MOD4, XK_h, resize_master, {.i = -10}}, /* decrease size in px */
@@ -78,10 +79,10 @@ static Key keys[] = {
{ MOD4|SHIFT, XK_j, move_down, {NULL}},
{ MOD4|SHIFT, XK_k, move_up, {NULL}},
{ MOD4|SHIFT, XK_t, switch_mode, {.i = TILE}},
- { MOD4|SHIFT, XK_m, switch_mode, {.i = MONOCLE}},
- { MOD4|SHIFT, XK_b, switch_mode, {.i = BSTACK}},
- { MOD4|SHIFT, XK_g, switch_mode, {.i = GRID}},
- { MOD4|SHIFT, XK_f, switch_mode, {.i = FLOAT}},
+ { MOD4, XK_m, switch_mode, {.i = MONOCLE}},
+ { MOD4, XK_b, switch_mode, {.i = BSTACK}},
+ { MOD4, XK_g, switch_mode, {.i = GRID}},
+ { MOD4, XK_f, switch_mode, {.i = FLOAT}},
{ MOD4|CONTROL, XK_r, quit, {.i = 0}}, /* quit with exit value 0 */
{ MOD4|CONTROL, XK_q, quit, {.i = 1}}, /* quit with exit value 1 */
/* Other commands */
@@ -92,14 +93,15 @@ static Key keys[] = {
{ MOD1|CONTROL, XK_h, spawn, {.com = hibernatecmd}},
{ MOD1|CONTROL, XK_r, spawn, {.com = rebootcmd}},
{ MOD1|CONTROL, XK_q, spawn, {.com = shutdowncmd}},
- //~ { MOD4, XK_j, moveresize, {.v = (int []){ 0, 25, 0, 0 }}}, /* move up */
- //~ { MOD4, XK_k, moveresize, {.v = (int []){ 0, -25, 0, 0 }}}, /* move down */
- //~ { MOD4, XK_l, moveresize, {.v = (int []){ 25, 0, 0, 0 }}}, /* move right */
- //~ { MOD4, XK_h, moveresize, {.v = (int []){ -25, 0, 0, 0 }}}, /* move left */
- //~ { MOD4|SHIFT, XK_j, moveresize, {.v = (int []){ 0, 0, 0, 25 }}}, /* height grow */
- //~ { MOD4|SHIFT, XK_k, moveresize, {.v = (int []){ 0, 0, 0, -25 }}}, /* height shrink */
- //~ { MOD4|SHIFT, XK_l, moveresize, {.v = (int []){ 0, 0, 25, 0 }}}, /* width grow */
- //~ { MOD4|SHIFT, XK_h, moveresize, {.v = (int []){ 0, 0, -25, 0 }}}, /* width shrink */
+ /* Moves, resizes + changes layout*/
+ { MOD1|SHIFT, XK_j, moveresize, {.v = (int []){ 0, 25, 0, 0 }}}, /* move up */
+ { MOD1|SHIFT, XK_k, moveresize, {.v = (int []){ 0, -25, 0, 0 }}}, /* move down */
+ { MOD1|SHIFT, XK_l, moveresize, {.v = (int []){ 25, 0, 0, 0 }}}, /* move right */
+ { MOD1|SHIFT, XK_h, moveresize, {.v = (int []){ -25, 0, 0, 0 }}}, /* move left */
+ { MOD1|CONTROL, XK_j, moveresize, {.v = (int []){ 0, 0, 0, 25 }}}, /* height grow */
+ { MOD1|CONTROL, XK_k, moveresize, {.v = (int []){ 0, 0, 0, -25 }}}, /* height shrink */
+ { MOD1|CONTROL, XK_l, moveresize, {.v = (int []){ 0, 0, 25, 0 }}}, /* width grow */
+ { MOD1|CONTROL, XK_h, moveresize, {.v = (int []){ 0, 0, -25, 0 }}}, /* width shrink */
DESKTOPCHANGE( XK_1, 0)
DESKTOPCHANGE( XK_2, 1)
DESKTOPCHANGE( XK_3, 2)
View
@@ -6,7 +6,7 @@ monsterwm \- minimal and dynamic tiling window manager
.RB [ \-v ]
.SH DESCRIPTION
.I monsterwm
-is a minimal, lightweight, tiny but monsterous, dynamic tiling window manager.
+is a minimal, lightweight, tiny but monstrous, dynamic tiling window manager.
.P
.SH MODES
.I monsterwm
Oops, something went wrong.

0 comments on commit f08541b

Please sign in to comment.