From 77f6a14f73d6cf4a54cdaf37d1fb83d0e3bd939c Mon Sep 17 00:00:00 2001 From: TheWanderingCrow Date: Mon, 23 Sep 2024 07:34:53 -0400 Subject: [PATCH] Split hypr config by host --- modules/users/crow/home.nix | 4 +++- modules/users/crow/{ => hypr}/hyprland.conf | 4 +--- modules/users/crow/hypr/parzival-monitors.conf | 2 ++ modules/users/crow/hypr/parzival_mobile-monitors.conf | 0 4 files changed, 6 insertions(+), 4 deletions(-) rename modules/users/crow/{ => hypr}/hyprland.conf (98%) create mode 100644 modules/users/crow/hypr/parzival-monitors.conf create mode 100644 modules/users/crow/hypr/parzival_mobile-monitors.conf diff --git a/modules/users/crow/home.nix b/modules/users/crow/home.nix index 54ddd47..87e68dd 100644 --- a/modules/users/crow/home.nix +++ b/modules/users/crow/home.nix @@ -3,7 +3,9 @@ username = "crow"; homeDirectory = "/home/crow"; stateVersion = "24.05"; - file.".config/hypr/hyprland.conf".source = ./hyprland.conf; + file.".config/hypr/hyprland.conf".source = ./hypr/hyprland.conf; + file.".config/hypr/monitors.conf".source = lib.mkIf config.networking.hostName == "Parzival" ./hypr/parzival-monitors.conf + file.".config/hypr/monitors.conf".source = lib.mkIf config.networking.hostName == "Parzival-Mobile" ./hypr/parzival_mobile-monitors.conf }; xdg = { diff --git a/modules/users/crow/hyprland.conf b/modules/users/crow/hypr/hyprland.conf similarity index 98% rename from modules/users/crow/hyprland.conf rename to modules/users/crow/hypr/hyprland.conf index cdb55b6..d9cd5b6 100644 --- a/modules/users/crow/hyprland.conf +++ b/modules/users/crow/hypr/hyprland.conf @@ -3,9 +3,7 @@ ################ # See https://wiki.hyprland.org/Configuring/Monitors/ -monitor = DP-2, 2560x1440@144, 0x0, 1 -monitor = HDMI-A-1, 1920x1080@75, -2560x250, 1, transform, 1 - +source = /home/crow/.config/hypr/monitors.conf ################### ### MY PROGRAMS ### diff --git a/modules/users/crow/hypr/parzival-monitors.conf b/modules/users/crow/hypr/parzival-monitors.conf new file mode 100644 index 0000000..25726f5 --- /dev/null +++ b/modules/users/crow/hypr/parzival-monitors.conf @@ -0,0 +1,2 @@ +monitor=HDMI-A-1,1920x1080@74.97,0x0,1.0,transform,1 +monitor=DP-2,2560x1440@169.83,1080x215,1.0 diff --git a/modules/users/crow/hypr/parzival_mobile-monitors.conf b/modules/users/crow/hypr/parzival_mobile-monitors.conf new file mode 100644 index 0000000..e69de29