summaryrefslogtreecommitdiff
path: root/examples/menu.sh
diff options
context:
space:
mode:
authorB Stack <bgstack15@gmail.com>2020-02-13 09:38:40 -0500
committerB Stack <bgstack15@gmail.com>2020-02-13 09:38:40 -0500
commitcea23e87e971f2a8494e2bef0a416d1e41d95e0c (patch)
treeac765bb5f39dbb388bc45030520e42898788ded4 /examples/menu.sh
parentadd middleclick, and documentation (diff)
downloadmktrayicon-cea23e87e971f2a8494e2bef0a416d1e41d95e0c.tar.gz
mktrayicon-cea23e87e971f2a8494e2bef0a416d1e41d95e0c.tar.bz2
mktrayicon-cea23e87e971f2a8494e2bef0a416d1e41d95e0c.zip
merge scrollevents and menu_separator for new master
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