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

Mikael Magnusson mikachu at gmail.com
Sun May 14 14:53:43 EDT 2023


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?

-- 
Mikael Magnusson


More information about the openbox mailing list