table of contents
| labnag(1) | General Commands Manual | labnag(1) |
NAME¶
labnag - Show dialog with message and buttons
SYNOPSIS¶
labnag [options...]
OPTIONS¶
-B, --button <text> [<action>]
-Z, --button-dismiss <text> [<action>]
-d, --debug
-e, --edge top|bottom
-y, --layer overlay|top|bottom|background
-f, --font <font>
-h, --help
-l, --detailed-message
-L, --detailed-button <text>
-m, --message <msg>
-o, --output <output>
-t, --timeout
-x, --exclusive-zone
-v, --version
APPEARANCE OPTIONS¶
--background-color <RRGGBB[AA]>
--button-border-color <RRGGBB[AA]>
--border-bottom-color <RRGGBB[AA]>
--button-background-color <RRGGBB[AA]>
--text-color <RRGGBB[AA]>
--button-text-color <RRGGBB[AA]>
--border-bottom-size <size>
--message-padding <padding>
--details-background-color <RRGGBB[AA]>
--details-border-size <size>
--button-border-size <size>
--button-gap <gap>
--button-dismiss-gap <gap>
--button-margin-right <margin>
--button-padding <padding>
EXAMPLE¶
This is a simple example of a labnag logout GUI.
#!/bin/sh # logout with labnag labnag \
-f "Hack Regular 10"\
-m "Choose your logout option"\
-Z " Lock " "gtklock -d"\
-Z " Logout " "labwc -e"\
-Z "Shutdown " "systemctl poweroff"\
-Z " Reboot " "systemctl reboot"\
-Z "Hibernate" "systemctl hibernate"\
-Z " Suspend " "systemctl suspend"\
-Z " Cancel "\
--background-color 00ffff\
--button-background-color 00ffff\
--button-border-color 00ccccaa\
--text-color 000000\
--button-text-color 000000\
--button-gap 8\
--button-margin-right 0\
--button-padding 5\
--button-border-size 2\
-t 60
| 2025-10-11 |