Skip to content

Instantly share code, notes, and snippets.

@tryone144
Created February 16, 2016 18:37
Show Gist options
  • Save tryone144/331a9f856b6b00b862c7 to your computer and use it in GitHub Desktop.
Save tryone144/331a9f856b6b00b862c7 to your computer and use it in GitHub Desktop.
#!/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