@Trixie
OK, interesting, let's go down this route: the commodity will key-switch between keymaps, and each time the keymap changes, an env var is written.
There is bunch of limitations then:
1). User can't dbl-click on that , so to have some menu spawn where he can choice by mouse keymap as well as "settings".
2). No top-bar-module look
3). for making env var writing on top bar, need to configure top-bar specially
In end of all, if top-bar will be used only for indication, then why need that top-bar with env woring at all, when it can be just border less window just the same as AlexC do with digiclock ? I mean, why then making mess for users to force them to somehow configure workbench's topbar ?
The reasons why top-bar is good, is that :
1). user can dbl-click on it (necessary)
2). it will looks nice
3). it will looks like real top-bar module if it will be used together with amidock (and later, we can write on wiki article about amidocks, and about how to write top-bar dockys, of what size they should be, and what to do to make them right)
That env thingy imho fuzz from nothing, we can indicate them by any other way, no need top bar connection then.
Why not go the route with flags (which is cool and nice) ? Even just making it as window, just like AlexC do. Why need that env stuff ?