Files
archcraft-berry/files/scripts/berry_comp
T
2024-01-06 18:48:02 +05:30

16 lines
343 B
Bash
Executable File

#!/usr/bin/env bash
## Copyright (C) 2020-2024 Aditya Shakya <adi1090x@gmail.com>
# berry directory
DIR="$HOME/.config/berry"
# Terminate if picom is already running
killall -q picom
# Wait until the processes have been shut down
while pgrep -u $UID -x picom >/dev/null; do sleep 1; done
# Launch picom
picom --config "$DIR"/picom.conf &