hyprland: improve file chooser defaults
This commit is contained in:
@@ -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
|
||||||
|
'';
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -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 = {
|
||||||
|
|||||||
Reference in New Issue
Block a user