From 8718cf50971c144bffd7a064d677d2d9389a5cbf Mon Sep 17 00:00:00 2001 From: workflow <4farlion@gmail.com> Date: Tue, 15 Oct 2024 22:13:55 +0100 Subject: [PATCH] fix(brave): disable video acceleration while broken --- home/i3/default.nix | 6 ++++-- home/xdg.nix | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/home/i3/default.nix b/home/i3/default.nix index 6724bed..82886ae 100644 --- a/home/i3/default.nix +++ b/home/i3/default.nix @@ -240,8 +240,10 @@ in { "${mod}+Ctrl+h" = "exec --no-startup-id dunstctl history-pop"; # Launch Browser - "${mod}+b" = "exec \"brave --profile-directory='Default' --enable-features='VaapiVideoDecoder,VaapiVideoEncoder' --enable-raw-draw --password-store=seahorse\""; - "${mod}+h" = "exec \"brave --profile-directory='Profile 1' --enable-features='VaapiVideoDecoder,VaapiVideoEncoder' --enable-raw-draw --password-store=seahorse\""; + # "${mod}+b" = "exec \"brave --profile-directory='Default' --enable-features='VaapiVideoDecoder,VaapiVideoEncoder' --enable-raw-draw --password-store=seahorse\""; + # "${mod}+h" = "exec \"brave --profile-directory='Profile 1' --enable-features='VaapiVideoDecoder,VaapiVideoEncoder' --enable-raw-draw --password-store=seahorse\""; + "${mod}+b" = "exec \"brave --profile-directory='Default' --disable-accelerated-video-decode --password-store=seahorse\""; + "${mod}+h" = "exec \"brave --profile-directory='Profile 1' --disable-accelerated-video-decode --password-store=seahorse\""; # File Manager ("navigate") "${mod}+n" = "exec \"alacritty -e fish -ic lf\""; diff --git a/home/xdg.nix b/home/xdg.nix index 730bf05..422e6a5 100644 --- a/home/xdg.nix +++ b/home/xdg.nix @@ -6,7 +6,8 @@ xdg = { desktopEntries = { brave-browser = { - exec = "${pkgs.unstable.brave}/bin/brave --enable-features=\"VaapiVideoDecoder,VaapiVideoEncoder\" --enable-raw-draw %U"; + # exec = "${pkgs.unstable.brave}/bin/brave --enable-features=\"VaapiVideoDecoder,VaapiVideoEncoder\" --enable-raw-draw %U"; + exec = "${pkgs.unstable.brave}/bin/brave --disable-accelerated-video-decode %U"; name = "Brave Browser"; comment = "Access the Internet"; genericName = "Web Browser";