Simple screen saver application using Python's Tkinter library. This app displays a clock at the center of the screen when activated.
you can download the latest version of the app from the Releases page.
follow the instruction to install Screen Saver App on Windows OS:
-
Clone Code
use Git on your system
git clone https://github.com/Mr-MRF-Dev/Py-Screen-Saver.git
or use GitHub CLI
gh repo clone Mr-MRF-Dev/Py-Screen-Saver
-
Change your directory.
cd Py-Screen-Saver
-
Install tkinter and Nuitka ( by using requirements.txt )
pip install -r requirements.txt
-
Create
exe
File with Nuitkanuitka --mode=app --assume-yes-for-downloads --enable-plugin=tk-inter src/main.py
-
Change File Format to
scr
ren main.exe Py-Screen-Saver-win.scr
-
Move the file to
C:/windows/system32
(Administrator access is required)mv Py-Screen-Saver-win.scr C:/windows/system32
-
Install the new screen saver (with registry):
reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /v SCRNSAVE.EXE /t REG_SZ /d C:\Windows\system32\Py-Screen-Saver-win.scr /f
reg add flags:
/v
<Valuename>,/t
<Type>,/d
<Data>,/f
Adds the registry entry without prompting for confirmation. More about reg commandYou can also right-click on the
.scr
file and select the "Install" option.
Done :)
-
To see all screen savers:
dir c:\windows\system32\*scr
-
You can adjust the duration of the screen timeout (600 sec):
reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /v ScreenSaveTimeOut /t REG_SZ /d 600 /f
-
Also, you don't need to rename the file to 'scr' extension. Instead, you can directly install the file with the 'exe' extension.
reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /v SCRNSAVE.EXE /t REG_SZ /d C:\Windows\system32\main.exe /f
we welcome any contributions you may have. If you're interested in helping out, fork the repository and create an Issue and PR.
This project is licensed under the MIT License - see the LICENSE file for details.