Skip to content

Commit

Permalink
Add shortcut to lock screen
Browse files Browse the repository at this point in the history
  • Loading branch information
Dave Reisner committed Dec 29, 2009
1 parent ea86120 commit d2334bf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions config.h
Expand Up @@ -63,6 +63,9 @@ static const char *mpcnext[] = { "mpc", "next", NULL };
static const char *mpcprev[] = { "mpc", "prev", NULL };
static const char *mpctoggle[] = { "mpc", "toggle", NULL };

/* Screen lock */
static const char *xscreenlock[] = { "xscreensaver-command", "-lock", NULL };

static Key keys[] = {
/* modifier key function argument */
{ MODKEY, XK_p, spawn, {.v = dmenucmd } },
Expand All @@ -72,6 +75,7 @@ static Key keys[] = {
{ MODKEY, XK_q, spawn, {.v = mpcprev } },
{ MODKEY, XK_w, spawn, {.v = mpctoggle } },
{ MODKEY, XK_e, spawn, {.v = mpcnext } },
{ MODKEY|ControlMask, XK_l, spawn, {.v = xscreenlock } },
{ MODKEY, XK_b, togglebar, {0} },
{ MODKEY, XK_k, focusstack, {.i = +1 } },
{ MODKEY, XK_j, focusstack, {.i = -1 } },
Expand Down

0 comments on commit d2334bf

Please sign in to comment.