Skip to content

Commit

Permalink
fix(brave): disable video acceleration while broken
Browse files Browse the repository at this point in the history
  • Loading branch information
workflow committed Oct 15, 2024
1 parent 7438f4f commit 8718cf5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 4 additions & 2 deletions home/i3/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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\"";
Expand Down
3 changes: 2 additions & 1 deletion home/xdg.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit 8718cf5

Please sign in to comment.