25 lines
840 B
Bash
Executable File
25 lines
840 B
Bash
Executable File
#! /bin/bash
|
|
|
|
# call the brave browser with some nice flags
|
|
|
|
# NOTE, the vulkan ICD is specified to force the intel GPU rather than the
|
|
# Nvidida gpu (which otherwise would be chosen by default and cause it to
|
|
# be woken up every time I do anything with video/graphics/cameras/etc)
|
|
# NOTE use-angle=vulkan is extremely important (for some reason)
|
|
# NOTE obviously this entails vulkan being installed with the indel drive
|
|
VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/intel_icd.x86_64.json \
|
|
/usr/bin/brave \
|
|
--process-per-site \
|
|
--disk-cache-dir="/tmp/brave-cache" \
|
|
--use-angle=vulkan \
|
|
--enable-gpu-compositing \
|
|
--enable-gpu-rasterization \
|
|
--enable-oop-rasterization \
|
|
--enable-features=VaapiVideoEncoder,WebUIDarkMode \
|
|
--ignore-gpu-blocklist \
|
|
--enable-zero-copy \
|
|
--enable-raw-draw \
|
|
--use-vulkan \
|
|
--force-dark-mode \
|
|
"$@"
|