Add keymapnotify patch

Nikita Ivanov 2023-05-26 01:03:25 +02:00
parent a490ceb517
commit 8655cad0fd

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)