-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathconfig.h
executable file
·98 lines (89 loc) · 4.76 KB
/
config.h
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
87
88
89
90
91
92
93
94
95
96
97
/*
* /\___/\
* ( o o ) Made by cat...
* ( =^= )
* ( ) ... for cat!
* ( )
* ( ))))))________________ Cute And Tiny Window Manager
* ______________________________________________________________________________
*
* Copyright (c) 2010, Rinaldini Julien, julien.rinaldini@heig-vd.ch
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
* DEALINGS IN THE SOFTWARE.
*
*/
#ifndef CONFIG_H
#define CONFIG_H
// Mod (Mod1 == alt) and master size
#define MOD Mod1Mask
#define MASTER_SIZE 0.6
// Colors
#define FOCUS "rgb:bc/57/66"
#define UNFOCUS "rgb:88/88/88"
// Borders and gap
#define BORDER_SIZE 5
#define GAP_SIZE 5
const char* dmenucmd[] = {"dmenu_run",NULL};
const char* urxvtcmd[] = {"urxvt",NULL};
const char* lockcmd[] = {"slock",NULL};
const char* next[] = {"ncmpcpp","next",NULL};
const char* prev[] = {"ncmpcpp","prev",NULL};
const char* toggle[] = {"ncmpcpp","toggle",NULL };
const char* voldown[] = {"amixer","set","PCM","5\%-",NULL};
const char* volup[] = {"amixer","set","PCM","5\%+",NULL};
// Avoid multiple paste
#define DESKTOPCHANGE(K,N) \
{ MOD, K, change_desktop, {.i = N}}, \
{ MOD|ShiftMask, K, client_to_desktop, {.i = N}},
// Shortcuts
static struct key keys[] = {
// MOD KEY FUNCTION ARGS
{ MOD, XK_h, decrease, {NULL}},
{ MOD, XK_l, increase, {NULL}},
{ MOD, XK_x, kill_client, {NULL}},
{ MOD, XK_j, next_win, {NULL}},
{ MOD, XK_Tab, next_win, {NULL}},
{ MOD, XK_k, prev_win, {NULL}},
{ MOD|ShiftMask, XK_j, move_up, {NULL}},
{ MOD|ShiftMask, XK_k, move_down, {NULL}},
{ MOD, XK_Return, swap_master, {NULL}},
{ MOD, XK_space, switch_mode, {NULL}},
{ MOD, XK_c, spawn, {.com = lockcmd}},
{ 0, XF86XK_AudioNext, spawn, {.com = next}},
{ 0, XF86XK_AudioPrev, spawn, {.com = prev}},
{ 0, XF86XK_AudioPlay, spawn, {.com = toggle}},
{ 0, XF86XK_AudioLowerVolume, spawn, {.com = voldown}},
{ 0, XF86XK_AudioRaiseVolume, spawn, {.com = volup}},
{ MOD, XK_p, spawn, {.com = dmenucmd}},
{ MOD|ShiftMask, XK_Return, spawn, {.com = urxvtcmd}},
{ MOD, XK_Right, next_desktop, {NULL}},
{ MOD, XK_Left, prev_desktop, {NULL}},
DESKTOPCHANGE( XK_0, 0)
DESKTOPCHANGE( XK_1, 1)
DESKTOPCHANGE( XK_2, 2)
DESKTOPCHANGE( XK_3, 3)
DESKTOPCHANGE( XK_4, 4)
DESKTOPCHANGE( XK_5, 5)
DESKTOPCHANGE( XK_6, 6)
DESKTOPCHANGE( XK_7, 7)
DESKTOPCHANGE( XK_8, 8)
DESKTOPCHANGE( XK_9, 9)
{ MOD, XK_q, quit, {NULL}}
};
#endif