dot/scripts/revive-chrome-gpu

17 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