From becce8eea282bc9ec27436014847da8ef8261d22 Mon Sep 17 00:00:00 2001 From: "Alexandre Cavalheiro S. Tiago da Silva" Date: Tue, 17 Sep 2024 12:28:29 -0300 Subject: [PATCH] fix(Hyprland): move workspaces to be specific to host --- .../home-manager/programs/hyprland/default.nix | 12 ------------ specific/desktop/home-manager.nix | 12 ++++++++++++ specific/laptop/home-manager.nix | 15 +++++++++++++-- 3 files changed, 25 insertions(+), 14 deletions(-) diff --git a/modules/home-manager/programs/hyprland/default.nix b/modules/home-manager/programs/hyprland/default.nix index 0eabf51..aeca597 100644 --- a/modules/home-manager/programs/hyprland/default.nix +++ b/modules/home-manager/programs/hyprland/default.nix @@ -255,18 +255,6 @@ # windowrulev2 = float,class:^(kitty)$,title:^(kitty)$ # See https://wiki.hyprland.org/Configuring/Window-Rules/ for more - # 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 - # See https://wiki.hyprland.org/Configuring/Keywords/ for more $mainMod = SUPER diff --git a/specific/desktop/home-manager.nix b/specific/desktop/home-manager.nix index 22f7d8e..729719b 100644 --- a/specific/desktop/home-manager.nix +++ b/specific/desktop/home-manager.nix @@ -35,5 +35,17 @@ # 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/laptop/home-manager.nix b/specific/laptop/home-manager.nix index 7993919..ef4839c 100644 --- a/specific/laptop/home-manager.nix +++ b/specific/laptop/home-manager.nix @@ -32,7 +32,18 @@ modules.hyprland.extraConfig = # hyprlang '' # See https://wiki.hyprland.org/Configuring/Monitors/ - monitor = DP-3, 1920x1080@74.973, 2561x0, 1 - monitor = DP-2, 2560x1440@165.00301, 0x0, 1 + 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 ''; }