mirror of
https://codeberg.org/dwl/dwl.git
synced 2025-10-29 02:54:12 +00:00
Add keymapnotify patch
parent
a490ceb517
commit
8655cad0fd
22
keymapnotify.md
Normal file
22
keymapnotify.md
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
### Description
|
||||||
|
Once keyboard layout is changed, write it to a file and run a command.
|
||||||
|
|
||||||
|
It can be used to notify a status bar to display current keyboard layout.
|
||||||
|
You can modify `keymapnotifycmd` setting to change which program to signal and
|
||||||
|
the signal value itself.
|
||||||
|
|
||||||
|
Example [someblocks](https://sr.ht/~raphi/someblocks) config that works with
|
||||||
|
the default patch settings:
|
||||||
|
|
||||||
|
```c
|
||||||
|
static const Block blocks[] = {
|
||||||
|
/*Icon*/ /*Command*/ /*Update Interval*/ /*Update Signal*/
|
||||||
|
{"", "cat /tmp/dwl-keymap", 0, 1},
|
||||||
|
};
|
||||||
|
```
|
||||||
|
|
||||||
|
### Download
|
||||||
|
- [2023-05-26](https://github.com/djpohly/dwl/compare/main...NikitaIvanovV:keymapnotify.patch)
|
||||||
|
|
||||||
|
### Authors
|
||||||
|
- [Nikita Ivanov](https://github.com/NikitaIvanovV)
|
||||||
Loading…
x
Reference in New Issue
Block a user