From 173cb17a65edad332e85efe22a1878d6fb6bb088 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Max=20K=C3=A4nner?= Date: Sat, 9 Mar 2024 23:39:35 +0100 Subject: [PATCH] 153 current 1970-01-01 01:00:00 24.05.20240303.b8697e5 6.6.19 * --- modules/home-manager/sway.nix | 72 ++++++++++++++++++++++------------- 1 file changed, 45 insertions(+), 27 deletions(-) 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" + ]; + }; }; };