diff options
author | Jon Gjengset <jon@thesquareplanet.com> | 2013-09-11 21:15:43 +0100 |
---|---|---|
committer | Jon Gjengset <jon@thesquareplanet.com> | 2013-09-11 21:16:21 +0100 |
commit | b42563d10ecab2a7b8b6d6e8967c07cdc6ccd4f4 (patch) | |
tree | 5d0003a282f2d49f16f0342e69f447d87de5dac3 /example.sh | |
parent | Hide debug messages by default (diff) | |
download | mktrayicon-b42563d10ecab2a7b8b6d6e8967c07cdc6ccd4f4.tar.gz mktrayicon-b42563d10ecab2a7b8b6d6e8967c07cdc6ccd4f4.tar.bz2 mktrayicon-b42563d10ecab2a7b8b6d6e8967c07cdc6ccd4f4.zip |
Add examples directory
Diffstat (limited to 'example.sh')
-rwxr-xr-x | example.sh | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/example.sh b/example.sh deleted file mode 100755 index 9660ddd..0000000 --- a/example.sh +++ /dev/null @@ -1,33 +0,0 @@ -#!/bin/bash - -# Set up tray icon -mkfifo /tmp/$$.icon -./mktrayicon /tmp/$$.icon & - -# Manipulate tray icon - -# Click handling -echo "c xterm -e /bin/sh -c 'iwconfig; read'" > /tmp/$$.icon - -# Change the icon and tooltip -for i in none weak ok good excellent; do - echo "i network-wireless-signal-$i-symbolic" > /tmp/$$.icon - echo "t Signal strength: $i" > /tmp/$$.icon - sleep 1 -done - -# Remove tooltip and click handler -echo "c" > /tmp/$$.icon -echo "t" > /tmp/$$.icon - -# Toggle the visibility of the icon for a bit -for i in {1..3}; do - for j in h s; do - echo $j > /tmp/$$.icon - sleep .5s - done -done - -# Remove tray icon -echo "q" > /tmp/$$.icon -rm /tmp/$$.icon |