Skip to content

Commit

Permalink
Use zen as browser on yoga
Browse files Browse the repository at this point in the history
  • Loading branch information
natsukagami committed Nov 15, 2024
1 parent ec187e6 commit 43a33c2
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 15 deletions.
5 changes: 1 addition & 4 deletions home/modules/linux/graphical/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ in
librewolf
thunderbird
vesktop
premid
];
};
defaults.webBrowser = mkOption {
Expand All @@ -58,7 +57,6 @@ in
feh # For images?
deluge # Torrent client
pavucontrol # PulseAudio control panel
thunderbird # Email
sublime-music # For navidrome
# cinny-desktop
gajim
Expand All @@ -78,14 +76,13 @@ in
slack
zoom-us

librewolf

## CLI stuff
dex # .desktop file management, startup
# sct # Display color temperature
xdg-utils # Open stuff
wifi-indicator
]);
] ++ cfg.startup);

nki.programs.discord.enable = pkgs.stdenv.isx86_64;
nki.programs.discord.package = pkgs.vesktop;
Expand Down
5 changes: 4 additions & 1 deletion home/modules/programs/my-sway/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -291,14 +291,17 @@ in
# Assigning windows to workspaces
assigns = {
"${builtins.elemAt workspaces 0}" = [
{ class = "^firefox$"; }
{ app_id = "^firefox$"; }
{ app_id = "^librewolf$"; }
];
"${builtins.elemAt workspaces 1}" = [
{ class = "^((d|D)iscord|((A|a)rm(c|C)ord))$"; }
{ class = "VencordDesktop"; }
{ app_id = "VencordDesktop"; }
{ class = "vesktop"; }
{ app_id = "vesktop"; }

{ class = "Slack"; }
];
${extraWorkspaces.mail} = [
{ app_id = "thunderbird"; }
Expand Down
30 changes: 21 additions & 9 deletions home/nki-x1c1.nix
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
# Graphical set up
linux.graphical.type = "wayland";
linux.graphical.wallpaper = ./images/wallpaper_0.png;
linux.graphical.defaults.webBrowser = "librewolf.desktop";
linux.graphical.startup = with pkgs; [ zen-browser-bin thunderbird vesktop slack ];
linux.graphical.defaults.webBrowser = "zen.desktop";
# Enable sway
programs.my-sway.enable = true;
programs.my-sway.fontSize = 14.0;
Expand Down Expand Up @@ -96,14 +97,25 @@
# Multiple screen setup
services.kanshi = with config.common.monitors; {
enable = true;
profiles.undocked.outputs = [{ criteria = "LVDS-1"; }];
profiles.work-both.outputs = [
{ criteria = "eDP-1"; position = "0,${toString (builtins.floor ((2160 / work.scale - 1200) + 1200 / 3))}"; status = "enable"; }
{ criteria = work.name; position = "1920,0"; }
];
profiles.work-one.outputs = [
{ criteria = "eDP-1"; status = "disable"; }
{ criteria = config.common.monitors.work.name; }
settings = [
{
profile.name = "undocked";
profile.outputs = [{ criteria = "LVDS-1"; }];
}
{
profile.name = "work-both";
profile.outputs = [
{ criteria = "eDP-1"; position = "0,${toString (builtins.floor ((2160 / work.scale - 1200) + 1200 / 3))}"; status = "enable"; }
{ criteria = work.name; position = "1920,0"; }
];
}
{
profile.name = "work-one";
profile.outputs = [
{ criteria = "eDP-1"; status = "disable"; }
{ criteria = work.name; }
];
}
];
};

Expand Down
2 changes: 1 addition & 1 deletion packages/x86_64-linux/zen-browser-bin.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ appimageTools, fetchurl, nativeMessagingHosts, ... }:
{ appimageTools, fetchurl, nativeMessagingHosts ? [ ], ... }:
let
pname = "zen-browser-bin";
version = "1.0.1-a.19";
Expand Down

0 comments on commit 43a33c2

Please sign in to comment.