aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfoswret <foswret@posteo.com>2025-09-09 21:05:48 -0500
committerfoswret <foswret@posteo.com>2025-09-09 21:05:48 -0500
commitfeb53033f4ea43f51d122e256cca1672710ba1e2 (patch)
tree9c65412c652ad047f411d256c61976a29a7dce23
parent4088087375ba1a256b6224d8ffbd6f874750ee18 (diff)
Sessions actually work nowHEADmaster
-rw-r--r--README.md10
-rw-r--r--beefsteak.c6
2 files changed, 12 insertions, 4 deletions
diff --git a/README.md b/README.md
index dfab25c..2867a94 100644
--- a/README.md
+++ b/README.md
@@ -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: ");