From 93cfe59fcc438afa1ea3a5646eb8ad23b8db5f9a Mon Sep 17 00:00:00 2001 From: Myned Date: Fri, 15 Nov 2024 12:04:33 -0600 Subject: [PATCH] hyprland: use ultrawide option for layout orientation Signed-off-by: Myned --- machines/myork/default.nix | 8 +------- options/custom/desktops/hyprland/settings.nix | 5 ++++- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/machines/myork/default.nix b/machines/myork/default.nix index 39a4401..91caaf5 100644 --- a/machines/myork/default.nix +++ b/machines/myork/default.nix @@ -30,16 +30,10 @@ in { }; }; - home-manager.users.${config.custom.username} = with lib; { + home-manager.users.${config.custom.username} = { wayland.windowManager.hyprland.settings = { exec-once = ["${brightnessctl} set 0%"]; - master = { - mfact = mkForce 0.5; - orientation = mkForce "left"; - always_center_master = mkForce false; - }; - device = [ { name = "pixa3854:00-093a:0274-touchpad"; diff --git a/options/custom/desktops/hyprland/settings.nix b/options/custom/desktops/hyprland/settings.nix index 9a1c272..5afa8a3 100644 --- a/options/custom/desktops/hyprland/settings.nix +++ b/options/custom/desktops/hyprland/settings.nix @@ -99,7 +99,10 @@ in { allow_small_split = true; always_center_master = true; mfact = 0.5; - orientation = "center"; + orientation = + if config.custom.ultrawide + then "center" + else "top"; }; # https://wiki.hyprland.org/Configuring/Variables/#general