Add ActivityWatch
This commit is contained in:
parent
c02af259e2
commit
546bc7e2e7
7 changed files with 89 additions and 24 deletions
|
|
@ -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;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -31,6 +31,7 @@
|
|||
};
|
||||
};
|
||||
window = {
|
||||
title = "Alacritty";
|
||||
padding = {
|
||||
x = 5;
|
||||
y = 5;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue