diff --git a/modules/home/sway/kanshi.nix b/modules/home/sway/kanshi.nix index 15abaa4..b1f5760 100644 --- a/modules/home/sway/kanshi.nix +++ b/modules/home/sway/kanshi.nix @@ -41,10 +41,10 @@ in { } ]; profile.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 main, move workspace to DP-4" + "${pkgs.sway}/bin/swaymsg workspace term, move workspace to DP-5" + "${pkgs.sway}/bin/swaymsg workspace msg, move workspace to eDP-1" + "${pkgs.sway}/bin/swaymsg workspace music, move workspace to eDP-1" "${pkgs.sway}/bin/swaymsg workspace 5, move workspace to DP-4" ]; } @@ -65,10 +65,10 @@ in { } ]; profile.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 main, move workspace to DP-4" + "${pkgs.sway}/bin/swaymsg workspace term, move workspace to DP-5" + "${pkgs.sway}/bin/swaymsg workspace msg, move workspace to eDP-1" + "${pkgs.sway}/bin/swaymsg workspace music, move workspace to eDP-1" "${pkgs.sway}/bin/swaymsg workspace 5, move workspace to DP-4" ]; } @@ -89,10 +89,10 @@ in { } ]; profile.exec = [ - "${pkgs.sway}/bin/swaymsg workspace 1, move workspace to DP-6" - "${pkgs.sway}/bin/swaymsg workspace 2, move workspace to DP-7" - "${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 main, move workspace to DP-6" + "${pkgs.sway}/bin/swaymsg workspace term, move workspace to DP-7" + "${pkgs.sway}/bin/swaymsg workspace msg, move workspace to eDP-1" + "${pkgs.sway}/bin/swaymsg workspace music, move workspace to eDP-1" "${pkgs.sway}/bin/swaymsg workspace 5, move workspace to DP-6" ]; } @@ -113,10 +113,10 @@ in { } ]; profile.exec = [ - "${pkgs.sway}/bin/swaymsg workspace 1, move workspace to DP-3" - "${pkgs.sway}/bin/swaymsg workspace 2, move workspace to DP-4" - "${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 main, move workspace to DP-3" + "${pkgs.sway}/bin/swaymsg workspace term, move workspace to DP-4" + "${pkgs.sway}/bin/swaymsg workspace msg, move workspace to eDP-1" + "${pkgs.sway}/bin/swaymsg workspace music, move workspace to eDP-1" "${pkgs.sway}/bin/swaymsg workspace 5, move workspace to DP-3" ]; } @@ -159,13 +159,34 @@ in { } ]; profile.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 main, move workspace to HDMI-A-1" + "${pkgs.sway}/bin/swaymsg workspace term, move workspace to eDP-1" + "${pkgs.sway}/bin/swaymsg workspace msg, move workspace to eDP-1" + "${pkgs.sway}/bin/swaymsg workspace music, move workspace to eDP-1" "${pkgs.sway}/bin/swaymsg workspace 5, move workspace to HDMI-A-1" ]; } + { + profile.outputs = [ + { + criteria = "eDP-1"; + position = "0,0"; + } + { + criteria = "Hisense Electric Co., Ltd. HISENSE 0x00000001"; + position = "1920,0"; + } + ]; + profile.exec = [ + "${pkgs.sway}/bin/swaymsg workspace main, move workspace to eDP-1" + "${pkgs.sway}/bin/swaymsg workspace term, move workspace to eDP-1" + "${pkgs.sway}/bin/swaymsg workspace msg, move workspace to eDP-1" + "${pkgs.sway}/bin/swaymsg workspace music, move workspace to eDP-1" + "${pkgs.sway}/bin/swaymsg workspace 5, move workspace to eDP-1" + "${pkgs.sway}/bin/swaymsg workspace mirror, move workspace to HDMI-A-1" + "${pkgs.sway}/bin/swaymsg workspace mirror, exec ${pkgs.wl-mirror}/bin/wl-mirror eDP-1" + ]; + } ]; }; };