feat: add enable-picom-ingame.sh
This commit is contained in:
parent
57604a19c8
commit
526400efa9
25
apps/Lutris/enable-picom-ingame.sh
Executable file
25
apps/Lutris/enable-picom-ingame.sh
Executable 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."
|
Loading…
Reference in New Issue
Block a user