2 #########################################
3 ## Control script for conkyclockwidget ##
6 ## Modified my OvsInc ##
7 #########################################
8 cnfg1
="/usr/share/conky/clockwidget/conkyclockwdgtrc"
9 cnfg1btn
="/usr/share/conky/clockwidget/btnclockwdgt.py"
10 confdir
="${HOME}/.conky/clockwidget"
11 conf
="${confdir}/clockswitch"
12 main
="/usr/share/conky/conky_main/conkyrc_main"
16 if [[ $
(pgrep
-f "${main}") ]]; then
17 echo "Conky main window is already running. Use $0 restart"
22 if [[ $
(pgrep
-f "${cnfg1}") ]]; then
23 echo "Conky clock widget is already running. Use $0 restart"
25 [[ -r ${cnfg1} ]] && \
27 mkdir
-p "${confdir}" 2>/dev
/null
29 conky
-q -c "${cnfg1}") &
30 [[ -r ${cnfg1btn} ]] && /usr
/bin
/python2
"${cnfg1btn}" &
36 pkill
-f clockwdgt
&& echo "Clockwidget stopped" ||
echo "Clockwidget is not running"
37 pkill
-f conky_main
&& echo "Conkymain stopped" ||
echo "Conkymain is not running"
51 echo 'usage ( start | stop | restart )'