]> git.mdlowis.com Git - proto/labwc.git/commitdiff
docs/labnag.1.scd: add a labnag example
author01micko <01micko@gmx.com>
Sat, 30 Aug 2025 10:17:43 +0000 (20:17 +1000)
committerJohan Malm <johanmalm@users.noreply.github.com>
Sat, 30 Aug 2025 11:38:05 +0000 (12:38 +0100)
docs/labnag.1.scd

index 5dc91ed851058f336347cf944fce151652c65a02..68ed3b68aae5ab459b4afd47403279fe71d5fcfc 100644 (file)
@@ -107,3 +107,34 @@ _labnag_ [options...]
 *--button-padding* <padding>
        Set the padding for the button text.
 
+# 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 00ffff\\
+ --button-background 00ffff\\
+ --border 00ccccaa\\
+ --text 000000\\
+ --button-text 000000\\
+ --button-gap 8\\
+ --button-margin-right 0\\
+ --button-padding 5\\
+ --button-border-size 2\\
+ -t 60
+```
+