CognitoCurtain is a Python application that dynamically dims inactive monitors based on the position of the mouse. This tool helps in focusing attention on the active monitor while dimming others to minimize distractions.
- Mouse-Driven Dimming: Automatically dims monitors that are not under the mouse cursor.
- Full-Screen Dimming: Covers the entire screen of inactive monitors with a semi-transparent black overlay.
- Customizable: Easy to modify the dimming effect or add additional features.
- Python 3.x
pyautogui
- For getting the current mouse position.screeninfo
- For retrieving monitor information.tkinter
- For creating and managing the dimming windows.
- Clone the repository:
git clone https://github.com/PSEUDO-SAPPHO/CognitoCurtain.git
- Navigate to the project directory:
cd CognitoCurtain
- Install the required packages:
pip install pyautogui screeninfo
-
Ensure that your Python environment is set up correctly.
-
Run the
cognito_curtain.py
script:python cognito_curtain.py
-
The application will start running and monitor the mouse position. It will automatically dim inactive monitors.
The cognito_curtain.py
script performs the following tasks:
- Create Dimming Windows: For each monitor, a transparent Tkinter window is created to act as the dimming overlay.
- Track Mouse Position: Continuously checks the mouse cursor position using
pyautogui
. - Update Window Visibility: Shows or hides the dimming windows based on which monitor the mouse is currently on.
If you have three monitors and your mouse is on the middle monitor, the left and right monitors will be dimmed.
- Flickering: If you experience flickering on the dimmed monitors, try adjusting the transparency level or monitor refresh rates.