aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitchell Riedstra <mitch@riedstra.dev>2021-08-20 16:21:53 -0400
committerMitchell Riedstra <mitch@riedstra.dev>2021-08-20 16:21:53 -0400
commite82e9bc6375259d0e9b4f763a5671eafc2c07c39 (patch)
tree991ec51741fd919d8810add15a76fe8bf8c87a2a
parentfd750c547a48a34a4bd438e5f16673d750e0d6e8 (diff)
downloaddwm-e82e9bc6375259d0e9b4f763a5671eafc2c07c39.tar.gz
dwm-e82e9bc6375259d0e9b4f763a5671eafc2c07c39.tar.xz
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 )
-rw-r--r--config.h12
1 files changed, 7 insertions, 5 deletions
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} },
};