mirror of
https://github.com/arthur-pbty/arthur-os.git
synced 2026-08-01 20:28:16 +02:00
Add VaapiVideoDecode flags for Chromium and Brave by default
Closes #1011
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
--ozone-platform=wayland
|
||||
--ozone-platform-hint=wayland
|
||||
--enable-features=TouchpadOverscrollHistoryNavigation
|
||||
--enable-features=TouchpadOverscrollHistoryNavigation,VaapiVideoDecodeLinuxGL,VaapiVideoEncoder
|
||||
--load-extension=~/.local/share/omarchy/default/chromium/extensions/copy-url
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
--ozone-platform=wayland
|
||||
--ozone-platform-hint=wayland
|
||||
--enable-features=TouchpadOverscrollHistoryNavigation
|
||||
--enable-features=TouchpadOverscrollHistoryNavigation,VaapiVideoDecodeLinuxGL,VaapiVideoEncoder
|
||||
--load-extension=~/.local/share/omarchy/default/chromium/extensions/copy-url
|
||||
|
||||
Executable
+20
@@ -0,0 +1,20 @@
|
||||
echo "Enable VAAPI hardware video decoding/encoding in Chromium and Brave for h265 and other codecs"
|
||||
|
||||
add_flag() {
|
||||
local file=$1
|
||||
local flag=$2
|
||||
|
||||
[[ -f $file ]] || return
|
||||
grep -q "$flag" "$file" && return
|
||||
|
||||
if grep -q "^--enable-features=" "$file"; then
|
||||
sed -i "s/^--enable-features=\(.*\)$/--enable-features=\1,$flag/" "$file"
|
||||
else
|
||||
echo "--enable-features=$flag" >>"$file"
|
||||
fi
|
||||
}
|
||||
|
||||
for conf in chromium-flags.conf brave-flags.conf; do
|
||||
add_flag "$HOME/.config/$conf" "VaapiVideoDecodeLinuxGL"
|
||||
add_flag "$HOME/.config/$conf" "VaapiVideoEncoder"
|
||||
done
|
||||
Reference in New Issue
Block a user