[openbox] 1) underscored initial letters at some menus 2) openbox site

u34 at net9.ga u34 at net9.ga
Sun May 14 15:35:25 EDT 2023


Mikael Magnusson <mikachu at gmail.com> wrote:

> On 5/14/23, u34 at net9.ga <u34 at net9.ga> wrote:
> > Mikael Magnusson <mikachu at gmail.com> wrote:
> >
> >> On 5/14/23, u34 at net9.ga <u34 at net9.ga> wrote:
> >> > Mikael Magnusson <mikachu at gmail.com> wrote:
> >> >
> >> >> On 5/14/23, u34 at net9.ga <u34 at net9.ga> wrote:
> >> >> > 1) Suggestion: have underscored initial letters at some menus
> >> >> > Since client-list-combined-menu, and root-menu, can be navigated by
> >> >> > the
> >> >> > first letter of their entries, isn't it customary to have that letter
> >> >> > with
> >> >> > an underscore?
> >> >>
> >> >> The underscore is only displayed if the first letter isn't the first
> >> >> character of the title in the client list menus. If you want
> >> >> underscores in the root-menu you can put them there yourself.
> >> >> http://openbox.org/wiki/Help:Menus#Specifying_menu_shortcuts
> >> >
> >> > 1) I currently have an entry such as
> >> >
> >> >     <menu id="apps-accessories-menu" label="Accessories">
> >> >
> >> > in menu.xml. It does get activated by pressing the `a' key. I tried to
> >> > follow
> >> > the URL you wrote, but couldn't made it displayed with an underscore
> >> > under
> >> > A. I did run openbox --reconfigure after each edit of the file. Must I
> >> > fully restart openbox to see the underscore? Are there more possible
> >> > misunderstandings on my part? I tried "_Accessories", "__Accessories",
> >> > "__ Accessories", and perhaps few other combinations.
> >> >
> >> > 2) How can I get an underscore for client-list-combined-menu? Openbox
> >> > dynamically writes the entries for whatever windows that are opened,
> >> > doesn't it?
> >>
> >> Like I said, the underscore is only displayed if the shortcut key is
> >> not the first character of the entry. Eg, if a window is called
> >> "[hello]" the h will be underscored because [ cannot be a shortcut
> >> key.
> >>
> >
> > I think there a misunderstanding.
> 
> I know what you meant.
> 
> > For me, there are no such bars in openbox menus. Since
> > client-list-combined-menu is generated dynamically, is there a way to
> > have another shortcut character, other then the first character of the
> > entry? As for root-menu, I don't see a small bar under the character that
> > is used as the shortcut, even when the shortcut is not the first character
> > of the entry.
> 
> Perhaps some kind of font rendering issue then? To be clear, if you
> set the label of an entry to, say, "Hell_o", pressing o selects it in
> the menu, but you don't see the o being underlined?

1. "Hello_o" would meke the o for the shortcut, and I don't see it 
   underlined.
2. "Hell__o" would makes it displayed as Hell_o, but h will be used 
   for the shortcut. It just add a single underscore character before 
   the o. An underscore character that I can see. The o is not 
   underlined. 
Exactly as described at 
http://openbox.org/wiki/Help:Menus#Specifying_menu_shortcuts
Just like \\ in bash will usually be used as a \ character, while \c  
will be shown as c. Unless c is one of a small set of ascii characters. Or

      /usr/bin/echo -e "\\ \A \a"

where, at least here, \a is taken as the alert (bell) character. And \A 
is just A. See man echo.

--
u34

> 
> -- 
> Mikael Magnusson
> _______________________________________________
> openbox mailing list
> openbox at icculus.org
> http://icculus.org/mailman/listinfo/openbox


More information about the openbox mailing list