This commit is contained in:
seanpringle
2012-08-31 15:06:43 +10:00
parent 008f4e3593
commit 2a5002b14e

View File

@@ -1,47 +1,65 @@
// Cerberus config.
#define BORDER 2 #define BORDER 2
#define BORDER_BLUR "Dark Gray" #define BORDER_BLUR "Dark Gray"
#define BORDER_FOCUS "Royal Blue" #define BORDER_FOCUS "Royal Blue"
// new windows go to the same tile as the active window. // There are three static tiles called SPOT1, SPOT2, and SPOT3.
// this implies auto-raise and focus stealing. // Want more? Go away ;)
//#define SPOT_START SPOT_CURRENT // ------------------------------
// | | |
// new windows go to the tile of best fit. // | | |
// works best when apps remember their size. // | | 2 |
// if tile is not current, window won't steal focus. // | 1 | |
#define SPOT_START SPOT_SMART // | |---------|
// | | |
// all new windows go to a specific tile. // | | 3 |
// if tile is not current, window won't steal focus. // -------------------------------
//#define SPOT_START SPOT1
// Width of SPOT1 as percentage of screen width.
#define SPOT1_WIDTH_PCT 67 #define SPOT1_WIDTH_PCT 67
// Height of SPOT2 as percentage of screen width.
#define SPOT2_HEIGHT_PCT 67 #define SPOT2_HEIGHT_PCT 67
// Make new windows go to the same spot as the current window.
// This implies auto-raise and focus stealing.
//#define SPOT_START SPOT_CURRENT
// Make new windows go to the spot of best fit.
// Works best when apps remember or specify their size.
// If spot is not current, window won't steal focus.
#define SPOT_START SPOT_SMART
// Make all new windows go to a specific spot.
// If spot is not current, window won't steal focus.
//#define SPOT_START SPOT1
binding keys[] = { binding keys[] = {
// focus switching // Focus the top-most window in a spot.
{ .mod = Mod4Mask, .key = XK_1, .act = ACTION_FOCUS_SPOT1 }, { .mod = Mod4Mask, .key = XK_1, .act = ACTION_FOCUS_SPOT1 },
{ .mod = Mod4Mask, .key = XK_2, .act = ACTION_FOCUS_SPOT2 }, { .mod = Mod4Mask, .key = XK_2, .act = ACTION_FOCUS_SPOT2 },
{ .mod = Mod4Mask, .key = XK_3, .act = ACTION_FOCUS_SPOT3 }, { .mod = Mod4Mask, .key = XK_3, .act = ACTION_FOCUS_SPOT3 },
// moving the current window // Move the current window to another spot.
{ .mod = ShiftMask|Mod4Mask, .key = XK_1, .act = ACTION_MOVE_SPOT1 }, { .mod = ShiftMask|Mod4Mask, .key = XK_1, .act = ACTION_MOVE_SPOT1 },
{ .mod = ShiftMask|Mod4Mask, .key = XK_2, .act = ACTION_MOVE_SPOT2 }, { .mod = ShiftMask|Mod4Mask, .key = XK_2, .act = ACTION_MOVE_SPOT2 },
{ .mod = ShiftMask|Mod4Mask, .key = XK_3, .act = ACTION_MOVE_SPOT3 }, { .mod = ShiftMask|Mod4Mask, .key = XK_3, .act = ACTION_MOVE_SPOT3 },
// flip between two windows in the current tile // Flip between the top two windows in the current spot.
{ .mod = Mod4Mask, .key = XK_Tab, .act = ACTION_OTHER }, { .mod = Mod4Mask, .key = XK_Tab, .act = ACTION_OTHER },
// cycle through all windows in the current tile // Cycle through all windows in the current spot.
{ .mod = Mod4Mask, .key = XK_grave, .act = ACTION_CYCLE }, { .mod = Mod4Mask, .key = XK_grave, .act = ACTION_CYCLE },
// gracefully close the current window // Gracefully close the current window.
{ .mod = Mod4Mask, .key = XK_Escape, .act = ACTION_CLOSE }, { .mod = Mod4Mask, .key = XK_Escape, .act = ACTION_CLOSE },
// find or start apps by WM_CLASS (case insensitive) // Find or start apps by WM_CLASS (case insensitive).
{ .mod = AnyModifier, .key = XK_F1, .act = ACTION_FIND_OR_START, .data = "urxvt" }, { .mod = AnyModifier, .key = XK_F1, .act = ACTION_FIND_OR_START, .data = "urxvt" },
{ .mod = AnyModifier, .key = XK_F2, .act = ACTION_FIND_OR_START, .data = "kate" }, { .mod = AnyModifier, .key = XK_F2, .act = ACTION_FIND_OR_START, .data = "kate" },
{ .mod = AnyModifier, .key = XK_F3, .act = ACTION_FIND_OR_START, .data = "chromium" }, { .mod = AnyModifier, .key = XK_F3, .act = ACTION_FIND_OR_START, .data = "chromium" },
{ .mod = AnyModifier, .key = XK_F4, .act = ACTION_FIND_OR_START, .data = "pcmanfm" },
{ .mod = AnyModifier, .key = XK_F5, .act = ACTION_FIND_OR_START, .data = "firefox" },
{ .mod = AnyModifier, .key = XK_F6, .act = ACTION_FIND_OR_START, .data = "xchat" },
}; };