{pkgs, ...}: { xdg.portal = { enable = true; wlr.enable = true; extraPortals = with pkgs; [ xdg-desktop-portal-wlr xdg-desktop-portal-kde xdg-desktop-portal-gtk ]; wlr.settings = { screencastExternal = { output_name = "HDMI-A-1"; max_fps = 60; # exec_before = "disable_notifications.sh"; # exec_after = "enable_notifications.sh"; chooser_type = "simple"; chooser_cmd = "${pkgs.slurp}/bin/slurp -f %o -or"; }; screencastInternal = { output_name = "eDP-1"; max_fps = 144; # exec_before = "disable_notifications.sh"; # exec_after = "enable_notifications.sh"; chooser_type = "simple"; chooser_cmd = "${pkgs.slurp}/bin/slurp -f %o -or"; }; }; }; environment.sessionVariables = { XDG_CONFIG_HOME = "$HOME/.config"; }; }