termfilechooser

This commit is contained in:
Miguel Palhas
2026-02-17 20:35:11 +00:00
parent abdf71f7dc
commit a5089b77e9
12 changed files with 63 additions and 230 deletions
+16
View File
@@ -0,0 +1,16 @@
{ pkgs, ... }:
{
xdg.configFile."xdg-desktop-portal/hyprland-portals.conf".text = ''
[preferred]
default=hyprland;gtk
org.freedesktop.impl.portal.FileChooser=termfilechooser
'';
xdg.configFile."xdg-desktop-portal-termfilechooser/config".text = ''
[filechooser]
cmd=${pkgs.writeShellScript "termfilechooser-yazi" ''
exec kitty -T termfilechooser yazi "$@"
''}
default_dir=$HOME
'';
}