From f21c7e15ba67f31ead19f32ff85502e89523dc86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Max=20K=C3=A4nner?= Date: Tue, 22 Oct 2024 15:58:43 +0200 Subject: [PATCH] 441 current 1970-01-01 01:00:00 24.05.20241019.a9b86fc 6.6.52-rt43 * --- modules/home/sway/kanshi.nix | 61 ++++++++++++++++++++++++------------ 1 file changed, 41 insertions(+), 20 deletions(-) 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" + ]; + } ]; }; };