forked from dylanaraps/sowm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.h
73 lines (63 loc) · 3.42 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
#ifndef CONFIG_H
#define CONFIG_H
#define MOD Mod4Mask
#define BORDER_COLOR_ACTIVE "#3BA275"
#define BORDER_COLOR_INACTIVE "#000000"
#define BORDER_WIDTH 3
#define TERM "st"
const char* menu[] = {"dmrun", 0};
const char* term[] = {TERM, 0};
const char* calc[] = {TERM, "-f", "monospace:size=16", "-g", "50x20", "-e", "bc", "-lq", 0};
const char* scrot[] = {"maim -s $XDG_DESKTOP_DIR/Screenshot-$(date +%s).png && notify-send \\\"Screenshot taken!\\\"", 0};
const char* volup[] = {"pulsemixer --change-volume +5", 0};
const char* voldown[] = {"pulsemixer --change-volume -5", 0};
const char* audioplay[] = {"cmus-remote -u", 0};
const char* audiostop[] = {"cmus-remote -s", 0};
const char* audionext[] = {"cmus-remote -n", 0};
const char* audioprev[] = {"cmus-remote -r", 0};
const char* scrlock[] = {"lockscreen", 0};
const char* emoji[] = {"emoji", 0};
const char* passwds[] = {"passmenu", 0};
static struct key keys[] = {
{MOD|ShiftMask, XK_q, win_kill, {0}},
{MOD, XK_c, win_center, {0}},
{MOD, XK_f, win_fs, {0}},
{MOD, XK_k, win_move, {.com = (const char*[]){"move", "n"}, .i = 45}},
{MOD, XK_j, win_move, {.com = (const char*[]){"move", "s"}, .i = 45}},
{MOD, XK_l, win_move, {.com = (const char*[]){"move", "e"}, .i = 80}},
{MOD, XK_h, win_move, {.com = (const char*[]){"move", "w"}, .i = 80}},
{MOD|ShiftMask, XK_k, win_move, {.com = (const char*[]){"resize", "n"}, .i = 45}},
{MOD|ShiftMask, XK_j, win_move, {.com = (const char*[]){"resize", "s"}, .i = 45}},
{MOD|ShiftMask, XK_l, win_move, {.com = (const char*[]){"resize", "e"}, .i = 80}},
{MOD|ShiftMask, XK_h, win_move, {.com = (const char*[]){"resize", "w"}, .i = 80}},
{Mod1Mask, XK_Tab, win_next, {0}},
{Mod1Mask|ShiftMask, XK_Tab, win_prev, {0}},
{MOD, XK_d, run, {.com = menu}},
{MOD, XK_Return, run, {.com = term}},
{MOD, XK_F12, run, {.com = calc}},
{MOD|ShiftMask, XK_x, run, {.com = scrlock}},
{MOD, XK_grave, run, {.com = emoji}},
{MOD|ControlMask, XK_p, run, {.com = passwds}},
{0, XK_Print, run, {.com = scrot}},
{0, XF86XK_AudioRaiseVolume, run, {.com = volup}},
{0, XF86XK_AudioLowerVolume, run, {.com = voldown}},
{0, XF86XK_AudioPlay, run, {.com = audioplay}},
{0, XF86XK_AudioStop, run, {.com = audiostop}},
{0, XF86XK_AudioNext, run, {.com = audionext}},
{0, XF86XK_AudioPrev, run, {.com = audioprev}},
{MOD, XK_1, ws_go, {.i = 1}},
{MOD|ShiftMask, XK_1, win_to_ws, {.i = 1}},
{MOD, XK_2, ws_go, {.i = 2}},
{MOD|ShiftMask, XK_2, win_to_ws, {.i = 2}},
{MOD, XK_3, ws_go, {.i = 3}},
{MOD|ShiftMask, XK_3, win_to_ws, {.i = 3}},
{MOD, XK_4, ws_go, {.i = 4}},
{MOD|ShiftMask, XK_4, win_to_ws, {.i = 4}},
{MOD, XK_5, ws_go, {.i = 5}},
{MOD|ShiftMask, XK_5, win_to_ws, {.i = 5}},
{MOD, XK_6, ws_go, {.i = 6}},
{MOD|ShiftMask, XK_6, win_to_ws, {.i = 6}},
{MOD, XK_6, ws_go, {.i = 7}},
{MOD|ShiftMask, XK_6, win_to_ws, {.i = 7}},
};
#endif