Add ActivityWatch

This commit is contained in:
Paul-Henri Froidmont 2022-09-15 23:49:33 +02:00
parent c02af259e2
commit 546bc7e2e7
Signed by: phfroidmont
GPG key ID: BE948AFD7E7873BE
7 changed files with 89 additions and 24 deletions

View file

@ -14,11 +14,10 @@
./froidmpa/vscode.nix
];
nixpkgs.config = {
allowUnfree = true;
packageOverrides = pkgs: {
ncmpcpp = pkgs.ncmpcpp.override { visualizerSupport = true; };
firefox = pkgs.firefox.override { pkcs11Modules = [ pkgs.eid-mw ]; };
nixpkgs = {
overlays = [ (import ../overlay.nix { }) ];
config = {
allowUnfree = true;
};
};
@ -215,5 +214,31 @@
dolphinEmu
];
};
systemd.user.services.activitywatch = {
Unit.Description = "Start ActivityWatch";
Service.Type = "simple";
Service.ExecStart = "${pkgs.activitywatch-bin}/bin/aw-server";
Install.WantedBy = [ "default.target" ];
Service.Restart = "on-failure";
Service.RestartSec = 5;
};
systemd.user.services.activitywatch-afk = {
Unit.Description = "Start ActivityWatch AFK";
Service.Type = "simple";
Service.ExecStart = "${pkgs.activitywatch-bin}/bin/aw-watcher-afk";
Install.WantedBy = [ "default.target" ];
Service.Restart = "on-failure";
Service.RestartSec = 5;
};
systemd.user.services.activitywatch-window = {
Unit.Description = "Start ActivityWatch Window";
Service.Type = "simple";
Service.ExecStart = "${pkgs.activitywatch-bin}/bin/aw-watcher-window";
Install.WantedBy = [ "default.target" ];
Service.Restart = "on-failure";
Service.RestartSec = 5;
};
};
}

View file

@ -55,7 +55,7 @@ myFocusFollowsMouse = True
main = do
xmproc <- spawnPipe "xmobar .xmonad/xmobarrc"
xmonad $ docks $ myConfig xmproc
xmonad $ ewmh . docks $ myConfig xmproc
myConfig xmproc = azertyConfig {
terminal = myTerminal,

View file

@ -31,6 +31,7 @@
};
};
window = {
title = "Alacritty";
padding = {
x = 5;
y = 5;