{ lib, config, pkgs, ... }: lib.mkIf config.xdg.portal.enable { xdg.portal = { config = { common = { default = "*"; "org.freedesktop.impl.portal.Screenshot.PickColor" = [ "${pkgs.hyprpicker}/bin/hyprpicker" ]; }; }; # gtk portal needed to make gtk apps happy extraPortals = with pkgs; [ xdg-desktop-portal-gtk xdg-desktop-portal-hyprland ]; }; }