mirror of
https://github.com/Raymo111/i3lock-color.git
synced 2024-11-11 13:50:52 -05:00
add XF86Sleep to --pass-power-keys
This commit is contained in:
parent
b9fee4e3db
commit
dbb21b5341
2 changed files with 2 additions and 1 deletions
2
i3lock.1
2
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
|
||||
|
|
1
i3lock.c
1
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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue