2020-02-18 17:24:18 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
if [ `pidof picom` ]; then
|
2020-09-30 22:56:54 +02:00
|
|
|
echo "Stopping picom"
|
|
|
|
killall picom
|
2020-02-18 17:24:18 +01:00
|
|
|
else
|
2020-09-30 22:56:54 +02:00
|
|
|
CONFIGFILE="$HOME/.config/picom.conf"
|
|
|
|
if [ -f "$CONFIGFILE" ];then
|
|
|
|
echo "Starting picom with config: $CONFIGFILE"
|
|
|
|
picom --config "$CONFIGFILE" &
|
|
|
|
else
|
|
|
|
echo "Starting picom without config file"
|
|
|
|
picom --config /dev/null &
|
|
|
|
fi
|
2020-02-18 17:24:18 +01:00
|
|
|
fi
|
|
|
|
exit
|