grimm-nixos-laptop/modules/xdg.nix

36 lines
882 B
Nix
Raw Normal View History

2023-11-29 22:56:30 +01:00
{pkgs, ...}:
2023-11-28 23:24:43 +01:00
{
xdg.portal = {
enable = true;
wlr.enable = true;
extraPortals = with pkgs; [
xdg-desktop-portal-wlr
2024-03-02 23:15:51 +01:00
xdg-desktop-portal-kde
xdg-desktop-portal-gtk
2023-11-28 23:24:43 +01:00
];
2024-03-02 23:15:51 +01:00
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";
};
};
2023-11-28 23:24:43 +01:00
};
environment.sessionVariables = {
XDG_CONFIG_HOME = "$HOME/.config";
};
}