From 9e9aa8fcd82e9209d5fb1477febbcb06549d25d2 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Mon, 26 Jun 2023 14:15:04 +0100 Subject: [PATCH] Setup for dwindle layout in Hyprland, add test rebuild to Makefile --- Makefile | 6 +++++- home/desktop/hyprland.nix | 13 +++++++------ 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index 57a04592..b4097808 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,8 @@ -.PHONY: lock +.PHONY: test lock + +test: + git -C . add . + sudo nixos-rebuild test --flake . lock: nix flake lock --update-input nixpkgs --update-input home-manager diff --git a/home/desktop/hyprland.nix b/home/desktop/hyprland.nix index 7446fb66..80615792 100644 --- a/home/desktop/hyprland.nix +++ b/home/desktop/hyprland.nix @@ -57,7 +57,12 @@ col.group_border_active = $mauve col.inactive_border = $surface2 col.group_border = $surface2 - layout = master + layout = dwindle + } + + dwindle { + force_split = 2 + preserve_split = true } decoration { @@ -84,10 +89,6 @@ animation = workspaces, 1, 6, default } - master { - new_is_master = false - } - # See https://wiki.hyprland.org/Configuring/Keywords/ for more bind = SUPER, Return, exec, wezterm bind = SUPER, Q, killactive, @@ -100,7 +101,7 @@ bind = SUPER, W, exec, firefox bind = SUPER, F, exec, thunar bind = SUPER, M, fullscreen, 1 - bind = SUPER, A, bringactivetotop + bind = SUPER, A, layoutmsg, togglesplit bind = , XF86AudioMute, exec, pamixer -t binde = , XF86AudioRaiseVolume, exec, pamixer -i 2