diff options
-rw-r--r-- | home/cez/modules/wayland.nix | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/home/cez/modules/wayland.nix b/home/cez/modules/wayland.nix index 10ff7e2..6dfafc2 100644 --- a/home/cez/modules/wayland.nix +++ b/home/cez/modules/wayland.nix @@ -3,6 +3,9 @@ let wayland-scripts = pkgs.callPackage ../../wayland/pkgs/wayland-scripts { }; freezshot = "${wayland-scripts}/bin/freezshot"; scale = 1.6; + + laptop_screen_y = 2560; + monitor_position_y = (1 / scale) * laptop_screen_y; in { wayland.windowManager.sway.settings = { @@ -12,11 +15,11 @@ in output = { "eDP-1" = { inherit scale; - position = "0,0"; + position = "0 0"; }; "HDMI-A-1" = { inherit scale; - position = "2560,0"; + position = "${builtins.toString (builtins.ceil monitor_position_y)} 0"; }; }; }; |