3 stable releases
1.2.0 | Jul 24, 2024 |
---|---|
1.1.0 | May 22, 2024 |
1.0.0 | May 16, 2024 |
#839 in Command line utilities
244 downloads per month
715KB
718 lines
Locking Pomodoro Timer
A Pomodoro timer with the capability of locking the screen.
Explore the docs »
Report Bug
·
Request Feature
Table of Contents
About The Project
There are many Pomodoro timers available on the web, however, I couldn't find one that would lock the screen. I wanted to create a simple Pomodoro timer that would lock the screen after a certain amount of time as just a sound notification wasn't enough to really stop me working. The Pomodoro technique is a time management method that uses a timer to break down work into intervals, traditionally 25 minutes in length, separated by short breaks. This technique is used to improve focus and productivity.
Built With
Getting Started
Download Executable
The easiest way to use the Pomodoro timer is to download the executable from the releases page and run it on your machine. If you want to build the project yourself, follow the instructions below.
Prerequisites
Install Rust by following the instructions on the Rust website.
Installation
-
Clone the repo
git clone https://github.com/davidzanger/Locking-Pomodoro-Timer.git
-
Build the project
cargo build --release
-
Use the executable which can be found in the
target/release
directory.
Usage
To use the Pomodoro timer, simply run the executable. On the first run, the program will create a .json
file next to the executable which will store the settings for the timer. The settings can be changed by editing the .json
file.
The default settings are as follows:
{
// The duration of a single Pomodoro session in minutes.
"durationPomodoro": 25,
// The additional duration in minutes to be added to a Pomodoro session when it is over.
"additionalDuration": 5,
// The duration of a short break in minutes.
"durationShortBreak": 5,
// The duration of a long break in minutes.
"durationLongBreak": 15,
// Flag indicating whether to automatically start a break after a Pomodoro session ends.
"autoStartBreak": true,
// Flag indicating whether to automatically start a new Pomodoro session after a break ends.
"autoStartPomodoro": true,
// The interval in number of Pomodoro sessions after which a long break should be taken.
"intervalLongBreak": 4,
// The end event to be executed after a Pomodoro session ends.
"endEventPomodoro": {
"sound": {
"filepathSound": ""
}
},
// The end event to be executed after the additional Pomodoro after a Pomodoro session ends.
"endEventAdditionalPomodoro": "lockScreen"
}
For the endEventPomodoro
and endEventAdditionalPomodoro
fields, the following options are available:
sound
: Play a sound file. The path to the sound file must be provided in thefilepathSound
field. If the path is empty, the default sound will be played.lockScreen
: Lock the screen. This feature is currently only available on Windows.
For more details, please refer to the Documentation
Roadmap
- Create a GUI for the timer.
See the open issues for a full list of proposed features (and known issues).
Contributing
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
License
Distributed under the GPL-3.0 License. See LICENSE
for more information.
Contact
Project Link: https://github.com/davidzanger/Locking-Pomodoro-Timer
Dependencies
~6–34MB
~534K SLoC