add hw acc for firefox on arch

This commit is contained in:
Mylloon 2023-05-01 14:24:18 +02:00
parent 9a154b66a9
commit 8bf9a06597
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
3 changed files with 6 additions and 0 deletions

View file

@ -0,0 +1,2 @@
user_pref("gfx.webrender.all", true); // Composition => WebRender (hardware)
user_pref("media.ffmpeg.vaapi.enabled", true); // VA-API (hardware acceleration)

View file

@ -100,6 +100,7 @@ sync-arch:
# Firefox
-@$(RM) $(HOME)/.mozilla/firefox/*.default-release/user.js
@$(WGET) $(REPO_SRC)/.mozilla/firefox/user.js -P $(HOME)/.mozilla/firefox/*.default-release
@$(CURL) $(REPO_SRC)/.mozilla/firefox/user-arch.js >> $(HOME)/.mozilla/firefox/*.default-release/user.js
# VSCodium
@$(WGET) $(REPO_SRC)/.config/VSCodium/product.json -O $(HOME)/.config/VSCodium/product.json

View file

@ -313,8 +313,11 @@ main() {
sleep 2
pkill firefox
wget -q --show-progress https://git.mylloon.fr/Anri/confOS/raw/branch/main/.mozilla/firefox/user.js -P "$HOME"/.mozilla/firefox/*.default-release
curl -s https://git.mylloon.fr/Anri/confOS/raw/branch/main/.mozilla/firefox/user-arch.js >> "$HOME"/.mozilla/firefox/*.default-release/user.js
# 2 fingers history control
echo "export MOZ_USE_XINPUT2=1" >> "$HOME"/.profile
# Hardware acceleration
echo "export MOZ_DRM_DEVICE=/dev/dri/renderD128" >> "$HOME"/.profile
# Download extension configuration (TODO: Check Download Folder's Name)
#wget -q --show-progress https://git.mylloon.fr/Anri/confOS/raw/branch/main/.mozilla/firefox/extensions/Dark-Reader-Settings.json -P "$HOME"/Téléchargements
#wget -q --show-progress https://git.mylloon.fr/Anri/confOS/raw/branch/main/.mozilla/firefox/extensions/SponsorBlockConfig.json -P "$HOME"/Téléchargements