monitors added to hypr config
This commit is contained in:
parent
444186a0df
commit
2c5692e76b
4 changed files with 54 additions and 1 deletions
|
|
@ -26,6 +26,16 @@
|
|||
|
||||
wm = {
|
||||
hyprland.enable = true;
|
||||
|
||||
config = {
|
||||
monitors.displays = [
|
||||
{
|
||||
output = "eDP-1";
|
||||
x = 0;
|
||||
y = 0;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
hardware = {
|
||||
|
|
|
|||
|
|
@ -26,6 +26,22 @@
|
|||
|
||||
wm.hyprland = {
|
||||
enable = true;
|
||||
|
||||
config.monitors = {
|
||||
displays = [
|
||||
{
|
||||
output = "DP-2";
|
||||
x = 0;
|
||||
y = 0;
|
||||
}
|
||||
{
|
||||
output = "DP-3";
|
||||
x = -1440;
|
||||
y = 0;
|
||||
transform = 1;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
hardware = {
|
||||
|
|
|
|||
|
|
@ -126,6 +126,10 @@ in {
|
|||
workspace_swipe = ${trivial.boolToString cfg.config.gestures.workspaceSwipe}
|
||||
}
|
||||
|
||||
${builtins.concatStringsSep "\n" (map (mon: "monitor = ${mon.output}, ${mon.resolution}@${mon.refreshRate}, ${toString mon.x}x${toString mon.y}, ${strings.floatToString mon.scale}, transform, ${toString mon.transform}") cfg.config.monitors.displays)}
|
||||
|
||||
${if cfg.config.monitors.defaultMonitor then "monitor = ,preferred, auto, auto" else ""}
|
||||
|
||||
${builtins.concatStringsSep "\n" (map (ws: "workspace = " + ws) cfg.config.workspaces)}
|
||||
|
||||
${builtins.concatStringsSep "\n" (map (wr: "windowrule = " + replaceStrings ["%"] ["%%"] wr) cfg.config.windowrules)}
|
||||
|
|
|
|||
|
|
@ -398,7 +398,30 @@ in {
|
|||
};
|
||||
};
|
||||
|
||||
|
||||
monitors = {
|
||||
defaultMonitor = mkOption {
|
||||
type = types.bool;
|
||||
default = true;
|
||||
};
|
||||
|
||||
displays = mkOption {
|
||||
type = types.listOf (types.submodule {
|
||||
options = {
|
||||
output = mkOption { type = types.str; };
|
||||
resolution = mkOption { type = types.str; default = "highres"; };
|
||||
refreshRate = mkOption { type = types.str; default = "highrr"; };
|
||||
x = mkOption { type = types.int; };
|
||||
y = mkOption { type = types.int; };
|
||||
scale = mkOption { type = types.number; default = 1; };
|
||||
transform = mkOption { type = types.enum [ 0 1 2 3 4 5 6 7 ]; default = 0; };
|
||||
};
|
||||
});
|
||||
};
|
||||
};
|
||||
|
||||
keybindings = {
|
||||
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue