diff options
author | B Stack <bgstack15@gmail.com> | 2020-02-05 19:54:42 -0500 |
---|---|---|
committer | B Stack <bgstack15@gmail.com> | 2020-02-05 19:54:42 -0500 |
commit | 2c2c7a096bd6ce37f19eea4a5932ff8993676615 (patch) | |
tree | f205250afc380e0b6ac7b0efe514015abf3cfd30 /examples | |
parent | accept "-----" as a separator in the menu spec (diff) | |
download | mktrayicon-2c2c7a096bd6ce37f19eea4a5932ff8993676615.tar.gz mktrayicon-2c2c7a096bd6ce37f19eea4a5932ff8993676615.tar.bz2 mktrayicon-2c2c7a096bd6ce37f19eea4a5932ff8993676615.zip |
add -h option and example doc for menu separator
Diffstat (limited to 'examples')
-rw-r--r-- | examples/menu.sh | 8 |
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 |