Created
February 16, 2016 18:37
-
-
Save tryone144/331a9f856b6b00b862c7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# (c) 2015 Bernd Busse | |
# | |
if ! pgrep stalonetray &>/dev/null; then | |
# start stalonetray | |
stalonetray --geometry 10x1 --grow-gravity W --icon-gravity SE --icon-size 16 --kludges force_icons_size --skip-taskbar true --sticky true --transparent true --tint-color black --tint-level 128 --window-strut bottom & | |
fi | |
# try to hide tray | |
if ! xdotool search --onlyvisible --classname stalonetray windowunmap; then | |
# allready hidden => show stalonetray | |
xdotool search --classname stalonetray windowmap | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment