mirror of
https://github.com/nix-community/home-manager.git
synced 2026-10-03 12:09:19 +00:00
A TUI Pomodoro timer with ASCII art, progress bar, desktop notifications, and productivity stats.
45 lines
984 B
Nix
45 lines
984 B
Nix
{
|
|
programs.pomo = {
|
|
enable = true;
|
|
settings = {
|
|
onSessionEnd = "ask";
|
|
asciiArt = {
|
|
enabled = true;
|
|
font = "mono12";
|
|
color = "#5A56E0";
|
|
};
|
|
work = {
|
|
duration = "25m";
|
|
title = "work session";
|
|
notification = {
|
|
enabled = true;
|
|
urgent = false;
|
|
title = "work finished 🎉";
|
|
message = "time to take a break";
|
|
};
|
|
};
|
|
break = {
|
|
duration = "5m";
|
|
title = "break session";
|
|
notification = {
|
|
enabled = true;
|
|
urgent = false;
|
|
title = "break over 😴";
|
|
message = "back to work!";
|
|
};
|
|
};
|
|
longBreak = {
|
|
enabled = true;
|
|
after = 4;
|
|
duration = "20m";
|
|
};
|
|
};
|
|
};
|
|
nmt.script = ''
|
|
local configFile=home-files/.config/pomo/pomo.yaml
|
|
|
|
assertFileExists $configFile
|
|
assertFileContent $configFile ${./example-settings-expected.yaml}
|
|
'';
|
|
}
|