aboutsummaryrefslogtreecommitdiffstats
path: root/xorg-server/xkbdbind.config.h.gpp
blob: 716d49adf142b85e68cc6693a656300c31063f7f (plain) (blame)
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
/* -*- 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 -- set \"${MAIN_ALSA_MIXER}\" 0%")},
	{XK_F10,    MOD | S,     1, CMD("sh", "-c", "amixer -- set \"${MAIN_ALSA_MIXER}\" 5%-")},
	{XK_F11,    MOD | S,     1, CMD("sh", "-c", "amixer -- set \"${MAIN_ALSA_MIXER}\" 5%+")},
	{XK_F12,    MOD | S,     0, CMD("sh", "-c", "amixer -- set \"${MAIN_ALSA_MIXER}\" 100%")},
	{XK_u,      MOD,         0, CMD("unicode")},
	{XK_i,      MOD,         0, CMD("ipa")},
	{XK_p,      MOD,         0, CMD("dmenu_run")},
	{XK_p,      MOD | C,     0, CMD("plumb")},
%%>if ../check-in-path terminator; then
	{XK_Return, MOD | S,     0, CMD("terminator")},
%%>elif ../check-in-path 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")},
	{XK_b,      MOD,         0, CMD("mocp", "--next")},
	{XK_b,      MOD | S,     0, CMD("mocp", "--previous")},
	{XK_o,      MOD | S,     0, CMD("mocp", "--toggle-pause")},
	{XK_Escape, MOD,         0, CMD("mate-screensaver-command", "-l")},
};

#undef MOD
#undef S
#undef C