From cadab2f9aa645327fe5ddd45ec7286062fa269d2 Mon Sep 17 00:00:00 2001 From: "Alexandre Cavalheiro S. Tiago da Silva" Date: Sun, 22 Sep 2024 01:30:48 -0300 Subject: [PATCH] chore: update desktop and laptop with new hyprland config --- specific/desktop/home-manager.nix | 44 ++++++++++++++++++------------- specific/desktop/nixos.nix | 1 + specific/laptop/home-manager.nix | 41 +++++++++++++++++----------- 3 files changed, 52 insertions(+), 34 deletions(-) diff --git a/specific/desktop/home-manager.nix b/specific/desktop/home-manager.nix index d0b2dca..cb99529 100644 --- a/specific/desktop/home-manager.nix +++ b/specific/desktop/home-manager.nix @@ -79,23 +79,31 @@ # MODULES # # - # Add monitor configuration to hyprland - modules.hyprland.extraConfig = # hyprlang - '' - # See https://wiki.hyprland.org/Configuring/Monitors/ - monitor = DP-3, 1920x1080@74.973, 2560x0, 1 - monitor = DP-2, 2560x1440@165.00301, 0x0, 1 + modules.hyprland = { + # Enable scripts + scripts = { + startup.enable = true; + screenshot.enable = true; + }; - # Bind workspaces to specific monitors - workspace = 1, monitor:DP-2 - workspace = 2, monitor:DP-3 - workspace = 3, monitor:DP-2 - workspace = 4, monitor:DP-3 - workspace = 5, monitor:DP-2 - workspace = 6, monitor:DP-3 - workspace = 7, monitor:DP-2 - workspace = 8, monitor:DP-3 - workspace = 9, monitor:DP-2 - workspace = 0, monitor:DP-3 - ''; + # Add monitor configuration to hyprland + extraConfig = # hyprlang + '' + # See https://wiki.hyprland.org/Configuring/Monitors/ + monitor = DP-3, 1920x1080@74.973, 2560x0, 1 + monitor = DP-2, 2560x1440@165.00301, 0x0, 1 + + # Bind workspaces to specific monitors + workspace = 1, monitor:DP-2 + workspace = 2, monitor:DP-3 + workspace = 3, monitor:DP-2 + workspace = 4, monitor:DP-3 + workspace = 5, monitor:DP-2 + workspace = 6, monitor:DP-3 + workspace = 7, monitor:DP-2 + workspace = 8, monitor:DP-3 + workspace = 9, monitor:DP-2 + workspace = 0, monitor:DP-3 + ''; + }; } diff --git a/specific/desktop/nixos.nix b/specific/desktop/nixos.nix index 473d6ca..79acca3 100644 --- a/specific/desktop/nixos.nix +++ b/specific/desktop/nixos.nix @@ -142,6 +142,7 @@ # # PACKAGES # # + environment.systemPackages = with pkgs; [ ## Tools # Utilities diff --git a/specific/laptop/home-manager.nix b/specific/laptop/home-manager.nix index 1fbdbe1..ab8033b 100644 --- a/specific/laptop/home-manager.nix +++ b/specific/laptop/home-manager.nix @@ -68,21 +68,30 @@ # # Add monitor configuration to hyprland - modules.hyprland.extraConfig = # hyprlang - '' - # See https://wiki.hyprland.org/Configuring/Monitors/ - monitor = eDP-1, 1920x1080@60.01, 0x0, 1 + modules.hyprland = { + # Enable scripts + scripts = { + startup.enable = true; + screenshot.enable = true; + }; - # Bind workspaces to specific monitors - workspace = 1, monitor:eDP-1 - workspace = 2, monitor:eDP-1 - workspace = 3, monitor:eDP-1 - workspace = 4, monitor:eDP-1 - workspace = 5, monitor:eDP-1 - workspace = 6, monitor:eDP-1 - workspace = 7, monitor:eDP-1 - workspace = 8, monitor:eDP-1 - workspace = 9, monitor:eDP-1 - workspace = 0, monitor:eDP-1 - ''; + # Add monitor configuration to hyprland + extraConfig = # hyprlang + '' + # See https://wiki.hyprland.org/Configuring/Monitors/ + monitor = eDP-1, 1920x1080@60.01, 0x0, 1 + + # Bind workspaces to specific monitors + workspace = 1, monitor:eDP-1 + workspace = 2, monitor:eDP-1 + workspace = 3, monitor:eDP-1 + workspace = 4, monitor:eDP-1 + workspace = 5, monitor:eDP-1 + workspace = 6, monitor:eDP-1 + workspace = 7, monitor:eDP-1 + workspace = 8, monitor:eDP-1 + workspace = 9, monitor:eDP-1 + workspace = 0, monitor:eDP-1 + ''; + }; }