feat: add zen browser flake

This commit is contained in:
danny 2025-08-14 09:29:00 +08:00
parent 53a6b8e4a5
commit 179961297b
18 changed files with 425 additions and 185 deletions

View file

@ -12,9 +12,9 @@ let
notransTag = "notrans";
firefox = "firefox";
browser-bin = "zen";
prefix = if nvidia-offload-enabled then "nvidia-offload" else "";
browser = "${prefix} ${firefox}";
browser = "${prefix} ${browser-bin}";
terminal = "ghostty";
filemanager = "${terminal} -e yazi";
@ -23,11 +23,11 @@ let
gamingWorkspace = 7;
toggleWlogout = pkgs.writeShellScriptBin "toggle" ''
toggleWlogout = pkgs.writeShellScript "toggle" ''
if ${pkgs.busybox}/bin/pgrep wlogout > /dev/null; then
${pkgs.busybox}/bin/pkill wlogout
else
${pkgs.wlogout}/bin/wlogout --protocol layer-shell
${config.programs.wlogout.package}/bin/wlogout --protocol layer-shell
fi
'';
@ -47,7 +47,7 @@ in
''CTRL ALT, T, exec, ${terminal}''
''${mainMod}, Q, killactive, ''
''${mainMod}, M, exec, ${toggleWlogout}/bin/toggle''
''${mainMod}, M, exec, ${toggleWlogout}''
''${mainMod}, E, exec, ${filemanager}''
''${mainMod}, V, togglefloating, ''
''ALT, SPACE, exec, rofi -config ~/.config/rofi/apps.rasi -show drun''

View file

@ -34,6 +34,8 @@ in
"float, class:^(xdg-desktop-portal-gtk)$"
"float, title:^(Steam Settings)$"
"opacity 0.9999 override, initialClass:^(zen)(.*)"
# Picture in picture windows
"float, title:^(Picture-in-Picture)$"
"pin, title:^(Picture-in-Picture)$"
@ -71,7 +73,9 @@ in
"pin, class: ^(GStreamer)$"
"float, class: ^(GStreamer)$"
"opacity 1.0 override 1.0 override, class: ^(GStreamer)$"
"noblur, class: ^(GStreamer)$"
"animation slide right 20%, class: ^(GStreamer)$"
"keepaspectratio, class: ^(GStreamer)$"
# Bluetooth
"float, class: ^(blueberry.py)$"
@ -98,13 +102,6 @@ in
# Davinci resolve
"center 1, initialClass: ^(resolve), floating: 1"
# Disable Tansparent for youtube video
"opacity 1.0 override 1.0 override, title:(.*)( - YouTube Mozilla Firefox)"
"noblur, title:(.*)( - YouTube Mozilla Firefox)"
"opacity 1.0 override 1.0 override, title:(.*)( - Mozilla Firefox)"
"noblur, title:(.*)( - YouTube Mozilla Firefox)"
# Disable Tansparent
"opacity 1.0 override 1.0 override, tag:${notransTag}"
"noblur, tag: ^(${notransTag})$"