From 2c35616fefa9ddc7e87f58ee530a29d473b91aa1 Mon Sep 17 00:00:00 2001 From: tomoron Date: Wed, 6 Nov 2024 14:05:14 +0100 Subject: [PATCH] config screens positions on desktop --- homes/desktop/home.nix | 5 ++++- homes/desktop/hyprland.nix | 18 ++++++++++++++++++ homes/laptop/hyprland.nix | 6 +++--- 3 files changed, 25 insertions(+), 4 deletions(-) create mode 100644 homes/desktop/hyprland.nix diff --git a/homes/desktop/home.nix b/homes/desktop/home.nix index 3222e3c..04e5b59 100644 --- a/homes/desktop/home.nix +++ b/homes/desktop/home.nix @@ -1,7 +1,10 @@ { config, lib, pkgs, ... }: { - imports = [ ../modules/nitrogen.nix ]; + imports = [ + ../modules/nitrogen.nix + ./hyprland.nix + ]; home.file = { ".config/bspwm/screenlayout.sh".source = ./bspwm/screenlayout.sh; ".config/bspwm/host.sh".source = ./bspwm/host.sh; diff --git a/homes/desktop/hyprland.nix b/homes/desktop/hyprland.nix new file mode 100644 index 0000000..cb873c1 --- /dev/null +++ b/homes/desktop/hyprland.nix @@ -0,0 +1,18 @@ +{ config, lib, pkgs, ... }: + +{ + wayland.windowManager.hyprland.settings = { + monitor = [ + "HDMI-A-1, 1920x1080@60, 0x0, auto" + "HDMI-A-3, 1920x1080@60, 1920x0, auto" + "DP-1, 1280x1024@60, 3840x0, auto" + "DP-3, 1280x1024@60, 5120x0, auto" + ]; + workspace = [ + "1, monitor:HDMI-A-1" + "2, monitor:HDMI-A-3, default:true" + "3, monitor:DP-1" + "4, monitor:DP-3" + ]; + }; +} diff --git a/homes/laptop/hyprland.nix b/homes/laptop/hyprland.nix index cb0cce9..64a33bc 100644 --- a/homes/laptop/hyprland.nix +++ b/homes/laptop/hyprland.nix @@ -1,8 +1,8 @@ { config, lib, pkgs, ... }: { - wayland.windowManager.hyprland.settings.monitor= [ - "eDP-1, 1920x1080@120, 0x0, 1" - "HDMI-A-1, 1920x1080@60, auto, auto" + wayland.windowManager.hyprland.settings.monitor = [ + "eDP-1, 1920x1080@120, 0x0, 1" + "HDMI-A-1, 1920x1080@60, auto, auto" ]; }