mirror of
https://codeberg.org/dwl/dwl.git
synced 2025-12-19 19:33:18 +00:00
Created lockedkeys (markdown)
parent
d7f441a4be
commit
89420ae14b
21
lockedkeys.md
Normal file
21
lockedkeys.md
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
### Description
|
||||||
|
This patch allows you to add keybindings to the lockscreen.
|
||||||
|
|
||||||
|
```c
|
||||||
|
static const Key lockedkeys[] = {
|
||||||
|
/* Note that Shift changes certain key codes: c -> C, 2 -> at, etc. */
|
||||||
|
/* modifier key function argument */
|
||||||
|
|
||||||
|
/* Ctrl-Alt-Backspace and Ctrl-Alt-Fx used to be handled by X server */
|
||||||
|
{ WLR_MODIFIER_CTRL|WLR_MODIFIER_ALT,XKB_KEY_Terminate_Server, quit, {0} },
|
||||||
|
#define CHVT(n) { WLR_MODIFIER_CTRL|WLR_MODIFIER_ALT,XKB_KEY_XF86Switch_VT_##n, chvt, {.ui = (n)} }
|
||||||
|
CHVT(1), CHVT(2), CHVT(3), CHVT(4), CHVT(5), CHVT(6),
|
||||||
|
CHVT(7), CHVT(8), CHVT(9), CHVT(10), CHVT(11), CHVT(12),
|
||||||
|
};
|
||||||
|
```
|
||||||
|
|
||||||
|
### Download
|
||||||
|
- [2023-11-24](https://github.com/djpohly/dwl/compare/main...wochap:lockedkeys.patch)
|
||||||
|
|
||||||
|
### Authors
|
||||||
|
- [wochap](https://github.com/wochap)
|
||||||
Loading…
x
Reference in New Issue
Block a user