From 0ee803043b8ed104c1764b9680bb8cc85d2d4ec4 Mon Sep 17 00:00:00 2001 From: Johan Malm Date: Wed, 19 Feb 2025 21:41:22 +0000 Subject: [PATCH] Add contrib/example-dynamic-root-menu.sh ...because such menus are supported with the released of labwc 0.8.3 It shows how a simple wrapper can be written around labwc-menu-generator to add some menu entires before and after the generated directories and .desktop entries. --- contrib/example-dynamic-root-menu.sh | 33 ++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100755 contrib/example-dynamic-root-menu.sh diff --git a/contrib/example-dynamic-root-menu.sh b/contrib/example-dynamic-root-menu.sh new file mode 100755 index 0000000..138c4da --- /dev/null +++ b/contrib/example-dynamic-root-menu.sh @@ -0,0 +1,33 @@ +#!/bin/sh +# +# Example usage (~/.config/labwc/menu.xml): +# +# +# +# +# + +terminal="foot" + +printf '%b\n' ' + + firefox + + + + + + + + ' + +labwc-menu-generator -b -t "${terminal}" + +printf '%b\n' ' + + + + + + +'