config/run-conky.sh
Bradley M. Kuhn 7f0caca15a Both conky and my scripts conky calls create temporary files that get left around
wherever it might run from.  This ensures they all go someplace out of the
way.
2013-09-01 12:54:19 -04:00

35 lines
1.3 KiB
Bash
Executable file

#!/bin/sh
# Copyright © 2013, Bradley M. Kuhn
# The copyright holders wish that this document could be placed into the public
# domain. However, should such a public domain dedication not be possible, the
# copyright holders grant a waiver and/or license under the terms of CC0-1.0, as
# published by Creative Commons, Inc. A copy of CC0-1.0 can be found in the
# same repository as this README.md file under the filename CC0-1.0.txt. If
# this document has been separated from the repository, a copy of CC0-1.0 can
# be found on Creative Commons' website at:
# http://creativecommons.org/publicdomain/zero/1.0/legalcode).
RUNNING_DIR=$HOME/tmp/.conky-running-temp-files
cd $RUNNING_DIR
if [ $? -ne 0 ]; then
/bin/mkdir -p $RUNNING_DIR
cd $RUNNING_DIR
if [ $? -ne 0 ]; then
echo "$0: FAILED to create and/or enter $RUNNING_DIR: $! ... Giving up!"
exit 1
fi
fi
sleep 10
/usr/bin/conky -d -c $HOME/Files/Public-Configuration/left.conkyrc
sleep 3
/usr/bin/conky -d -c $HOME/Files/Public-Configuration/right.conkyrc
sleep 3
/usr/bin/conky -d -c $HOME/Files/Public-Configuration/center.conkyrc
sleep 3
/usr/bin/conky -d -c $HOME/Files/Public-Configuration/bottom-right.conkyrc
sleep 3
/usr/bin/conky -d -c $HOME/Files/Public-Configuration/bottom-left.conkyrc
exit 0