-
Notifications
You must be signed in to change notification settings - Fork 4
/
config.h.def
87 lines (77 loc) · 4.44 KB
/
config.h.def
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
/* config.h for dminiwm.c [ 0.4.5 ] */
#ifndef CONFIG_H
#define CONFIG_H
#define DESKTOPS 6 /* Must edit DESKTOPCHANGE keys to suit */
#define MOD1 Mod1Mask
#define MOD4 Mod4Mask
#define OUTPUT_INFO 0 /* 1=Don't 0=Output info for bipolarbar */
#define MASTER_SIZE 0.52
#define RESIZEMOVEKEY MOD1
#define TOP_PANEL 0 /* 1=Don't 0=Have the panel at the top instead of the bottom */
#define PANEL_HEIGHT 18 /* 0 for no space for a panel */
#define SHOW_BAR 0 /* 1=Don't 0=Have the bar shown with a window open */
#define BORDER_WIDTH 2
#define ATTACH_ASIDE 1 /* 0=TRUE, 1=New window is master */
#define TOP_STACK 1 /* 0=TRUE, 1=New window added to bottom of stack when using ATTACH_ASIDE */
#define DEFAULT_MODE 1 /* 1=Vertical 2=Fullscreen 3=Horizontal 4=grid 5=stacking */
/* Set mode for each desktop - defaults to DEFAULT_MODE */
const unsigned int MODES[] = {1, 2, 3, 4, 5};
/* Only one of FOLLOW_MOUSE and CLICK_TO_FOCUS should be zero */
#define FOLLOW_MOUSE 1 /* 1=Don't 0=Focus the window the mouse just entered */
#define CLICK_TO_FOCUS 0 /* 1=Don't 0=Focus an unfocused window when clicked */
/* Colors */
#define FOCUS "#664422" // dkorange
#define UNFOCUS "#004050" // blueish
static const Convenience convenience[] = { \
/* class desktop follow */
/*{ "Thunar", 2, 1 }, */
};
static const Positional positional[] = { \
/* class x y width height */
/*{ "Thunar", 100,100,800,400 }, */
};
const char* dmenucmd[] = {"dmenu_run","-i","-nb","#666622","-nf","white",NULL};
const char* urxvtcmd[] = {"urxvtc",NULL};
const char* thunarcmd[] = {"thunar",NULL};
#define DESKTOPCHANGE(K,N) \
{ MOD1, K, change_desktop, {.i = N}}, \
{ MOD1|ShiftMask, K, follow_client_to_desktop, {.i = N}}, \
{ MOD4|ShiftMask, K, client_to_desktop, {.i = N}},
static key keys[] = {
/* MOD KEY FUNCTION ARGS */
{ MOD1, XK_h, resize_master, {.i = 10}},
{ MOD1, XK_l, resize_master, {.i = -10}},
{ MOD1, XK_c, kill_client, {NULL}},
{ MOD1, XK_j, next_win, {NULL}},
{ MOD1, XK_k, prev_win, {NULL}},
{ MOD1, XK_v, spawn, {.com = dmenucmd}},
{ MOD1, XK_p, resize_stack, {.i = +10}},
{ MOD1, XK_o, resize_stack, {.i = -10}},
{ MOD1, XK_Tab, last_desktop, {NULL}},
{ MOD1, XK_b, toggle_panel, {NULL}},
{ MOD1, XK_Return, spawn, {.com = urxvtcmd}},
{ MOD1, XK_a, rotate_mode, {.i = 1}},
{ MOD1|ShiftMask, XK_j, move_up, {.i = -10}},
{ MOD1|ShiftMask, XK_k, move_down, {.i = 10}},
{ MOD1|ShiftMask, XK_o, move_sideways, {.i = -10}},//left
{ MOD1|ShiftMask, XK_p, move_sideways, {.i = 10}},//right
{ MOD1|ShiftMask, XK_Return, swap_master, {NULL}},
{ MOD1|ShiftMask, XK_g, switch_mode, {.i = 3}}, // grid
{ MOD1|ShiftMask, XK_h, switch_mode, {.i = 2}}, // horizontal
{ MOD1|ShiftMask, XK_f, switch_mode, {.i = 1}}, // fullscreen
{ MOD1|ShiftMask, XK_v, switch_mode, {.i = 0}}, // vertical
{ MOD1|ShiftMask, XK_c, switch_mode, {.i = 4}}, // stacking
{ MOD1|ShiftMask, XK_m, more_master, {.i = 1}}, // add window to master area
{ MOD1|ShiftMask, XK_l, more_master, {.i = -1}}, // remove window from master area
{ MOD1|ControlMask, XK_q, quit, {NULL}},
{ MOD4, XK_Right, rotate_desktop, {.i = 1}},
{ MOD4, XK_Left, rotate_desktop, {.i = -1}},
{ MOD4, XK_h, spawn, {.com = thunarcmd}},
DESKTOPCHANGE( XK_1, 0)
DESKTOPCHANGE( XK_2, 1)
DESKTOPCHANGE( XK_3, 2)
DESKTOPCHANGE( XK_4, 3)
DESKTOPCHANGE( XK_5, 4)
DESKTOPCHANGE( XK_6, 5)
};
#endif