From 19cd15ebc5fe3a235fb6bde3a82734482706d2fe Mon Sep 17 00:00:00 2001 From: Armel van Ravels Date: Fri, 16 Jan 2026 00:15:13 +0100 Subject: [PATCH] Add hyprland config --- home.nix | 72 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) diff --git a/home.nix b/home.nix index 3c6617a..f09726a 100644 --- a/home.nix +++ b/home.nix @@ -16,12 +16,84 @@ }; home.packages = with pkgs; [ + kitty + wofi ]; + programs.kitty = { + enable = true; + settings.confirm_quit = false; + }; + programs.direnv = { enable = true; enableZshIntegration = true; nix-direnv.enable = true; }; + wayland.windowManager.hyprland = { + enable = true; + + settings = { + ### MONITOR + monitor = [ + ",preferred,auto,1" + ]; + + ### VARIABLES + "$mod" = "SUPER"; + "$terminal" = "kitty"; + "$menu" = "wofi --show drun"; + + ### BASIC LAYOUT + general = { + layout = "dwindle"; + resize_on_border = true; + }; + + decoration = { + rounding = 5; # increase/decrease for more/less round + }; + + ### INPUT + input = { + kb_layout = "us"; + }; + + ### KEYBINDINGS + bind = [ + # Apps + "$mod, RETURN, exec, $terminal" + "$mod, D, exec, $menu" + "$mod, Q, killactive" + "$mod, F, fullscreen" + "$mod, M, exit" + + # Focus + "$mod, LEFT, movefocus, l" + "$mod, RIGHT, movefocus, r" + "$mod, UP, movefocus, u" + "$mod, DOWN, movefocus, d" + + # Workspaces + "$mod, 1, workspace, 1" + "$mod, 2, workspace, 2" + "$mod, 3, workspace, 3" + "$mod, 4, workspace, 4" + "$mod, 5, workspace, 5" + + "$mod SHIFT, 1, movetoworkspace, 1" + "$mod SHIFT, 2, movetoworkspace, 2" + "$mod SHIFT, 3, movetoworkspace, 3" + "$mod SHIFT, 4, movetoworkspace, 4" + "$mod SHIFT, 5, movetoworkspace, 5" + ]; + + bindm = [ + "$mod, mouse:272, movewindow" + "$mod, mouse:273, resizewindow" + ]; + + }; + }; }