diff options
| -rw-r--r-- | README.md | 10 | ||||
| -rw-r--r-- | beefsteak.c | 6 |
2 files changed, 12 insertions, 4 deletions
@@ -8,8 +8,16 @@ By default, the work time is 50 minutes. The break time is 10 minutes. With a de - `libnotify` (To send notifcations) - Some sort of notification program (Ex. `dunst`) # Install -`sudo make install` +```bash +git clone https://git.foswret.com/beefsteak +cd beefsteak +sudo make install +``` For me personally, I choose to alias `beefsteak` to `bfs` in my `~/.bashrc`. +``` +# ~/.bashrc +alias bfs='beefsteak' +``` # Uninstall `sudo make uninstall` diff --git a/beefsteak.c b/beefsteak.c index 7e05d83..8be2100 100644 --- a/beefsteak.c +++ b/beefsteak.c @@ -15,8 +15,6 @@ /* 60 SECONDS = 1 MINUTE */ /* 60 MINUTES = 1 HOUR, 3600 SECONDS */ -int work_time_seconds = WORK_TIME_MIN * 60; -int break_time_seconds = BREAK_TIME_MIN * 60; int clear_stream(void) { fflush(stdout); @@ -60,7 +58,7 @@ int send_notification(int type) { system(command); break; case 2: /* Session Ended*/ - sprintf(message, "\"🕰️ Pomodoro Session Started\" \"All Done.\""); + sprintf(message, "\"🕰️ Pomodoro Session Complete\" \"All Done.\""); strcat(command, message); system(command); break; @@ -70,6 +68,8 @@ int send_notification(int type) { int main(int argc, char **argv) { for (int i = 0; i < SESSION_COUNT; i++) { + int work_time_seconds = WORK_TIME_MIN * 60; + int break_time_seconds = BREAK_TIME_MIN * 60; send_notification(0); while (work_time_seconds > 0) { printf("Work Time Left: "); |
