Compare commits
2 Commits
450f64ba99
...
0ade146fa7
Author | SHA1 | Date |
---|---|---|
Nathan Dwarshuis | 0ade146fa7 | |
Nathan Dwarshuis | 7b6b13f58f |
|
@ -2,17 +2,16 @@
|
||||||
|
|
||||||
# call the brave browser with some nice flags
|
# call the brave browser with some nice flags
|
||||||
|
|
||||||
/usr/bin/brave --process-per-site \
|
/usr/bin/brave \
|
||||||
--disk-cache-dir="/tmp/brave-cache" \
|
--process-per-site \
|
||||||
--use-gl=desktop \
|
--disk-cache-dir="/tmp/brave-cache" \
|
||||||
--enable-accelerated-video-decode \
|
--use-gl=angle \
|
||||||
--enable-gpu-compositing \
|
--use-angle=gl \
|
||||||
--enable-gpu-rasterization \
|
--enable-gpu-compositing \
|
||||||
--enable-oop-rasterization \
|
--enable-gpu-rasterization \
|
||||||
--enable-zero-copy \
|
--enable-oop-rasterization \
|
||||||
--enable-raw-draw \
|
--enable-features=VaapiVideoEncoder,CanvasOopRasterization,VaapiVideoDecodeLinuxGL,VaapiIgnoreDriverChecks,Vulkan \
|
||||||
--enable-features=VaapiVideoDecoder,VaapiVideoDecoder,CanvasOopRasterization,WebUIDarkMode \
|
--ignore-gpu-blocklist \
|
||||||
--force-dark-mode \
|
--enable-zero-copy \
|
||||||
--use-vulkan \
|
--enable-raw-draw \
|
||||||
"$@"
|
"$@"
|
||||||
|
|
||||||
|
|
|
@ -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'
|
|
Loading…
Reference in New Issue