conky.start.stop hinzugefügt
This commit is contained in:
16
conky.start.stop
Normal file
16
conky.start.stop
Normal file
@@ -0,0 +1,16 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user