summaryrefslogtreecommitdiff
path: root/examples/menu.sh
diff options
context:
space:
mode:
authorB Stack <bgstack15@gmail.com>2020-02-05 19:54:42 -0500
committerB Stack <bgstack15@gmail.com>2020-02-05 19:54:42 -0500
commit2c2c7a096bd6ce37f19eea4a5932ff8993676615 (patch)
treef205250afc380e0b6ac7b0efe514015abf3cfd30 /examples/menu.sh
parentaccept "-----" as a separator in the menu spec (diff)
downloadmktrayicon-2c2c7a096bd6ce37f19eea4a5932ff8993676615.tar.gz
mktrayicon-2c2c7a096bd6ce37f19eea4a5932ff8993676615.tar.bz2
mktrayicon-2c2c7a096bd6ce37f19eea4a5932ff8993676615.zip
add -h option and example doc for menu separator
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