{ pkgs, ... }: { home.pointerCursor = { gtk.enable = true; package = pkgs.adwaita-icon-theme; name = "Adwaita"; size = 24; }; home.sessionVariables = { XCURSOR_SIZE = "24"; HYPRCURSOR_SIZE = "24"; # NVIDIA LIBVA_DRIVER_NAME = "nvidia"; __GLX_VENDOR_LIBRARY_NAME = "nvidia"; __GL_GSYNC_ALLOWED = "1"; NVD_BACKEND = "direct"; # Force all apps to use Wayland GDK_BACKEND = "wayland"; QT_QPA_PLATFORM = "wayland"; SDL_VIDEODRIVER = "wayland"; CLUTTER_BACKEND = "wayland"; ELECTRON_OZONE_PLATFORM_HINT = "wayland"; OZONE_PLATFORM = "wayland"; }; wayland.windowManager.hyprland = { enable = true; package = null; # installed via NixOS module # FIXME(26.05): HM's Lua renderer still broken (misescapes $variables, # mistranslates exec-once). Keep pinned until fixed upstream. configType = "hyprlang"; settings = { monitor = "DP-1, 3840x2160@144, auto, 1.5"; "$terminal" = "ghostty +new-window"; "$menu" = "qs ipc call launcher toggle"; "$browser" = "chromium --new-window"; "$webapp" = "$browser --app"; "$powermenu" = "qs ipc call launcher power"; xwayland = { force_zero_scaling = true; }; general = { gaps_in = 1; gaps_out = 1; border_size = 1; "col.active_border" = "rgba(7aa2f7ee) rgba(bb9af7ee) 45deg"; "col.inactive_border" = "rgba(414868aa)"; resize_on_border = false; allow_tearing = true; layout = "dwindle"; }; decoration = { rounding = 10; active_opacity = 1.0; inactive_opacity = 1.0; shadow = { enabled = true; range = 4; render_power = 3; color = "rgba(1a1b26ee)"; }; blur = { enabled = true; size = 3; passes = 1; }; }; animations = { enabled = true; bezier = [ "easeOutQuint,0.23,1,0.32,1" "easeInOutCubic,0.65,0.05,0.36,1" "linear,0,0,1,1" "almostLinear,0.5,0.5,0.75,1.0" "quick,0.15,0,0.1,1" ]; animation = [ "global, 1, 10, default" "border, 1, 5.39, easeOutQuint" "windows, 1, 4.79, easeOutQuint" "windowsIn, 1, 4.1, easeOutQuint, popin 87%" "windowsOut, 1, 1.49, linear, popin 87%" "fadeIn, 1, 1.73, almostLinear" "fadeOut, 1, 1.46, almostLinear" "fade, 1, 3.03, quick" "layers, 1, 3.81, easeOutQuint" "layersIn, 1, 4, easeOutQuint, fade" "layersOut, 1, 1.5, linear, fade" "fadeLayersIn, 1, 1.79, almostLinear" "fadeLayersOut, 1, 1.39, almostLinear" "workspaces, 1, 1.94, almostLinear, fade" "workspacesIn, 1, 1.21, almostLinear, fade" "workspacesOut, 1, 1.94, almostLinear, fade" ]; }; dwindle = { preserve_split = true; }; misc = { disable_hyprland_logo = true; }; layerrule = [ "blur on, ignore_alpha 0, match:namespace bar" ]; input = { kb_layout = "us"; kb_options = "compose:caps"; repeat_rate = 60; repeat_delay = 300; natural_scroll = true; follow_mouse = 1; sensitivity = 0; touchpad = { natural_scroll = true; }; }; "$mainMod" = "SUPER"; bind = [ "$mainMod, Q, exec, $terminal" "$mainMod, B, exec, $browser" "$mainMod, C, killactive," "$mainMod, V, togglefloating," "$mainMod, R, exec, $menu" "$mainMod, P, pseudo," "$mainMod, J, layoutmsg, togglesplit" "$mainMod, F, fullscreen" "$mainMod, L, exec, hyprlock" "$mainMod SHIFT, L, exec, $powermenu" "ALT, SPACE, exec, true" # Screenshots ", PRINT, exec, hyprshot -m region" "SHIFT, PRINT, exec, hyprshot -m window" "CTRL, PRINT, exec, hyprshot -m output" # Move focus "$mainMod, left, movefocus, l" "$mainMod, right, movefocus, r" "$mainMod, up, movefocus, u" "$mainMod, down, movefocus, d" # Switch workspaces "$mainMod, 1, workspace, 1" "$mainMod, 2, workspace, 2" "$mainMod, 3, workspace, 3" "$mainMod, 4, workspace, 4" "$mainMod, 5, workspace, 5" "$mainMod, 6, workspace, 6" "$mainMod, 7, workspace, 7" "$mainMod, 8, workspace, 8" "$mainMod, 9, workspace, 9" "$mainMod, 0, workspace, 10" # Move active window to workspace "$mainMod SHIFT, 1, movetoworkspace, 1" "$mainMod SHIFT, 2, movetoworkspace, 2" "$mainMod SHIFT, 3, movetoworkspace, 3" "$mainMod SHIFT, 4, movetoworkspace, 4" "$mainMod SHIFT, 5, movetoworkspace, 5" "$mainMod SHIFT, 6, movetoworkspace, 6" "$mainMod SHIFT, 7, movetoworkspace, 7" "$mainMod SHIFT, 8, movetoworkspace, 8" "$mainMod SHIFT, 9, movetoworkspace, 9" "$mainMod SHIFT, 0, movetoworkspace, 10" # Special workspace (scratchpad) "$mainMod, S, togglespecialworkspace, magic" "$mainMod SHIFT, S, movetoworkspace, special:magic" # Scroll through workspaces "$mainMod, mouse_down, workspace, e+1" "$mainMod, mouse_up, workspace, e-1" ]; bindel = [ ",XF86AudioRaiseVolume, exec, wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 5%+" ",XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-" ",XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle" ",XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle" ]; bindl = [ ", XF86AudioNext, exec, playerctl next" ", XF86AudioPause, exec, playerctl play-pause" ", XF86AudioPlay, exec, playerctl play-pause" ", XF86AudioPrev, exec, playerctl previous" ]; bindm = [ "$mainMod, mouse:272, movewindow" "$mainMod, mouse:273, resizewindow" ]; }; }; }