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
|
/* -*- c -*- */
#define MOD MOD_SUPER
#define S MOD_SHIFT
#define C MOD_CTRL
#define A MOD_ALT
#define H MOD_HYPER
static struct hotkey hotkeys[] = {
{XK_F1, MOD | S, 0, CMD("c")},
{XK_F2, MOD | S, 0, CMD("brave")},
{XK_F4, MOD | S, 0, CMD("xkill")},
{XK_F9, MOD | S, 0, CMD("sh", "-c", "amixer -c \"${MAIN_ALSA_CARD}\" -- set \"${MAIN_ALSA_MIXER}\" 0%")},
{XK_F10, MOD | S, 1, CMD("sh", "-c", "amixer -c \"${MAIN_ALSA_CARD}\" -- set \"${MAIN_ALSA_MIXER}\" 5%-")},
{XK_F11, MOD | S, 1, CMD("sh", "-c", "amixer -c \"${MAIN_ALSA_CARD}\" -- set \"${MAIN_ALSA_MIXER}\" 5%+")},
{XK_F12, MOD | S, 0, CMD("sh", "-c", "amixer -c \"${MAIN_ALSA_CARD}\" -- set \"${MAIN_ALSA_MIXER}\" 100%")},
%%>if test -x /usr/bin/dmenu; then
{XK_u, MOD, 0, CMD("unicode")},
{XK_i, MOD, 0, CMD("ipa")},
{XK_p, MOD, 0, CMD("dmenu_run", "-fn", "schumacher clean-8")},
{XK_p, MOD | C, 0, CMD("plumb")},
%%>fi
%%>if test -x /usr/bin/terminator; then
{XK_Return, MOD | S, 0, CMD("terminator")},
%%>elif test -x /usr/bin/st; then
{XK_Return, MOD | S, 0, CMD("st")},
%%>else
{XK_Return, MOD | S, 0, CMD("xterm")},
%%>fi
{XK_F12, MOD | S | C, 0, CMD("setkeys")},
{XK_g, H, 0, CMD("setkeys", "greek")},
{XK_s, H, 0, CMD("setkeys", "swedish")},
{XK_t, H, 0, CMD("setkeys", "toggle")},
%%>if test -x /usr/bin/mocp; then
{XK_b, MOD, 0, CMD("mocp", "--next")},
{XK_b, MOD | S, 0, CMD("mocp", "--previous")},
{XK_o, MOD | S, 0, CMD("mocp", "--toggle-pause")},
%%>fi
};
#undef MOD
#undef S
#undef C
|