UI top bar -> listen for / display visualize active layer. #420
-
Hey guys, What would be a "general" pattern for listening for currently active layer and then printing it to my computes top bar. It would be pretty cool to show kmonad layer on macos with this: https://github.com/cmacrae/spacebar My layers are growing and soon I will be having about twenty layers :D and so sometimes I lost in a swamp of testing layers and I felt that it will be a good thing to make it possible to do this. This also relates a little bit to this question about vim leader (#413). I am having a pretty nice tree structure design that will become more and more like vim. I am also going to try to implement a vim layer where I have backup vim commands for text fields that nothing works in. In the end if I learn more about GUIs and stuff it would be super cool to have like a mini-map of the layers up in the corner or the top bar. so that one can never forget or lose track of mappings. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
A simple way is to wrap your layer switching buttons in (tap-macro (cmd-button "notify-bar :layer symbols") (layer-next symbols)) Because of how long it takes to execute a shell command and get the bar to display it, this won't be useful if layers are changed rapidly. |
Beta Was this translation helpful? Give feedback.
A simple way is to wrap your layer switching buttons in
tap-macro
to execute a shell command before switching layers.Because of how long it takes to execute a shell command and get the bar to display it, this won't be useful if layers are changed rapidly.