#
# XWayland/wayland multi-session clipboard sync service.
#
# vim: et:ts=2:sw=2:
#
{ deprekages, ... }:
{
  systemd.user.services.clipboard-sync = {
    after = [ "graphical-session.target" ];
    partOf = [ "graphical-session.target" ];
    wantedBy = [ "graphical-session.target" ];
    requisite = [ "graphical-session.target" ];

    description = "clipboard sync for old and new wayland clients";

    serviceConfig = {
      ExecStart = "${deprekages.clipboard-sync}/bin/clipboard-sync --hide-timestamp --log-level debug";
      Restart = "on-failure";
    };
  };
}
