From 986514cb4e29b5f10d6e4fe8836e017be283264e Mon Sep 17 00:00:00 2001 From: ndwarshuis Date: Wed, 6 Mar 2024 15:59:48 -0500 Subject: [PATCH] ENH update workstation brave config --- .files/brave-bins/workstation | 13 +++++++++++++ dot_bin/executable_brave.tmpl | 2 ++ 2 files changed, 15 insertions(+) create mode 100755 .files/brave-bins/workstation diff --git a/.files/brave-bins/workstation b/.files/brave-bins/workstation new file mode 100755 index 0000000..ef99929 --- /dev/null +++ b/.files/brave-bins/workstation @@ -0,0 +1,13 @@ +#! /bin/bash + +# call the brave browser with some nice flags + +/usr/bin/brave --process-per-site \ + --disk-cache-dir="/tmp/brave-cache" \ + --use-gl=angle \ + --use-angle=gl \ + --enable-features=VaapiVideoEncoder,VaapiVideoDecoder,CanvasOopRasterization,WebUIDarkMode,RawDraw \ + --force-dark-mode \ + --use-vulkan \ + "$@" + diff --git a/dot_bin/executable_brave.tmpl b/dot_bin/executable_brave.tmpl index 1725145..c849dba 100644 --- a/dot_bin/executable_brave.tmpl +++ b/dot_bin/executable_brave.tmpl @@ -1,5 +1,7 @@ {{- if eq .features.desktop_alias "work-laptop" -}} {{- include ".files/brave-bins/work-laptop" -}} +{{- if eq .features.desktop_alias "workstation" -}} +{{- include ".files/brave-bins/workstation" -}} {{- else -}} {{- include ".files/brave-bins/default" -}} {{- end -}}