Skip to content

Mr-MRF-Dev/Py-Screen-Saver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🖥️ Py Screen Saver

GitHub License Code Style: Black

Simple screen saver application using Python's Tkinter library. This app displays a clock at the center of the screen when activated.

Screenshot

📥 Installation

  1. 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
  2. Change your directory.

    cd Py-Screen-Saver
  3. Install tkinter and pyinstaller ( by using requirements.txt )

    pip install -r requirements.txt
  4. Create exe File

    cd src
    pyinstaller --noconfirm --onefile --windowed  .\main.py
  5. Change File Format to scr

    cd dist
    ren main.exe main.scr
  6. Move the file to C:/windows/system32 (Administrator access is required)

    mv main.scr C:/windows/system32
  7. 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\main.scr /f

    reg add flags: /v <Valuename>, /t <Type>, /d <Data>, /f Adds the registry entry without prompting for confirmation. More about reg command

Done :)

💡 Tips

  • 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

🤝 Contributing

we welcome any contributions you may have. If you're interested in helping out, fork the repository and create an Issue and PR.

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

About

🖥️ A simple Screen Saver App Made with Python.

Topics

Resources

License

Stars

Watchers

Forks

Languages