Skip to content

A shell script to boost productivity by integrating the Pomodoro technique into your system. This script provides regular break reminders, session ratings, hydration and activity reminders, and tracks your productivity throughout the day.

License

Notifications You must be signed in to change notification settings

prathampt/programmingHabits

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

programmingHabits

license last-commit repo-top-language repo-language-count

Developed with:

Bash


Description

programmingHabits is a shell script designed to enhance your productivity by integrating the Pomodoro technique into your daily routine. It provides regular break reminders, allows you to rate your work sessions, and includes additional reminders for drinking water, eating, walking, and reading.

Inspiration

As a programmer, I often found myself getting so engrossed in coding that I would forget to take breaks, stay hydrated, or even move around. This led to fatigue and decreased productivity over time. Realizing the importance of maintaining good habits and overall health, I decided to create a project that would help programmers like me stay healthy and productive. Thus, programmingHabits was born, a tool to remind us to take care of ourselves while we code.

Features

  • Pomodoro Timer: Customizable work and break periods.
  • Notifications: Alerts for breaks and work resumption.
  • Snooze Functionality: Option to snooze break reminders.
  • Session Rating: Rate your productivity after each session.
  • Session Analysis: Analyze your productivity over time.
  • Healthy Reminders: Regular reminders to drink water, eat, take walks, read books, exercise and many more.

Suggestions are welcome...

Usage

  1. Clone the Repository:

    git clone https://github.com/prathampt/programmingHabits
    cd programmingHabits
  2. Configuration:

    • Edit the configuration file config/settings.conf to customize your session and break times.
    • Default values:
      WORK_TIME=1500  # 25 minutes
      BREAK_TIME=300  # 5 minutes
  3. Running the Scripts:

    • Start the main Pomodoro timer script:
      bash scripts/main.sh
    • Start the additional reminders script:
      bash scripts/reminders.sh
  4. Add to Startup:

    • Ensure the scripts run when your system starts by adding the following lines to your .bashrc or appropriate startup file:
      echo "bash /path/to/programmingHabits/scripts/main.sh &" >> ~/.bashrc
      echo "bash /path/to/programmingHabits/scripts/reminders.sh &" >> ~/.bashrc
  5. Session Analysis:

    • Analyze your session ratings:
      bash scripts/analyze.sh

Files and Directories

  • scripts/main.sh: Main script for the Pomodoro timer.
  • scripts/reminders.sh: Script for hydration, eating, walking, and reading reminders.
  • scripts/analyze.sh: Script to analyze session ratings.
  • config/settings.conf: Configuration file for session and break times.
  • logs/session.log: Log file for session ratings.

Technologies Used

  • Bash: The scripting language used for the entire project.
  • zenity: A tool for displaying GTK+ dialog boxes from the command line, used for user interaction.
  • notify-send: A command to send desktop notifications, used for break and reminder alerts.
  • awk: A programming language used for text processing and session analysis.

Contribution

Feel free to fork this repository and submit pull requests. Your contributions are welcome!

Contributing Guidelines
  1. Fork the Repository: Start by forking the project repository to your GitHub account.
  2. Clone Locally: Clone the forked repository to your local machine using a Git client.
    git clone https://github.com/prathampt/programmingHabits
  3. Create a New Branch: Always work on a new branch, giving it a descriptive name.
    git checkout -b new-feature-x
  4. Make Your Changes: Develop and test your changes locally.
  5. Commit Your Changes: Commit with a clear message describing your updates.
    git commit -m 'Implemented new feature x.'
  6. Push to GitHub: Push the changes to your forked repository.
    git push origin new-feature-x
  7. Submit a Pull Request: Create a PR against the original project repository. Clearly describe the changes and their motivations.

Once your PR is reviewed and approved, it will be merged into the main branch.

License

This project is licensed under the GNU GENERAL PUBLIC LICENSE Version 3 - see the LICENSE file for details.

Fork and Star..

Don't forget to fork the repository and give a star if you liked it...

About

A shell script to boost productivity by integrating the Pomodoro technique into your system. This script provides regular break reminders, session ratings, hydration and activity reminders, and tracks your productivity throughout the day.

Topics

Resources

License

Stars

Watchers

Forks

Languages