mirror of
https://github.com/Misterio77/Foundry.git
synced 2026-08-24 10:04:09 -05:00
refactor(home/hyprland): use auto position for monitors
This commit is contained in:
@@ -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";
|
||||
}
|
||||
];
|
||||
|
||||
@@ -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));
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user