add hw acc for firefox on arch
This commit is contained in:
parent
9a154b66a9
commit
8bf9a06597
3 changed files with 6 additions and 0 deletions
2
.mozilla/firefox/user-arch.js
Normal file
2
.mozilla/firefox/user-arch.js
Normal 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)
|
1
Makefile
1
Makefile
|
@ -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
|
||||
|
|
3
arch.sh
3
arch.sh
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue