dot/scripts/revive-chrome-gpu

17 lines
252 B
Plaintext
Raw Normal View History

2021-10-09 21:20:41 +00:00
#!/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