diff --git a/nixos/hyprland.nix b/nixos/hyprland.nix index bdf38b3f..912c90dd 100644 --- a/nixos/hyprland.nix +++ b/nixos/hyprland.nix @@ -552,6 +552,18 @@ Restart=on-failure Slice=session.slice ''; + + # The GTK file-chooser's right-click context menu (Show Hidden Files, + # etc.) is unreliable under Hyprland/wlroots (upstream popup-focus bug, + # hyprwm/Hyprland#6426). Route only the FileChooser interface to the + # KDE (Qt) portal backend, whose dialogs don't have that bug. Screencast/ + # screenshot stay on hyprland; everything else falls back to gtk. The KDE + # backend (xdg-desktop-portal-kde) is already present via plasma6. + xdg.configFile."xdg-desktop-portal/hyprland-portals.conf".text = '' + [preferred] + default=hyprland;gtk + org.freedesktop.impl.portal.FileChooser=kde + ''; } ) ]; diff --git a/nixos/imalison.nix b/nixos/imalison.nix index 9213f318..ebfaf35b 100644 --- a/nixos/imalison.nix +++ b/nixos/imalison.nix @@ -23,6 +23,15 @@ in { ./dotfiles-links.nix ]; + # The GTK file-chooser right-click context menu (Show Hidden Files, etc.) + # is unreliable under Hyprland/wlroots (upstream popup-focus bug, + # hyprwm/Hyprland#6426), so set these toggles as defaults instead of + # relying on the broken menu. Ctrl+H still toggles hidden files live. + dconf.settings."org/gtk/settings/file-chooser" = { + show-hidden = true; + sort-directories-first = true; + }; + programs.git.enable = true; programs.git.signing.format = "openpgp"; programs.gh = {