waycrate / swhkd

Sxhkd clone for Wayland (works on TTY and X11 too)
https://git.sr.ht/~shinyzenith/swhkd
BSD 2-Clause "Simplified" License
679 stars 47 forks source link

Access internal stack mode #212

Closed trueNAHO closed 1 year ago

trueNAHO commented 1 year ago

Currently, the internal stack mode can only be accessed through the inconvenient process of appending a line to a file each time a mode is entered and removing the last line when exited. This approach is cumbersome, inefficient, and potentially introduces data inconsistencies within the internal stack mode.

To address this issue, an additional flag to retrieve the necessary information could be added. Additionally, consider incorporating a separate flag to initiate a continuous blocking process, enabling seamless broadcasting of mode entry and exit events and efficient monitoring of the stack by external scripts.

Shinyzenith commented 1 year ago

I think this would be a significant breaking change but I am willing to venture down possible routes to improve our current systems. If you have any proof of concept patches feel free to send them! ❤️

EdenQwQ commented 1 year ago

The line added to that file is to enable waybar to show the current swhkd mode, and have nothing to do with swhkd functionality. We'll update the documentation to make this less confusing.