misc: uh what happened here

This commit is contained in:
2023-06-11 16:18:20 +07:00
parent bae0d02885
commit d0572325eb
24 changed files with 393 additions and 33 deletions

View File

@ -0,0 +1,25 @@
#!/usr/bin/env bash
# Put your game process name here (can be full name or short name)
# If it doesn't work for .exe file, try <process name>.e instead
# it may work.
PROCESS=""
echo "Waiting for '$PROCESS' to start..."
until _=$(pidof $PROCESS)
do
sleep 1
done
echo "Starting picom..."
picom --experimental-backends &
picom_pid=$!
echo "picom PID: $picom_pid"
echo "Waiting for '$PROCESS' to exit..."
while [[ $(pidof $PROCESS) ]]; do
sleep .5
done
echo "Killing picom..."
kill -15 $picom_pid
echo "Done."