From 28b0341203359bb6bce36a8330f11859d3a08b60 Mon Sep 17 00:00:00 2001 From: ForzCross Date: Mon, 22 Jan 2024 22:04:27 +0300 Subject: [PATCH] revive kblayout --- Home.md | 1 + _Sidebar.md | 1 + kblayout.md | 29 +++++++++++++++++++++++++++++ 3 files changed, 31 insertions(+) create mode 100644 kblayout.md diff --git a/Home.md b/Home.md index 7d3f953..c284e28 100644 --- a/Home.md +++ b/Home.md @@ -57,6 +57,7 @@ Additionally, when you have write access to this repository, remove the `.md` fi * [env](https://codeberg.org/dwl/dwl-patches/wiki/env) * [hide-behind-fullscreen](https://codeberg.org/dwl/dwl-patches/wiki/hide-behind-fullscreen) * [hide-behind-monocle](https://codeberg.org/dwl/dwl-patches/wiki/hide-behind-monocle) +* [kblayout](https://codeberg.org/dwl/dwl-patches/wiki/kblayout) * [singlemaster](https://codeberg.org/dwl/dwl-patches/wiki/singlemaster) * [simpleborders](https://codeberg.org/dwl/dwl-patches/wiki/simpleborders) * [smartborders](https://codeberg.org/dwl/dwl-patches/wiki/smartborders) diff --git a/_Sidebar.md b/_Sidebar.md index 0337730..003750c 100644 --- a/_Sidebar.md +++ b/_Sidebar.md @@ -15,6 +15,7 @@ * [gaplessgrid](https://codeberg.org/dwl/dwl-patches/wiki/gaplessgrid) * [hide-behind-fullscreen](https://codeberg.org/dwl/dwl-patches/wiki/hide-behind-fullscreen) * [hide-behind-monocle](https://codeberg.org/dwl/dwl-patches/wiki/hide-behind-monocle) +* [kblayout](https://codeberg.org/dwl/dwl-patches/wiki/kblayout) * [keycodes](https://codeberg.org/dwl/dwl-patches/wiki/keycodes) * [master-right](https://codeberg.org/dwl/dwl-patches/wiki/master-right) * [naturalscrolltrackpad](https://codeberg.org/dwl/dwl-patches/wiki/naturalscrolltrackpad) diff --git a/kblayout.md b/kblayout.md new file mode 100644 index 0000000..9091f40 --- /dev/null +++ b/kblayout.md @@ -0,0 +1,29 @@ +### Description +This patch adds per-client keyboard layout and ability to send current +keyboard layout information to a status bar. + +Only per-client feature is enabled by default. You can edit +`kblayout_file` and `kblayout_cmd` variables to notify a status bar +about keyboard layout. + +[Someblocks](https://sr.ht/~raphi/someblocks) config that works +with the example settings in `config.h`: + +```c +static const Block blocks[] = { + /*Icon*/ /*Command*/ /*Update Interval*/ /*Update Signal*/ + {"", "cat /tmp/dwl-keymap", 0, 1}, +}; +``` + +Both of these features are included in one patch because their +implementation happens to share some code. If you don't need +any of these features, just disable it in `config.h`. + +### Download +- [git branch](https://codeberg.org/ForzCross/dwl/src/branch/kblayout.patch) +- [2024-01-21](https://codeberg.org/dwl/dwl-patches/raw/branch/main/kblayout/kblayout.patch) + +### Authors +- [ForzCross](https://codeberg.org/ForzCross) +- [Nikita Ivanov](https://github.com/NikitaIvanovV)