From 8655cad0fd7b91dc969b2a80670b8476983f15e5 Mon Sep 17 00:00:00 2001 From: Nikita Ivanov <51688199+NikitaIvanovV@users.noreply.github.com> Date: Fri, 26 May 2023 01:03:25 +0200 Subject: [PATCH] Add keymapnotify patch --- keymapnotify.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 keymapnotify.md diff --git a/keymapnotify.md b/keymapnotify.md new file mode 100644 index 0000000..dc2f3dd --- /dev/null +++ b/keymapnotify.md @@ -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)