diff --git a/users/erwin/work.nix b/users/erwin/work.nix index 48ecee2..c487b81 100644 --- a/users/erwin/work.nix +++ b/users/erwin/work.nix @@ -27,6 +27,27 @@ let ${config.home-manager.users.erwin.eboskma.programs.eww.package}/bin/eww $@ ''; + + workspacePartition = builtins.concatLists (builtins.attrValues (builtins.mapAttrs + ( + name: workspaces: + let + output = + if name == "right" + then "DP-1" + else "DP-3"; + in + builtins.map + (ws: { + inherit output; + workspace = toString ws; + }) + workspaces + ) + + (builtins.partition + (n: (trivial.mod n 2) != 0) + (lists.range 1 10)))); in { config = mkIf cfg.work { @@ -37,6 +58,7 @@ in var.workSystem = true; programs = { alacritty.enable = false; + anyrun.enable = true; atuin.enable = true; bat.enable = true; cargo = { @@ -125,12 +147,13 @@ in sway = { enable = true; output = { - "DP-0" = { - # bg = "${./wallpapers/jwst-saturn-nircam-2560.png} fill"; + "DP-1" = { + bg = "${../../home-manager/modules/sway/wallpapers/river-3840.png} fill"; mode = "3840x2160@60Hz"; position = "0 0"; }; - "DP-4" = { + "DP-3" = { + bg = "${../../home-manager/modules/sway/wallpapers/jwst-southern-ring-nircam-miri-side-by-side-3840.png} fill"; mode = "3840x2160@60Hz"; position = "3840 0"; }; @@ -149,6 +172,7 @@ in { command = "${ewwDaemon} --restart open bar-work"; always = true; } { command = "${pkgs.wayvnc}/bin/wayvnc -g 0.0.0.0"; } ]; + workspaceOutputs = workspacePartition; }; swaynotificationcenter.enable = true; zellij = { @@ -327,6 +351,7 @@ in imports = [ ../../modules/options + inputs.anyrun.nixosModules.home-manager ] ++ (map (mod: (../../home-manager/modules + "/${mod}")) (builtins.attrNames (builtins.readDir ../../home-manager/modules))); };