From 2c2c7a096bd6ce37f19eea4a5932ff8993676615 Mon Sep 17 00:00:00 2001 From: B Stack Date: Wed, 5 Feb 2020 19:54:42 -0500 Subject: add -h option and example doc for menu separator --- examples/menu.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 examples/menu.sh (limited to 'examples/menu.sh') diff --git a/examples/menu.sh b/examples/menu.sh new file mode 100644 index 0000000..2ceb302 --- /dev/null +++ b/examples/menu.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +# Set up tray icon +mkfifo /tmp/$$.icon +./mktrayicon /tmp/$$.icon & + +# set menu with a separator and a quit option +echo "m terminal,xterm|-----,true|quit,echo 'q' > /tmp/$$.icon" > /tmp/$$.icon -- cgit