feat(yazi): enable yazi as system-wide file chooser

Configure xdg-desktop-portal-termfilechooser to use yazi (via ghostty) for file selection dialogs in portal-aware apps like Firefox. Includes a wrapper script and Hyprland window rules.
This commit is contained in:
kenji
2026-01-11 11:33:08 -06:00
parent dd9281dcf1
commit f345fef540
3 changed files with 36 additions and 1 deletions
+14
View File
@@ -24,4 +24,18 @@
default = ["${myConfig.terminal.default}"];
};
};
xdg.portal = {
enable = true;
extraPortals = [
pkgs.xdg-desktop-portal-termfilechooser
pkgs.xdg-desktop-portal-gtk
];
config = {
common = {
default = ["gtk"];
"org.freedesktop.impl.portal.FileChooser" = ["termfilechooser"];
};
};
};
}