summaryrefslogtreecommitdiff
path: root/dwm-6.2/config.h
diff options
context:
space:
mode:
authortslil <>2021-07-25 18:12:57 -0400
committertslil <>2021-07-25 18:12:57 -0400
commit30d95d77e69ad9c3055881f900d6a204557aa191 (patch)
tree35591799813f1587cb9844fa45a8e73663692863 /dwm-6.2/config.h
parentb5adde6a3727dab35a987467700c82f7478732ec (diff)
parent0da02b29d9f7a90c6bfd6fadf299d12ea0142b92 (diff)
Merge branch 'master' of git.sr.ht:~tslil/dotfiles
Diffstat (limited to 'dwm-6.2/config.h')
-rw-r--r--dwm-6.2/config.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/dwm-6.2/config.h b/dwm-6.2/config.h
index 4f37f05..db80e04 100644
--- a/dwm-6.2/config.h
+++ b/dwm-6.2/config.h
@@ -2,6 +2,7 @@
/* appearance */
static const unsigned int borderpx = 1; /* border pixel of windows */
+static const unsigned int gappx = 6; /* gaps between windows */
static const unsigned int snap = 16; /* snap pixel */
static const unsigned int systraypinning = 0; /* 0: sloppy systray follows selected monitor, >0: pin systray to monitor X */
static const unsigned int systrayspacing = 2; /* systray spacing */
@@ -77,7 +78,8 @@ static const char *vol_up[] = { "pactl", "set-sink-volume", "0", "+5%", NULL };
static const char *vol_mt[] = { "pactl", "set-sink-mute", "0", "toggle", NULL };
#define XF86ScreenSaver 0x1008ff2d
-static const char *lock[] = { "lock", NULL };
+static const char *lock[] = {"lock", NULL};
+static const char *toggle_autolock[] = { "toggle_autolock", NULL };
static Key keys[] = {
/* modifier key function argument */
@@ -88,6 +90,8 @@ static Key keys[] = {
{ 0, XF86AudioRaiseVolume, spawn, {.v = vol_up } },
{ 0, XF86AudioMute, spawn, {.v = vol_mt } },
{ 0, XF86ScreenSaver, spawn, {.v = lock } },
+ { MODKEY, XK_h, spawn, {.v = lock } },
+ { MODKEY|ShiftMask, XK_h, spawn, {.v = toggle_autolock } },
/*
{ 0, XF86MonBrightnessDown, spawn, {.v = brightness_dn } },
{ 0, XF86MonBrightnessUp, spawn, {.v = brightness_up } },