summaryrefslogtreecommitdiff
path: root/scripts/revive-chrome-gpu
blob: 0bf16bca9ff021283eb203ac832c17564accb5db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/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