UNIX domain socket IPC in Rust.

The IPC patch is complete and has been merged into the main branch. The patch was made possible with the interprocess crate and was later rewritten to raw stdlib implementation in this commit. Currently the server binary (swhks) makes a socket at /run/user/(YourUserID)/swhkd.sock which then the daemon binary (swhkd) tries to establish a connection with. After merging the initial set of patches Ckyiu found 2 issues right away: Calling the function physical_path() on any evdev::Device object returns None on virtual machines and hence the binary panics and crashes while attempting to execute ....

February 8, 2022 · 1 min · 186 words · Aakash Sen Sharma

Rewriting swhkd in rust!

Hi all! It’s high time I put this domain purchase to use and uploaded my first blog. I started a project called swhkd a few weeks back which stands for the Simple Wayland HotKey Daemon. Swhkd is a drop in replacement for the popular X11 utility sxhkd, which is a hotkey daemon. Don’t let the name fool you, swhkd is compatible with X11, WayLand, and TTY. Initially I wrote a python prototype which worked well for a concept but was a memory hog, consuming upto 19Mb for just printing the device key events....

February 7, 2022 · 2 min · 357 words · Aakash Sen Sharma