16 lines
480 B
Bash
16 lines
480 B
Bash
#!/bin/bash
|
|
|
|
# Define both Conky commands
|
|
CONKY_CMD1="/usr/bin/conky -c /home/kemi/APPS/conky/left.side.conky.conf -p 1"
|
|
CONKY_CMD2="/usr/bin/conky -c /home/kemi/APPS/conky/right.side.conky.conf -p 1"
|
|
|
|
# Check if Conky is running
|
|
if pgrep -x "conky" > /dev/null; then
|
|
echo "Conky is running — stopping it..."
|
|
pkill -x conky
|
|
else
|
|
echo "Conky is not running — starting it..."
|
|
$CONKY_CMD1 &
|
|
sleep 1 # small delay to avoid race conditions
|
|
$CONKY_CMD2 &
|
|
fi |