Configure xdg portals for sway

This commit is contained in:
JuliusFreudenberger 2026-06-26 22:03:02 +02:00
parent 2ff0164960
commit cb17bea00c

View file

@ -1,4 +1,5 @@
{ {
pkgs,
... ...
}: { }: {
programs.sway = { programs.sway = {
@ -8,6 +9,21 @@
gtk = true; gtk = true;
}; };
}; };
xdg.portal.wlr.enable = true; xdg.portal = {
enable = true;
wlr = {
enable = true;
settings = {
screencast = {
chooser_type = "simple";
chooser_cmd = "${pkgs.slurp}/bin/slurp -f 'Select: %o' -or";
};
};
};
extraPortals = with pkgs; [
xdg-desktop-portal-wlr
xdg-desktop-portal-gtk
];
};
} }