The patch series (3) allows to add random toolbuttons to toolbar.tools what can be used to add a win95-a-like "start" button but also hooks for custom menus (exposing un/mounts via udisks, select a network, ...) or a volume button that toggles master on button 1, opens an alsamixer xterm on 2 and raises/lowers volume on 5/4 ... or whatever you can come up with.
i am in favour of this one. i wanted to implement this some time ago, never found the time.
anyway:
this changes semantics. whats the point of not allowing " " (spaces) as the delimiter?
the usage is also a bit underdocumented.
Last edit: Mathias Gumz 2016-04-06
Parameters,
toolbar.tools: iconbar, systemtray, clock, Devices:CustomMenu $HOME/.fluxbox/menu.mounts
the space delimiter makes that an arbitrary list of invalid commands.
I mentioned the change in the commit message because I'm aware that it could be a deal-breaker.
An alternative could be to introduce (except if it's already there ;-) some aliasing to the config, so that you could
alias devicebutton: Devices:CustomMenu $HOME/.fluxbox/menu.mounts
...
toolbar.tools: iconbar, systemtray, clock, devicebutton
i toyed around a while ago with something like:
toolbar.tools: iconbar, shellcmd.xyz, clock
toolbar.tools.shellcmd.xyz = the real command
keep a common prefix ("shellcmd", "whatever") which defines the "type" and a suffix "xyz" to give the id / alias which is then used to lookup whats actually wanted.
The alias approach is indeed better - allows for sed/parately editable labels and re-usage of buttons.
Since you didn't comment on the multibutton support (which I assume somewhat crucial as feature anyway), I squashed commits to not clutter the git history.
Sorry for the delay.
Frt, this is also in https://github.com/luebking/fluxbox
Anything else that should be improved about the patches?
i need to shovel some spare time, somewhere to test the pending patches / features. sorry about that
https://github.com/luebking/fluxbox/commit/647b933054eaf2741ee08b42dd0d9261db8b716c
The patch extends the feature with a (remote) command to alter the label at runtime.
Moved to #193 (added git branch ;-)
[#193] was merged and implements this.
Related
Patches:
#193