grimm-nixos-laptop/modules/xdg.nix
2024-03-02 23:15:51 +01:00

36 lines
882 B
Nix

{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";
};
}