dot/scripts/revive-chrome-gpu
2021-10-09 22:20:41 +01:00

16 lines
252 B
Bash
Executable file

#!/bin/sh
set -e
if [ "$2" = "suspend" ] || [ "$2" = "hybrid-sleep" ]
then
case "$1" in
pre)
true
;;
post)
sleep 1
pkill -f 'brave \-\-type=gpu-process'
;;
esac
fi