Menu

#175 Support generic tools

1.4.0
closed-out-of-date
None
5
2016-08-26
2016-04-06
No

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.

1 Attachments

Discussion

  • Mathias Gumz

    Mathias Gumz - 2016-04-06

    i am in favour of this one. i wanted to implement this some time ago, never found the time.

    anyway:

    • FbTk::StringUtil::stringtok(tools, *m_rc_tools, ", ");
    • FbTk::StringUtil::stringtok(tools, *m_rc_tools, ",");

    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
  • Thomas Luebking

    Thomas Luebking - 2016-04-07

    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

     
  • Mathias Gumz

    Mathias Gumz - 2016-04-07

    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.

     
  • Thomas Luebking

    Thomas Luebking - 2016-04-08

    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.

     
  • Thomas Luebking

    Thomas Luebking - 2016-05-22

    Frt, this is also in https://github.com/luebking/fluxbox
    Anything else that should be improved about the patches?

     
  • Mathias Gumz

    Mathias Gumz - 2016-05-22

    i need to shovel some spare time, somewhere to test the pending patches / features. sorry about that

     
  • Thomas Luebking

    Thomas Luebking - 2016-07-31

    Moved to #193 (added git branch ;-)

     
  • Mathias Gumz

    Mathias Gumz - 2016-08-26
    • status: open --> closed-out-of-date
    • assigned_to: Mathias Gumz
    • Group: future --> 1.4.0
     
  • Mathias Gumz

    Mathias Gumz - 2016-08-26

    [#193] was merged and implements this.

     

    Related

    Patches: #193


Log in to post a comment.