conky-config/start_conky.sh

31 lines
520 B
Bash
Raw Normal View History

2024-11-25 16:17:32 -05:00
#!/bin/bash
FIRST_TIME_RUN=1
if [ ${FIRST_TIME_RUN} == 1 ]; then
killall -9 conky
elif [${FIRST_TIME_RUN} == 0 ]; then
kill ${CONKY_CLOCK_PROC}
kill ${CONKY_MEDIA_PROC}
kill ${CONKY_PORT_PROC}
kill ${CONKY_BATT_PROC}
else
exit 1
fi
CONFIG_DIR="${HOME}/.config/conky"
conky -c ${CONFIG_DIR}/clock.conf
CONKY_CLOCK_PROC=$!
conky -c ${CONFIG_DIR}/mediaplayer.conf
CONKY_MEDIA_PROC=$!
conky -c ${CONFIG_DIR}/ports.conf
CONKY_PORT_PROC=$!
conky -c ${CONFIG_DIR}/battery.conf
CONKY_BATT_PROC=$!
FIRST_TIME_RUN=0