This repository contains three Bash scripts designed to enhance productivity and focus on GNOME-based Linux systems (Debian). Each script automates a useful task to help with eye strain relief, text extraction, and improved concentration while reading.
This script prevents you from logging into your laptop for 5 minutes, giving you a break to rest your eyes, meditate, or pray. It is integrated with crontab
to trigger at specific intervals.
Usage:
./salah_cooldown.sh
- Once executed, the script will log you out and prevent login for 5 minutes.
- Can be scheduled via
crontab
for automatic execution.
This script allows you to extract text from a screenshot and automatically copy it to the clipboard. It is linked to a shortcut for quick access.
Usage:
- Take a screenshot of the desired text using your shortcut.
- The extracted text will be available in the clipboard.
- Press
Ctrl + V
to paste the extracted text anywhere.
Whenever you open a PDF file (e.g., a book for reading), this script automatically plays a focus-enhancing Spotify playlist (beta waves binaural beats) to help you concentrate.
Usage:
- Open any PDF file.
- The Spotify playlist will start playing in the background.
- Clone the repository:
git clone https://github.com/L1ZLe/GNOME-Productivity
- Grant execution permissions:
chmod +x salah_cooldown.sh my_ocr_to_text.sh spotify_books.sh
- Configure crontab (for the cooldown script):
Add the following line to run the cooldown script at desired intervals:
crontab -e
0 * * * * /path/to/salah_cooldown.sh
- Link the
my_ocr_to_text.sh
script to a keyboard shortcut in GNOME Settings. - Ensure the
spotify_books.sh
script is triggered automatically when opening PDFs by associating it with your PDF reader.
This project is open-source and available under the MIT License.
Feel free to contribute, suggest improvements, or report issues!