summaryrefslogtreecommitdiff
path: root/home
diff options
context:
space:
mode:
Diffstat (limited to 'home')
-rw-r--r--home/cez/modules/wayland.nix7
-rw-r--r--home/wayland/modules/sway/home.nix1
2 files changed, 6 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";
};
};
};
diff --git a/home/wayland/modules/sway/home.nix b/home/wayland/modules/sway/home.nix
index 7cd80d0..afd62f8 100644
--- a/home/wayland/modules/sway/home.nix
+++ b/home/wayland/modules/sway/home.nix
@@ -106,6 +106,7 @@ in
pkgs.bemenu
pkgs.swayidle
pkgs.brightnessctl
+ pkgs.pwvucontrol
wayland-scripts
termux_sway_yazi
];