diff --git a/i3lock.1 b/i3lock.1 index 3a0d141..f496aca 100644 --- a/i3lock.1 +++ b/i3lock.1 @@ -189,7 +189,7 @@ XF86MonBrightnessUp, XF86MonBrightnessDown. .TP .B \-\-pass-power-keys Allow the following keys to be used while the screen is locked by passing them through: -XF86PowerDown, XF86PowerOff. +XF86PowerDown, XF86PowerOff, XF86Sleep. .TP .B \-\-insidevercolor=rrggbbaa diff --git a/i3lock.c b/i3lock.c index 28d873c..94e8e86 100644 --- a/i3lock.c +++ b/i3lock.c @@ -691,6 +691,7 @@ static void handle_key_press(xcb_key_press_event_t *event) { switch(ksym) { case XKB_KEY_XF86PowerDown: case XKB_KEY_XF86PowerOff: + case XKB_KEY_XF86Sleep: xcb_send_event(conn, true, screen->root, XCB_EVENT_MASK_BUTTON_PRESS, (char *)event); return; }