diff --git a/configuration.nix b/configuration.nix index 28f2462..baf8e28 100644 --- a/configuration.nix +++ b/configuration.nix @@ -21,6 +21,10 @@ fontconfig.defaultFonts.monospace = [ "Hurmit Nerd Font Mono" ]; }; + environment.sessionVariables = { + NIXOS_OZONE_WL = "1"; + }; + programs.hyprland = { enable = true; xwayland.enable = true; diff --git a/home.nix b/home.nix index 61b8b9e..8102fc1 100644 --- a/home.nix +++ b/home.nix @@ -16,6 +16,85 @@ programs.home-manager.enable = true; + wayland.windowManager.hyprland = { + enable = true; + + settings = { + monitor = [ + "HDMI-A-2,preffered,auto,1" + "eDP-1,auto,1" + ]; + + input = { + kb_layout = "us,cz"; + kb_variant = ",qwerty"; + kb_options = "grp:alt_shift_toggle"; + touchpad = { + natural_scroll = true; + tap = true; + }; + }; + + general = { + gaps_in = 5; + gaps_out = 10; + border_size = 2; + layout = "master"; + }; + + master = { + new_is_master = true; + mfact = 0.5; + }; + + decoration = { + rounding = 8; + blur = { + enable = true; + size = 3; + passes = 2; + }; + }; + + animations = { + enable = true; + }; + + misc = { + disable_hyprland_logo = true; + disable_splash_rendering = true; + }; + + "$mod" = "SUPER"; + "$term" = "kitty"; + "$menu" = "wofi --show run"; + + bind = [ + "$mod SHIFT, RETURN, exec, $term" + "$mod SHIFT, C, killactive" + "$mod SHIFT, Q, exit" + "$mod, P, $menu" + + "$mod, H, movefocus, l" + "$mod, J, movefocus, r" + "$mod, K, movefocus, u" + "$mod, L, movefocus, d" + + "$mod, 1, workspace, 1" + "$mod, 2, workspace, 2" + "$mod, 3, workspace, 3" + "$mod, 4, workspace, 4" + + "$mod SHIFT, 1, movetoworkspace, 1" + "$mod SHIFT, 2, movetoworkspace, 2" + "$mod SHIFT, 3, movetoworkspace, 3" + "$mod SHIFT, 4, movetoworkspace, 4" + ]; + }; + }; + + programs.wofi.enable = true; + programs.kitty = { enable = true;