From 3b34decb42fc4023ed916f9a1cf1b3aefe38c58f Mon Sep 17 00:00:00 2001 From: Joe Groocock Date: Sun, 24 Jan 2021 11:37:37 +0000 Subject: [PATCH] X11: enable hardware video acceleration in firefox According to the wiki, setting this value helps a lot. Signed-off-by: Joe Groocock --- X11/xprofile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/X11/xprofile b/X11/xprofile index b3d2f88..df7b5bb 100644 --- a/X11/xprofile +++ b/X11/xprofile @@ -7,9 +7,12 @@ export BROWSER="firefox" export _JAVA_OPTIONS="-Dawt.useSystemAAFontSettings=on -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel" export GTK2_RC_FILES="$XDG_CONFIG_HOME/gtk-2.0/settings.ini" export QT_QPA_PLATFORMTHEME=qt5ct +export XDG_CURRENT_DESKTOP="GNOME" # Fixes xdg-open + # https://www.reddit.com/r/linux/comments/72mfv8/psa_for_firefox_users_set_moz_use_xinput21_to/ export MOZ_USE_XINPUT2=1 # enable pixel-accurate scrolling in firefox -export XDG_CURRENT_DESKTOP="GNOME" # Fixes xdg-open +# https://wiki.archlinux.org/index.php/firefox#Hardware_video_acceleration +export MOZ_X11_EGL=1 # Load Xorg resources and set the DPI