resurrect #8
22
home/deepak/config/uair.toml
Normal file
22
home/deepak/config/uair.toml
Normal file
@@ -0,0 +1,22 @@
|
||||
loop_on_end = true
|
||||
|
||||
[defaults]
|
||||
format = "🍅 {name}: {time} / {total}{end}\n"
|
||||
|
||||
[[sessions]]
|
||||
id = "work"
|
||||
name = "Work"
|
||||
duration = "30m"
|
||||
command = "notify-send 'Work Done!'"
|
||||
|
||||
[[sessions]]
|
||||
id = "rest"
|
||||
name = "Rest"
|
||||
duration = "5m"
|
||||
command = "notify-send 'Rest Done!'"
|
||||
|
||||
[[sessions]]
|
||||
id = "hardwork"
|
||||
name = "Work, but harder"
|
||||
duration = "1h 30m"
|
||||
command = "notify-send 'Hard Work Done!'"
|
||||
@@ -49,6 +49,7 @@ in
|
||||
pkgs.ydiff
|
||||
pkgs.xsel
|
||||
pkgs.delta
|
||||
pkgs.uair
|
||||
|
||||
pkgs-unstable.claude-code
|
||||
# default_python
|
||||
@@ -100,6 +101,7 @@ in
|
||||
programs.direnv.nix-direnv.enable = true;
|
||||
|
||||
xdg.enable = true;
|
||||
xdg.configFile."uair/uair.toml".source = ./config/uair.toml;
|
||||
|
||||
services.nextcloud-client = pkgs.lib.mkIf specialArgs.withGUI {
|
||||
enable = true;
|
||||
@@ -391,4 +393,20 @@ in
|
||||
};
|
||||
};
|
||||
|
||||
systemd.user.services = {
|
||||
uair = {
|
||||
Unit = {
|
||||
Description = "Uair pomodoro timer";
|
||||
};
|
||||
Service = {
|
||||
Type = "simple";
|
||||
ExecStart = "${pkgs.uair}/bin/uair -q";
|
||||
Restart = "always";
|
||||
};
|
||||
Install = {
|
||||
WantedBy = ["default.target"];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user