Compare commits

..

2 Commits

2 changed files with 13 additions and 27 deletions

View File

@ -2,17 +2,16 @@
# call the brave browser with some nice flags
/usr/bin/brave --process-per-site \
--disk-cache-dir="/tmp/brave-cache" \
--use-gl=desktop \
--enable-accelerated-video-decode \
--enable-gpu-compositing \
--enable-gpu-rasterization \
--enable-oop-rasterization \
--enable-zero-copy \
--enable-raw-draw \
--enable-features=VaapiVideoDecoder,VaapiVideoDecoder,CanvasOopRasterization,WebUIDarkMode \
--force-dark-mode \
--use-vulkan \
"$@"
/usr/bin/brave \
--process-per-site \
--disk-cache-dir="/tmp/brave-cache" \
--use-gl=angle \
--use-angle=gl \
--enable-gpu-compositing \
--enable-gpu-rasterization \
--enable-oop-rasterization \
--enable-features=VaapiVideoEncoder,CanvasOopRasterization,VaapiVideoDecodeLinuxGL,VaapiIgnoreDriverChecks,Vulkan \
--ignore-gpu-blocklist \
--enable-zero-copy \
--enable-raw-draw \
"$@"

View File

@ -1,13 +0,0 @@
#! /bin/bash
# get an oauth access token using the refresh token
token_url="$(pass "email/$1/token_url")"
client_id="$(pass "email/$1/client_id")"
client_secret="$(pass "email/$1/client_secret")"
refresh_token="$(pass "email/$1/refresh_token")"
curl --silent \
--request POST \
--data "client_id=$client_id&client_secret=$client_secret&refresh_token=$refresh_token&grant_type=refresh_token" \
"$token_url" \
| jq -r '.access_token'