summaryrefslogtreecommitdiff
path: root/examples/menu.sh
diff options
context:
space:
mode:
Diffstat (limited to 'examples/menu.sh')
-rw-r--r--examples/menu.sh8
1 files changed, 8 insertions, 0 deletions
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
bgstack15