-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ActivityWatch #97379
Comments
Docs on installing from source: https://docs.activitywatch.net/en/latest/installing-from-source.html |
I marked this as stale due to inactivity. → More info |
I have an expression for the server in my configs repo. jtojnar/nixfiles#2 Unfortunately, it currently depends on unstable rust so it cannot be packaged in nixpkgs easily. Edit: Now I packaged the rest too: https://github.com/jtojnar/nixfiles/blob/92406b6eda10c4e2c36b5fd7256ef3bcbfbaa085/pkgs/activitywatch/default.nix |
@jtojnar Do you know if it should be possible to get this published on nixpkgs if we get a derivation based on the python server working? |
@skogsbrus It might even be possible to package the Rust server using the |
Made some progress tonight on this with the python server. I can install all modules and run aw-qt. The flask server responds to requests from the chrome extension, but I get 404s 🤔 Probably some paths that aren't included in the install somehow Current state: https://github.com/skogsbrus/os/pull/6/files As for the web ui, I don't think we need to include it? AFAIK it's just the code for the web extensions. The official releases don't even include it. Copied most of the modules from yours @jtojnar, so really thanks for your work! 🙏 Edit: So I think the 404s are due to me not packaging aw-webui... Guess we'll need it after all. Seems to be included in the official releases under the |
Status update: Tried adding aw-webui with
I barely know what I'm doing here so this will take quite a few iterations... :) |
@meain helped me solve the above issue. Now I'm just trying to get the static folder that is built by |
So, lots of time has past but I've got a local derivation working now. Haven't had the time to look into how to create a service that can be uploaded to nixpkgs, but this works locally with Hopefully this is enough for anyone Nix-knowledgeable to package this into something sensible? Otherwise I might be able to do it in a few more months... :)
Note: Unlike @jtojnar's derivation, this uses the python server. Uses |
@skogsbrus Thank you for the derivation, perhaps you could use it like this: {
home-manager.sharedModules = [
({ config, lib, pkgs, ... }:
with lib;
let
cfg = config.programs.activitywatch;
in
{
options.programs.activitywatch = with types; {
enable = mkEnableOption "Enable activitywatch";
package = mkOption { type = package; default = pkgs.activitywatch; };
};
config = mkMerge [
(mkIf cfg.enable {
systemd.user.services.activitywatch = {
Unit.Description = "activitywatch tray-icon";
Service.ExecStart = (pkgs.writeShellScript "activitywatch-start" ''
export PATH=$PATH:${makeBinPath [cfg.package]}
aw-qt
'').outPath;
Service.Restart = "on-failure";
Install.WantedBy = [ "graphical-session.target" ];
};
})
];
}
)
];
} |
@voobscout nice, I'll try it out. Would that then be a separate MR to the home-manager repo? |
Large release yesterday: https://github.com/ActivityWatch/activitywatch/releases/tag/v0.12.0 |
Project description
ActivityWatch is an app that automatically tracks how you spend time on your devices.
It is open source, privacy-first, cross-platform, and a great alternative to services like RescueTime, ManicTime, and WakaTime.
It can be used to keep track of your productivity, time spent on different projects, bad screen habits, or just to understand how you spend your time.
Metadata
Screenshots
The text was updated successfully, but these errors were encountered: