Re: New f.label function
Maxime Soulé <[email protected]> Tue, 14 Feb 2023 23:34:36 +0100
| Newsgroups | gmane.comp.window-managers.ctwm |
|---|---|
| Message-ID | <[email protected]> |
The f.dynmenu call was wrong, sorry:
f.dynmenu """
cat <<EOF
"Info" f.tile
"Battery level $(battery level)" f.label
"Another info $(get_info)" f.label
EOF
"""
++
Max.
Le 14/02/2023 à 23:31, Maxime Soulé a écrit :
> Hi,
>
> After dynamic menus, I propose you a new f.label function.
>
> It works like f.title, but is always drawn like an non-selected usual
> menu item.
>
> It could allow to easily emulate some basic dialog boxes like this one:
>
> Menu "reboot"
> {
> "Reboot" f.title
> "Do you really want to reboot?" f.label
> "*No!" f.nop
> "Yes" ("white":"red") !"shutdown -r now"
> }
>
> Or provide some just retrieved information thanks to dynamic menus:
>
> f.dynmenu """
> "Info" f.tile
> "Battery level $(battery level)" f.label
> "Another info $(get_info)" f.label
> """
>
> Added to the dynamic menus changes:
> https://github.com/maxatome/ctwm-mirror/commit/9549d19a82ecc55da950c7ec7bb9e0753b1897d0
>
> ++
>
> Max.
>