diff --git a/modules/home-manager/sway.nix b/modules/home-manager/sway.nix index 31ef4b9..0a3b0dc 100644 --- a/modules/home-manager/sway.nix +++ b/modules/home-manager/sway.nix @@ -217,33 +217,51 @@ position = "0,0"; } ]; - dock_luhbots.outputs = [ - { - criteria = "eDP-1"; - position = "0,1080"; - } - { - criteria = "Dell Inc. DELL U2422HE GRCPH83"; - position = "0,0"; - } - { - criteria = "NEC Corporation E243WMi 7X313185NB"; - transform = "90"; - position = "1920,0"; - } - ]; - laptop_hannspree.outputs = [ - { - criteria = "eDP-1"; - position = "320,1440"; - } - { - criteria = "HannStar Display Corp HC281UPB "; - position = "0,0"; - mode = "3840x2160@60"; - scale = 1.5; - } - ]; + dock_luhbots = { + outputs = [ + { + criteria = "eDP-1"; + position = "0,1080"; + } + { + criteria = "Dell Inc. DELL U2422HE GRCPH83"; + position = "0,0"; + } + { + criteria = "NEC Corporation E243WMi 7X313185NB"; + transform = "90"; + position = "1920,0"; + } + ]; + exec = [ + "${pkgs.sway}/bin/swaymsg workspace 1, move workspace to DP-4" + "${pkgs.sway}/bin/swaymsg workspace 2, move workspace to DP-5" + "${pkgs.sway}/bin/swaymsg workspace 3, move workspace to eDP-1" + "${pkgs.sway}/bin/swaymsg workspace 4, move workspace to eDP-1" + "${pkgs.sway}/bin/swaymsg workspace 5, move workspace to DP-4" + ]; + }; + laptop_hannspree = { + outputs = [ + { + criteria = "eDP-1"; + position = "320,1440"; + } + { + criteria = "HannStar Display Corp HC281UPB "; + position = "0,0"; + mode = "3840x2160@60"; + scale = 1.5; + } + ]; + exec = [ + "${pkgs.sway}/bin/swaymsg workspace 1, move workspace to HDMI-A-1" + "${pkgs.sway}/bin/swaymsg workspace 2, move workspace to eDP-1" + "${pkgs.sway}/bin/swaymsg workspace 3, move workspace to eDP-1" + "${pkgs.sway}/bin/swaymsg workspace 4, move workspace to eDP-1" + "${pkgs.sway}/bin/swaymsg workspace 5, move workspace to HDMI-A-1" + ]; + }; }; };