From e82e9bc6375259d0e9b4f763a5671eafc2c07c39 Mon Sep 17 00:00:00 2001 From: Mitchell Riedstra Date: Fri, 20 Aug 2021 16:21:53 -0400 Subject: Fix typo in slock command, move it up to the top. Add a command to automatically set the monitor back to the laptop view ( if monitor/laptop exists ) --- config.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'config.h') diff --git a/config.h b/config.h index afe4eae..3c47de6 100644 --- a/config.h +++ b/config.h @@ -90,9 +90,10 @@ static const char *passcmd_type[] = { "passmenu", "--type", DMENU_FLAGS, NULL static const char *snip_cmd[] = { "snipmenu", DMENU_FLAGS, NULL }; static const char *screenshot_cmd[] = { "xfce4-screenshooter", NULL }; static const char *file_cmd[] = { "thunar", NULL }; -static const char *slock_cmd[] = { "slock", NULL }; -static const char *volup_cmd[] = { "vol", "up", NULL }; -static const char *voldn_cmd[] = { "vol", "down", NULL }; +static const char *slock_cmd[] = { "slock", NULL }; +static const char *volup_cmd[] = { "vol", "up", NULL }; +static const char *voldn_cmd[] = { "vol", "down", NULL }; +static const char *monitor_cmd[] = { "sh", "monitor/laptop", NULL }; static Key keys[] = { /* modifier key function argument */ @@ -105,6 +106,9 @@ static Key keys[] = { { MODKEY, XK_o, spawn, {.v = passcmd_type } }, { MODKEY|ShiftMask, XK_s, spawn, {.v = snip_cmd } }, { MODKEY|ControlMask, XK_f, spawn, {.v = file_cmd } }, + { MODKEY|ControlMask, XK_l, spawn, {.v = slock_cmd } }, + { MODKEY|ControlMask, XK_m, spawn, {.v = monitor_cmd } }, + { 0, XK_Scroll_Lock, spawn, {.v = slock_cmd } }, { MODKEY, XK_b, togglebar, {0} }, { MODKEY, XK_j, focusstack, {.i = +1 } }, { MODKEY, XK_k, focusstack, {.i = -1 } }, @@ -142,8 +146,6 @@ static Key keys[] = { TAGKEYS( XK_7, 6) TAGKEYS( XK_8, 7) TAGKEYS( XK_9, 8) - { 0, XK_Scroll_Lock, spawn, {.v = slock_cmd } }, - { MODKEY|ControlMask, XK_L, spawn, {.v = slock_cmd } }, { MODKEY|ShiftMask, XK_r, self_restart, {0} }, { MODKEY|ShiftMask, XK_e, quit, {0} }, }; -- cgit v1.2.3