This utility comprises Python and Bash scripts designed to track work time, monitor breaks, and install necessary dependencies for the time-tracking functionality.
-
Python Script (
main.py
):- Monitors work time considering screen lock periods and breaks.
- Uses
Tkinter
for creating pop-up windows. - Utilizes a custom module
lock.py
to check the screen lock status. - Displays time-related information continuously in the terminal.
-
Bash Script (
setup.sh
):- Install the required
gnome-screensaver
package if not present. - Install the necessary Python packages (
python3-tk
) for the Python script to execute. - Creates an executable file (
mytime
) that executes themain.py
Python script. - Provides user instructions after successful installation.
- Install the required
- Python 3.x
gnome-screensaver
packageTkinter
for Python GUI (installed viapython3-tk
)
To install the time-tracking utility, follow these steps:
-
Clone this repository:
git clone https://github.com/whitedevil1710/mytime.git
-
Navigate to the project directory:
cd mytime
-
Run the setup script:
bash setup.sh
This script will check for necessary dependencies and install missing ones. It will also create an executable (mytime) to start the time-tracking utility.
Once the installation is complete, execute the following command to start the time-tracking utility:
mytime
This will initiate the time-tracking application, which will continuously display work time, break time, start time, and current time in the terminal.
Please be cautious while executing system-level scripts. Verify the contents of the scripts to ensure they align with your requirements and review potential system modifications before running them on your system.
If you find issues or have suggestions for improvements, feel free to open an issue or create a pull request. Contributions are welcome!