try to enable hw accel for mpv and firefox

This commit is contained in:
Noah Masur 2023-06-05 23:50:32 -04:00
parent c88718b649
commit 494cf355e9
2 changed files with 6 additions and 1 deletions

View File

@ -71,6 +71,8 @@
"layout.css.color-mix.enabled" = true; "layout.css.color-mix.enabled" = true;
"ui.systemUsesDarkTheme" = "ui.systemUsesDarkTheme" =
if config.theme.dark == true then 1 else 0; if config.theme.dark == true then 1 else 0;
"media.ffmpeg.vaapi.enabled" =
true; # Enable hardware video acceleration
}; };
userChrome = '' userChrome = ''
:root { :root {

View File

@ -21,7 +21,10 @@
programs.mpv = { programs.mpv = {
enable = true; enable = true;
bindings = { }; bindings = { };
config = { image-display-duration = 2; }; config = {
image-display-duration = 2;
hwdec = "auto-safe";
};
scripts = [ scripts = [
# Automatically load playlist entries before and after current file # Automatically load playlist entries before and after current file