refactor(home/hyprland): use auto position for monitors

This commit is contained in:
Gabriel Fontes
2024-08-08 09:47:13 -03:00
parent 5905db4369
commit 30e69e76d1
4 changed files with 21 additions and 17 deletions
+1 -2
View File
@@ -24,7 +24,6 @@
name = "DP-1";
width = 2560;
height = 1080;
x = 0;
workspace = "1";
primary = true;
}
@@ -32,7 +31,7 @@
name = "DP-2";
width = 1920;
height = 1080;
x = 2560;
position = "auto-right";
workspace = "2";
}
];
+16 -7
View File
@@ -18,13 +18,22 @@ in {
programs.git.includes = [{ path = "local.conf"; }];
programs.ssh.includes = ["local.conf"];
monitors = [{
name = "eDP-1";
width = 1920;
height = 1080;
workspace = "1";
primary = true;
}];
monitors = [
{
name = "eDP-1";
width = 1920;
height = 1080;
workspace = "1";
primary = true;
}
{
name = "HDMI-A-1";
width = 1920;
height = 1080;
workspace = "2";
position = "auto-left";
}
];
# Green
wallpaper = pkgs.wallpapers.aenami-northern-lights;
colorscheme.type = "rainbow";
@@ -308,7 +308,7 @@ in {
++ (map (
m: "${m.name},${
if m.enabled
then "${toString m.width}x${toString m.height}@${toString m.refreshRate},${toString m.x}x${toString m.y},1"
then "${toString m.width}x${toString m.height}@${toString m.refreshRate},${m.position},1"
else "disable"
}"
) (config.monitors));
+3 -7
View File
@@ -29,13 +29,9 @@ in {
type = types.int;
default = 60;
};
x = mkOption {
type = types.int;
default = 0;
};
y = mkOption {
type = types.int;
default = 0;
position = mkOption {
type = types.str;
default = "auto";
};
enabled = mkOption {
type = types.bool;