Skip to content
Snippets Groups Projects

Thunderbird (week always starts today)

  • Clone with SSH
  • Clone with HTTPS
  • Embed
  • Share
    The snippet can be accessed without any authentication.
    Authored by izzy

    Put the thunderbird-update.sh script somewhere useful (update the config path to use your own profile folder), then use either the Nix config or the systemd service (make sure to update the ExecStart path and the User/Group options!).

    Edited
    config.nix 531 B
    systemd.services.thunderbird-update-week = {
      enable = true;
      description = "Update Thunderbird week preference to current day";
      unitConfig = {
        Type = "simple";
      };
      serviceConfig = {
        ExecStart = "${pkgs.bash}/bin/bash /home/insert/.local/share/thunderbird-update.sh";
        User = "insert";
        Group = "users";
      };
      wantedBy = [ "timers.target" ];
    };
    
    systemd.timers.thunderbird-update-week = {
      timerConfig = {
        OnCalendar = "daily";
        Persistent = true;
        Unit = "thunderbird-update-week.service";
      };
    };
    thunderbird-week.service 300 B
    update.sh 244 B
    0% or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or to comment