add autorandr shortcut

This commit is contained in:
Vaclav Uruba 2022-07-27 11:36:48 +02:00 committed by Václav Uruba
parent 1291112283
commit 48e7cd42ba
Signed by: uruba
GPG Key ID: 9D8E987C4B2E1E9C

View File

@ -75,6 +75,7 @@ static const char *pavucontrolcmd[] = { "pavucontrol-qt", NULL };
static const char *slockcmd[] = { "slock", NULL };
static const char scratchpadname[] = "scratchpad";
static const char *scratchpadcmd[] = { "st", "-t", scratchpadname, "-g", "120x34", NULL };
static const char *autorandrcmd[] = { "autorandr", "-c", NULL };
static const Key keys[] = {
/* modifier key function argument */
@ -120,6 +121,8 @@ static const Key keys[] = {
{ MODKEY, XK_v, spawn, {.v = pavucontrolcmd } },
/* slock */
{ MODKEY, XK_s, spawn, {.v = slockcmd } },
/* autorandr */
{ MODKEY|ShiftMask, XK_a, spawn, {.v = autorandrcmd } },
};
/* button definitions */