WMII9MENU(1)
π wmii9menu β the wmii menu program π
okay bestie, so you know how you're sitting at your terminal and you want a clickable menu that's cute and wmii-flavored? that's literally this. this is a page from the General Commands Manual, and it's giving main character energy for menu programs, so let's go π
β¨ SYNOPSIS β¨
wmii9menu [-a <address>] [-i <initial>] <item>[:<command>]...
wmii9menu -v
two whole forms, bestie. one takes a whole little parade of arguments, the other is just -v and vibes. neither one is skipping leg day on the flags.
πΈ DESCRIPTION πΈ
so wmii9menu is wmii's standard clickable menu program, periodt. it's used extensively by wmii and its related programs to show off clickable menus β and when I say extensively I mean for window titlebars and bar items, like the whole entire UI. it's iconic π«Ά
and the name? adorable lore alert π§ the name, along with the code, derives from the 9menu program, which in turn derives its name from Plan 9's style of clickable menus. generational talent, no cap.
π ARGUMENTS π
-aβ the address at which to connect to wmii β¨ (yes, the address. your connect-y destination. slay.)-i <initial>β okay so if<initial>is listed among the other items on the command line, it gets selected at startup, and the menu is positioned so that the mouse pointer is centered on said item π― centered. on said item. exactly like that.:β this one is literally listed here with no explanation in the original, and honestly? mysterious queen behavior π iykyk. (the:gets way more lore down in USAGE, keep reading.)
π₯ USAGE π₯
so you invoke wmii9menu with a list of arguments, and each one gets displayed as a menu item. cute, right? π
now the : of it all: the first : in the item name, and any text following it, is stripped. gone. not invited π
the menu opens such that the mouse pointer is centered on the selected item β the way that it just lands perfectly centered on the one you want ππ
then it's just mouse vibes:
- if a mouse button is depressed when the menu opens, then releasing it will confirm the selection π±οΈ
- otherwise, a mouse press will do the same π±οΈ
and when a selection is made, wmii9menu prints the result. here's the crucial part, bestie, don't miss it:
- if the selected item initially contained a
:, the text following it is printed - otherwise, the item text itself is printed
so the bit after the colon is your payload, and the bit before is your display name. it's giving "stage name vs government name" and honestly we're obsessed π
π ENVIRONMENT π
$WMII_ADDRESSβ the address at which to connect to wmii β¨ (yeah, same idea as-a, but in environment form, lowkey)$NAMESPACEβ the namespace directory to use if no address is provided π¦ (no address? it's got you.)
β SEE ALSO β
go read them, bestie, they're all linked up in the group chat π«Ά
that's literally the whole page, ngl. wmii's standard clickable menu program, click it, print the thing after the colon, done. iconic behavior only π
with love, from the wmii- fam π β this one's dated Oct, 2009, and it still ate.
π¦ where this page comes from
- nixos 26.05: wmii 0-unstable-2023-09-30
- nixpkgs unstable: wmii 0-unstable-2023-09-30
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms