hyprland: improve file chooser defaults

This commit is contained in:
2026-07-09 15:12:24 -07:00
parent 6450ab6143
commit 4abbd0be82
2 changed files with 21 additions and 0 deletions

View File

@@ -552,6 +552,18 @@
Restart=on-failure Restart=on-failure
Slice=session.slice 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
'';
} }
) )
]; ];

View File

@@ -23,6 +23,15 @@ in {
./dotfiles-links.nix ./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.enable = true;
programs.git.signing.format = "openpgp"; programs.git.signing.format = "openpgp";
programs.gh = { programs.gh = {