diff --git a/homes/julian/aspi.nix b/homes/julian/aspi.nix index 9b92ceb..0060839 100644 --- a/homes/julian/aspi.nix +++ b/homes/julian/aspi.nix @@ -21,4 +21,35 @@ hostName = "aspi"; is-nixos = true; terminal = "kitty"; + + # ------- ---------- + # | eDP-1 | | HDMI-A-1 | + # ------- ---------- + monitors = [ + { + name = "HDMI-A-1"; + # width = 1680; + # height = 1050; + workspaces = [ + "1" + "2" + "3" + "4" + "5" + ]; + primary = true; + } + { + name = "eDP-1"; + # width = 1680; + # height = 1050; + workspaces = [ + "6" + "7" + "8" + "9" + "10" + ]; + } + ]; } diff --git a/homes/julian/features/hyprland/default.nix b/homes/julian/features/hyprland/default.nix index ef59875..e479104 100644 --- a/homes/julian/features/hyprland/default.nix +++ b/homes/julian/features/hyprland/default.nix @@ -142,7 +142,7 @@ in { "$mod" = "SUPER"; # Monitors - monitor = ",preferred,auto,auto"; + monitor = ",preferred,auto,1"; # Autostart exec-once = ["firefox"]; @@ -231,23 +231,17 @@ in { ]; # Workspace rules - workspace = [ - "1, monitor:HDMI-A-1" - "2, monitor:HDMI-A-1" - "3, monitor:HDMI-A-1" - "4, monitor:HDMI-A-1" - "5, monitor:HDMI-A-1" - "6, monitor:eDP-1" - "7, monitor:eDP-1" - "8, monitor:eDP-1" - "9, monitor:eDP-1" - "10, monitor:eDP-1" - - # smart gaps (none when only one window in workspace) - "w[t1], gapsin:0, gapsout:0, border:1" - "w[tg1], gapsin:0, gapsout:0, border:1" - "f[1], gapsin:0, gapsout:0, border:1" - ]; + workspace = + [ + # smart gaps (none when only one window in workspace) + "w[t1], gapsin:0, gapsout:0, border:1" + "w[tg1], gapsin:0, gapsout:0, border:1" + "f[1], gapsin:0, gapsout:0, border:1" + ] + # builds like "1, e-DP1" "2, HDMI-1" etc. + ++ builtins.concatLists ( + map (monitor: map (ws: "${ws}, monitor:${monitor.name}") monitor.workspaces) config.monitors + ); # Mouse binds bindm = [ diff --git a/homes/julian/kardorf.nix b/homes/julian/kardorf.nix index 7c8fb62..a4f5712 100644 --- a/homes/julian/kardorf.nix +++ b/homes/julian/kardorf.nix @@ -12,6 +12,7 @@ ./features/emacs ./features/hyprland + # ./features/i3 ./features/suites/cli ./features/suites/desktop @@ -21,4 +22,35 @@ hostName = "kardorf"; is-nixos = true; terminal = "kitty"; + + # --------- --------- + # | DVI-D-1 | | DVI-D-2 | + # --------- --------- + monitors = [ + { + name = "DVI-D-1"; + width = 1680; + height = 1050; + workspaces = [ + "1" + "2" + "3" + "4" + "5" + ]; + primary = true; + } + { + name = "DVI-D-2"; + width = 1680; + height = 1050; + workspaces = [ + "6" + "7" + "8" + "9" + "10" + ]; + } + ]; }