From 92d9dd824953efdb8dd9f74ff9b0c1b4ee5a02b4 Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Wed, 1 Jan 2025 14:37:12 -0600 Subject: [PATCH] Better solution for focus problems --- modules/home-manager/hyprland.nix | 29 +++++++++++++++-------------- modules/nixos/default.nix | 2 ++ 2 files changed, 17 insertions(+), 14 deletions(-) diff --git a/modules/home-manager/hyprland.nix b/modules/home-manager/hyprland.nix index 4eb9eef..9da7ec8 100644 --- a/modules/home-manager/hyprland.nix +++ b/modules/home-manager/hyprland.nix @@ -56,6 +56,7 @@ in { env = [ "XCURSOR_SIZE,24" "QT_QPA_PLATFORMTHEME,qt6ct" + "GTK_THEME,Adwaita-dark" ]; input = { @@ -157,10 +158,10 @@ in { "$mod, l, movefocus, r" "$mod, k, movefocus, u" "$mod, j, movefocus, d" - "$mod SHIFT, H, movewindow, l" - "$mod SHIFT, L, movewindow, r" - "$mod SHIFT, K, movewindow, u" - "$mod SHIFT, J, movewindow, d" + "$mod SHIFT, H, movewindow, l silent" + "$mod SHIFT, L, movewindow, r silent" + "$mod SHIFT, K, movewindow, u silent" + "$mod SHIFT, J, movewindow, d silent" "$mod SHIFT, V, exec, swayosd-client --input-volume mute-toggle" ", XF86AudioMicMute, exec, swayosd-client --input-volume mute-toggle" @@ -191,16 +192,16 @@ in { "$mod, 0, workspace, 10" # Move active window to a workspace with mod + SHIFT + [0-9] - "$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" - "$mod SHIFT, 6, movetoworkspace, 6" - "$mod SHIFT, 7, movetoworkspace, 7" - "$mod SHIFT, 8, movetoworkspace, 8" - "$mod SHIFT, 9, movetoworkspace, 9" - "$mod SHIFT, 0, movetoworkspace, 10" + "$mod SHIFT, 1, movetoworkspacesilent, 1" + "$mod SHIFT, 2, movetoworkspacesilent, 2" + "$mod SHIFT, 3, movetoworkspacesilent, 3" + "$mod SHIFT, 4, movetoworkspacesilent, 4" + "$mod SHIFT, 5, movetoworkspacesilent, 5" + "$mod SHIFT, 6, movetoworkspacesilent, 6" + "$mod SHIFT, 7, movetoworkspacesilent, 7" + "$mod SHIFT, 8, movetoworkspacesilent, 8" + "$mod SHIFT, 9, movetoworkspacesilent, 9" + "$mod SHIFT, 0, movetoworkspacesilent, 10" "$mod SHIFT, S, exec, clipshot" # Scroll through existing workspaces with mod + scroll diff --git a/modules/nixos/default.nix b/modules/nixos/default.nix index 67ed909..7a35209 100644 --- a/modules/nixos/default.nix +++ b/modules/nixos/default.nix @@ -86,9 +86,11 @@ xdg.portal = { enable = true; wlr.enable = true; + # gtk.enable = true; extraPortals = with pkgs; [ xdg-desktop-portal-wlr + xdg-desktop-portal-gtk ]; };