Monitor hotplug keymap. To alternate between HDMI and Laptop monitors
This commit is contained in:
2
config.h
2
config.h
@@ -71,6 +71,7 @@ static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont,
|
|||||||
static const char *roficmd[] = { "rofi", "-show", "drun", NULL };
|
static const char *roficmd[] = { "rofi", "-show", "drun", NULL };
|
||||||
static const char *printcmd_a[] = { "prtscr", NULL };
|
static const char *printcmd_a[] = { "prtscr", NULL };
|
||||||
static const char *printcmd_sel[] = { "prtscr", "s", NULL };
|
static const char *printcmd_sel[] = { "prtscr", "s", NULL };
|
||||||
|
static const char *monitorhotplug[] = { "monitor-hotplug", NULL };
|
||||||
|
|
||||||
static const Key keys[] = {
|
static const Key keys[] = {
|
||||||
/* modifier key function argument */
|
/* modifier key function argument */
|
||||||
@@ -111,6 +112,7 @@ static const Key keys[] = {
|
|||||||
{ MODKEY, XK_d, spawn, {.v = roficmd } },
|
{ MODKEY, XK_d, spawn, {.v = roficmd } },
|
||||||
{ 0, XK_Print, spawn, {.v = printcmd_a } },
|
{ 0, XK_Print, spawn, {.v = printcmd_a } },
|
||||||
{ MODKEY, XK_Print, spawn, {.v = printcmd_sel } },
|
{ MODKEY, XK_Print, spawn, {.v = printcmd_sel } },
|
||||||
|
{ MODKEY, XK_Escape, spawn, {.v = monitorhotplug } },
|
||||||
};
|
};
|
||||||
|
|
||||||
/* button definitions */
|
/* button definitions */
|
||||||
|
|||||||
Reference in New Issue
Block a user