From f1e1ad69575228e56609c52d296836cd265364ef Mon Sep 17 00:00:00 2001 From: Malte Tammena Date: Sun, 19 Jun 2022 09:58:56 +0200 Subject: [PATCH] [user/malte] Fix sway/kanshi after monitor name change --- users/malte/kanshi.nix | 10 +++------- users/malte/sway.nix | 4 ++-- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/users/malte/kanshi.nix b/users/malte/kanshi.nix index ea7a61b..dc7f633 100644 --- a/users/malte/kanshi.nix +++ b/users/malte/kanshi.nix @@ -6,10 +6,6 @@ notify = profile: [ "${pkgs.libnotify}/bin/notify-send -t 10000 -a 'Kanshi' '${profile}' 'Profile activated'" ]; - move = workspace: output: [ - "${pkgs.sway}/bin/swaymsg workspace ${builtins.toString workspace}" - "${pkgs.sway}/bin/swaymsg move workspace to output '${output}'" - ]; in { services.kanshi = { enable = true; @@ -21,7 +17,7 @@ in { docked = { outputs = [ { - criteria = "eDP-1"; + criteria = "California Institute of Technology 0x1500 Unknown"; mode = "3840x2160@60Hz"; position = "0,1380"; scale = 2.0; @@ -34,7 +30,7 @@ in { transform = "270"; } { - criteria = "Goldstar Company Ltd IPS226 SerialNumber"; + criteria = "LG Electronics IPS226 SerialNumber"; mode = "1920x1080@60Hz"; position = "3000,420"; scale = 1.0; @@ -52,7 +48,7 @@ in { transform = "270"; } { - criteria = "Goldstar Company Ltd IPS226 SerialNumber"; + criteria = "LG Electronics IPS226 SerialNumber"; mode = "1920x1080@60Hz"; position = "3000,420"; scale = 1.0; diff --git a/users/malte/sway.nix b/users/malte/sway.nix index 130c699..7c24e80 100644 --- a/users/malte/sway.nix +++ b/users/malte/sway.nix @@ -282,8 +282,8 @@ in { }; output = { - "Unknown 0x1500 0x00000000".bg = "${backgrounds}/forest2.jpg fill"; - "Goldstar Company Ltd IPS226 SerialNumber".bg = "${backgrounds}/future-town.jpg fill"; + "California Institute of Technology 0x1500 Unknown".bg = "${backgrounds}/forest2.jpg fill"; + "LG Electronics IPS226 SerialNumber".bg = "${backgrounds}/future-town.jpg fill"; "BenQ Corporation BenQ GW2270 P9J02423SL0".bg = "${backgrounds}/leaves3.jpg fill"; }; };