Skip to content

Commit

Permalink
home: switch to zen browser
Browse files Browse the repository at this point in the history
  • Loading branch information
fufexan committed Sep 25, 2024
1 parent d44ea1a commit ae4c6b4
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 5 deletions.
23 changes: 22 additions & 1 deletion flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -172,5 +172,10 @@
flake-compat.follows = "flake-compat";
};
};

zen-browser = {
url = "github:fufexan/zen-browser-flake";
inputs.nixpkgs.follows = "nixpkgs";
};
};
}
9 changes: 9 additions & 0 deletions home/programs/browsers/zen.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
inputs,
pkgs,
...
}: {
home.packages = [
inputs.zen-browser.packages.${pkgs.system}.default
];
}
1 change: 1 addition & 0 deletions home/programs/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
./anyrun
./browsers/chromium.nix
./browsers/firefox.nix
./browsers/zen.nix
./media
./gtk.nix
./office
Expand Down
7 changes: 4 additions & 3 deletions home/programs/wayland/hyprland/rules.nix
Original file line number Diff line number Diff line change
Expand Up @@ -45,21 +45,22 @@
# allow tearing in games
"immediate, class:^(osu\!|cs2)$"

# make Firefox PiP window floating and sticky
# make Firefox/Zen PiP window floating and sticky
"float, title:^(Picture-in-Picture)$"
"pin, title:^(Picture-in-Picture)$"

# throw sharing indicators away
"workspace special silent, title:^(Firefox — Sharing Indicator)$"
"workspace special silent, title:^(Zen — Sharing Indicator)$"
"workspace special silent, title:^(.*is sharing (your screen|a window)\.)$"

# start spotify in ws9
"workspace 9 silent, title:^(Spotify( Premium)?)$"

# idle inhibit while watching videos
"idleinhibit focus, class:^(mpv|.+exe|celluloid)$"
"idleinhibit focus, class:^(firefox)$, title:^(.*YouTube.*)$"
"idleinhibit fullscreen, class:^(firefox)$"
"idleinhibit focus, class:^(zen)$, title:^(.*YouTube.*)$"
"idleinhibit fullscreen, class:^(zen)$"

"dimaround, class:^(gcr-prompter)$"
"dimaround, class:^(xdg-desktop-portal-gtk)$"
Expand Down
2 changes: 1 addition & 1 deletion home/terminal/programs/xdg.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
pkgs,
...
}: let
browser = ["firefox"];
browser = ["zen-browser"];
imageViewer = ["org.gnome.Loupe"];
videoPlayer = ["io.github.celluloid_player.Celluloid"];
audioPlayer = ["io.bassi.Amberol"];
Expand Down

0 comments on commit ae4c6b4

Please sign in to comment.