simple titlebars; split source up

This commit is contained in:
seanpringle
2012-09-25 01:05:44 +10:00
parent 96af3db763
commit dc12d5a411
12 changed files with 1636 additions and 881 deletions

View File

@@ -6,6 +6,12 @@
#define BORDER_URGENT "Red"
#define BORDER_ABOVE "Dark Green"
// Title bar xft font
#define TITLE "sans-10"
#define TITLE_BLUR "Black"
#define TITLE_FOCUS "Black"
#define TITLE_ELLIPSIS 30
// There are three static tiles called SPOT1, SPOT2, and SPOT3.
// Want more tiles? Different layouts? Floating? Go away ;)
// -------------------------------
@@ -90,11 +96,22 @@ binding keys[] = {
{ .mod = ShiftMask|Mod4Mask, .key = XK_Down, .act = action_move_direction, .num = DOWN },
// 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_raise_nth, .num = 1 },
// Cycle through all windows in the current spot.
{ .mod = Mod4Mask, .key = XK_grave, .act = action_cycle },
// Raise nth window in the current spot.
{ .mod = Mod4Mask, .key = XK_1, .act = action_raise_nth, .num = 1 },
{ .mod = Mod4Mask, .key = XK_2, .act = action_raise_nth, .num = 2 },
{ .mod = Mod4Mask, .key = XK_3, .act = action_raise_nth, .num = 3 },
{ .mod = Mod4Mask, .key = XK_4, .act = action_raise_nth, .num = 4 },
{ .mod = Mod4Mask, .key = XK_5, .act = action_raise_nth, .num = 5 },
{ .mod = Mod4Mask, .key = XK_6, .act = action_raise_nth, .num = 6 },
{ .mod = Mod4Mask, .key = XK_7, .act = action_raise_nth, .num = 7 },
{ .mod = Mod4Mask, .key = XK_8, .act = action_raise_nth, .num = 8 },
{ .mod = Mod4Mask, .key = XK_9, .act = action_raise_nth, .num = 9 },
// Gracefully close the current window.
{ .mod = Mod4Mask, .key = XK_Escape, .act = action_close },