aboutsummaryrefslogblamecommitdiffstats
path: root/xorg-server/xkbdbind.config.h.gpp
blob: 4162b4396ecf2620fe59aee34c4e319e1a3b5c64 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16















                                                                                                                           

                                                    
                                                      
                                                  
                                       
                                                       
                                 







                                                               


                                                                   
                                                                           




          
/* -*- 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%")},
	{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