Giter Site home page Giter Site logo

pomodoro-timer's Introduction

Pomodoro Timer App

Welcome to the Pomodoro Timer App! ๐ŸŽ‰

Stay productive and manage your time effectively with our sleek and simple Pomodoro timer. Designed to help you work in focused bursts with regular breaks, this app is your new productivity companion.

Pomodoro Timer Pomodoro Timer

Features

  • ๐Ÿ•’ Pomodoro Timer: 25-minute focus sessions
  • โ˜• Break Timer: 5-minute breaks
  • โœ… Task List: Manage your tasks and mark them as complete
  • ๐ŸŽจ Customizable: Change colors and opacity to suit your style
  • ๐Ÿ“Œ Stay on Top: Always on top of other windows
  • ๐Ÿ”” Sound Notifications: Alerts you when time is up

Installation

Prerequisites

  • Python 3
  • PyQt5

Steps

  1. Clone the Repository:

    git clone https://github.com/yourusername/pomodoro-timer.git
    cd pomodoro-timer
  2. Install Dependencies:

    pip install PyQt5
  3. Run the App:

    python3 pomodoro.py

Running in Background in Linux

To run the app in the background and access it easily, add an alias to your shell configuration.

  1. Edit .bashrc_aliases:

    nano ~/.bashrc_aliases
  2. Add the Alias:

    alias pomodoro='nohup python3 /path/to/pomodoro-timer/pomodoro.py > /path/to/pomodoro-timer/pomodoro.log 2>&1 &'
    • nohup: Command run the script detached from the console.
    • python3 pomodoro.py: To run your Python script.
    • pomodoro.log: Redirects the standard output to pomodoro.log.
    • 2>&1: Redirects the standard error to the same file descriptor as standard output.
    • &: Runs the command in the background.
  3. Source .bashrc_aliases:

    echo 'source ~/.bashrc_aliases' >> ~/.bashrc
    source ~/.bashrc

Now you can start the Pomodoro timer with a simple pomodoro command!

Running in Background in Windows

Here are the steps to run your Pomodoro Timer script in the background using just a batch script:

This batch script will allow you to start your Python script in a detached mode using pythonw.exe, which is the windowless version of Python that doesn't open a console window.

Step 1: Create a Batch Script

  1. Create the Batch Script:

    • Create a new file named run_pomodoro.bat in the same directory as your Python script.
  2. Edit the Batch Script:

    • Add the following lines to run_pomodoro.bat:

      @echo off
      start "" pythonw.exe "C:\path\to\your\pomodoro-timer\pomodoro.py"
    • Replace C:\path\to\your\pomodoro.py with the actual path to your Python script.

Step 2: Run the Batch Script

  1. Double-click the Batch Script:

    • Simply double-click run_pomodoro.bat to run it. This will start your Python script in the background without opening a console window.
  2. Verify the Script is Running:

    • Open Task Manager (Ctrl + Shift + Esc) and look for pythonw.exe in the list of processes. This indicates that your script is running in the background.

This method is simple and doesn't require any additional tools beyond what is already available on Windows.

Contributing

Got ideas? Found a bug? Feel free to open an issue or a pull request. Contributions are welcome!

License

This project is licensed under the MIT License.

Acknowledgements

Thanks to all the awesome developers and designers out there who inspire us to create cool stuff!


Stay focused, stay awesome! ๐Ÿš€

pomodoro-timer's People

Contributors

revoltpw avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.