summaryrefslogtreecommitdiff
path: root/home/cez/modules/wayland.nix
diff options
context:
space:
mode:
authorsinanmohd <sinan@sinanmohd.com>2025-10-22 09:01:05 +0530
committersinanmohd <sinan@sinanmohd.com>2025-10-22 09:08:36 +0530
commit4fff7e1fbcc216fd6344700da0ac75db45fecccc (patch)
tree6394c5a01d56a9bed0d499f47b3efd927f934a3d /home/cez/modules/wayland.nix
parent743a61149e809fb8790878c68eaf43b81f5f1b1d (diff)
fix(home/cez/wayland): display positionsHEADmaster
Diffstat (limited to 'home/cez/modules/wayland.nix')
-rw-r--r--home/cez/modules/wayland.nix7
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";
};
};
};