use dGPU (nvidia) for video playback in zen browser

This commit is contained in:
2025-09-21 00:04:18 +03:00
parent 537e100587
commit 4ac915c003
7 changed files with 177 additions and 110 deletions

View File

@@ -13,6 +13,7 @@ $term = kitty
$editor = nvim
$file = dolphin
$browser = zen-browser
$browserNvidia = env __NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia __VK_LAYER_NV_optimus=NVIDIA_only zen-browser
$viewer = zathura
# Window/Session actions
@@ -35,6 +36,7 @@ bind = $mainMod+Alt, T, exec, [float] $term
bind = $mainMod, E, exec, [float] $file # launch file manager
bind = $mainMod, C, exec, $editor # launch text editor
bind = $mainMod, F, exec, $browser # launch web browser
bind = $mainMod, B, exec, $browserNvidia # launch web browser with Nvidia support
bind = Ctrl+Shift, Escape, exec, $scrPath/sysmonlaunch.sh # launch system monitor (htop/btop or fallback to top)
bind = $mainMod, D, exec, $viewer # launch document viewer