17 lines
368 B
Bash
Executable File
17 lines
368 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [ $(pidof picom) ]; then
|
|
echo "Stopping picom"
|
|
killall picom
|
|
else
|
|
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
|
|
fi
|
|
exit
|