From d789ca2d0a620149f654f2e17c01d3089f93ebaf Mon Sep 17 00:00:00 2001 From: Don Harper Date: Tue, 14 May 2024 07:21:44 -0500 Subject: [PATCH] home/kanshi | deal with DP-* number change on redocking' --- home/gui/services.nix | 48 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/home/gui/services.nix b/home/gui/services.nix index 7be2cfa..5230484 100644 --- a/home/gui/services.nix +++ b/home/gui/services.nix @@ -61,6 +61,54 @@ "swaymsg workspace 9, move workspace to output DP-6" ]; }; + docked2 = { + outputs = [ + { + criteria = "eDP-1"; + status = "disable"; + } + { + criteria = "DP-7"; + status = "enable"; + position = "0,0"; + } + { + criteria = "DP-8"; + status = "enable"; + position = "0,1080"; + } + ]; + exec = [ + "swaymsg workspace 1, move workspace to output DP-7" + "swaymsg workspace 5, move workspace to output DP-8" + "swaymsg workspace 6, move workspace to output DP-7" + "swaymsg workspace 9, move workspace to output DP-8" + ]; + }; + docked3 = { + outputs = [ + { + criteria = "eDP-1"; + status = "disable"; + } + { + criteria = "DP-9"; + status = "enable"; + position = "0,0"; + } + { + criteria = "DP-10"; + status = "enable"; + position = "0,1080"; + } + ]; + exec = [ + "swaymsg workspace 1, move workspace to output DP-9" + "swaymsg workspace 5, move workspace to output DP-10" + "swaymsg workspace 6, move workspace to output DP-9" + "swaymsg workspace 9, move workspace to output DP-10" + ]; + }; }; }; };