From 81344afdbaf4ae36db455fb36106de21ee585c7d Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Wed, 1 Jan 2025 11:17:08 -0600 Subject: [PATCH] A few hyprland nitpick fixes: - spawn floating terminal with super+shift+enter - indicate that the system prefers dark themes via gsettings and the QT6 envvar - set no_focus_fallback to false so that we always try to fallback to a focus-able window so we don't occasionally have to click on windows manually when shifting workspaces or other weird situations --- modules/home-manager/hyprland.nix | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/modules/home-manager/hyprland.nix b/modules/home-manager/hyprland.nix index c82a3d0..4eb9eef 100644 --- a/modules/home-manager/hyprland.nix +++ b/modules/home-manager/hyprland.nix @@ -11,6 +11,7 @@ in { # TODO: Hyprland seems to sometimes use a ton of CPU? home.packages = with pkgs; [ + glib swayosd ]; @@ -47,8 +48,14 @@ in { "hypridle" ]; + exec = [ + ''gsettings set org.gnome.desktop.interface gtk-theme "Adwaita-dark"'' + ''gsettings set org.gnome.desktop.interface color-scheme "prefer-dark"'' + ]; + env = [ "XCURSOR_SIZE,24" + "QT_QPA_PLATFORMTHEME,qt6ct" ]; input = { @@ -96,7 +103,7 @@ in { gaps_out = 6; border_size = 2; resize_on_border = true; - no_focus_fallback = true; + no_focus_fallback = false; layout = "dwindle"; }; @@ -129,7 +136,7 @@ in { "$mod SHIFT, return, exec, wezterm" */ "$mod, return, exec, wezterm" - "$mod SHIFT, return, exec, kitty" + "$mod SHIFT, return, exec, [float] wezterm start --always-new-process" "$mod, U, exec, firefox" "$mod, space, exec, tofi-run | xargs hyprctl dispatch exec --" "$mod, C, killactive,"