diff --git a/modules/home/sway/default.nix b/modules/home/sway/default.nix index 8f6fcfa..b5654e8 100644 --- a/modules/home/sway/default.nix +++ b/modules/home/sway/default.nix @@ -131,10 +131,12 @@ in { }; # map laptop touchscreen to laptop display "1267:11676:ELAN2513:00_04F3:2D9C" = lib.mkIf cfg.laptop { + tap = "enable"; map_to_output = "'AU Optronics 0x4B2D Unknown'"; }; # map laptop stylus to laptop display "1267:11676:ELAN2513:00_04F3:2D9C_Stylus" = lib.mkIf cfg.laptop { + tap = "enable"; map_to_output = "'AU Optronics 0x4B2D Unknown'"; }; }; @@ -255,7 +257,7 @@ in { extraConfig = lib.mkIf cfg.laptop '' bindswitch --reload --locked lid:on exec "[ $(${pkgs.sway}/bin/swaymsg -t get_outputs | ${pkgs.jq}/bin/jq '. | length') -gt 1 ] && ${pkgs.sway}/bin/swaymsg output eDP-1 disable" bindswitch --reload --locked lid:off output eDP-1 enable - bindgesture swipe:down exec ${pkgs.nwg-launchers}/bin/nwggrid -client + bindgesture --input-device=\'1267:11676:ELAN2513:00_04F3:2D9C\' swipe:3:down exec ${pkgs.nwg-launchers}/bin/nwggrid -client ''; }; diff --git a/modules/home/sway/kanshi.nix b/modules/home/sway/kanshi.nix index d447885..4cc6b17 100644 --- a/modules/home/sway/kanshi.nix +++ b/modules/home/sway/kanshi.nix @@ -52,24 +52,25 @@ in { profile.outputs = [ { criteria = "eDP-1"; - position = "1080,1080"; + position = "0,1080"; } { criteria = "Dell Inc. DELL U2422HE 8YCPH83"; - position = "1080,0"; + transform = "normal"; + position = "0,0"; } { - criteria = "NEC Corporation E243WMi 59118576NB"; - transform = "90"; - position = "0,0"; + criteria = "Dell Inc. DELL P2422HE 28XL9M3"; + transform = "normal"; + position = "1920,0"; } ]; profile.exec = [ - "${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=main] move workspace to '\"Dell Inc. DELL U2422HE 8YCPH83\"'" + "${pkgs.sway}/bin/swaymsg [workspace=term] move workspace to '\"Dell Inc. DELL P2422HE 28XL9M3\"'" "${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" + "${pkgs.sway}/bin/swaymsg [workspace=5] move workspace to '\"Dell Inc. DELL U2422HE 8YCPH83\"'" ]; } {