Skip to content

Instantly share code, notes, and snippets.

@jjrh
Created July 31, 2016 17:02
Show Gist options
  • Save jjrh/8e52398a6f786d5c8f09a3f65d59e1a0 to your computer and use it in GitHub Desktop.
Save jjrh/8e52398a6f786d5c8f09a3f65d59e1a0 to your computer and use it in GitHub Desktop.
Start tint2 vertical config if it isn't running, if it's running kill it.
#!/bin/bash
EXIST=$(ps ax | grep "tint2_verticalrc" | grep -v grep)
if [ ${#EXIST} -eq 0 ]; then
tint2 -c ~/.config/tint2/tint2_verticalrc >>/dev/null 2> /dev/null &
else
kill $(echo $EXIST | cut -f1 -d ' ')
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment