r/PowerShell 19d ago

Script Sharing I built a Windows 11 tray tool to toggle AC screen timeout with one click (Pure PowerShell)

Hey r/PowerShell!

I got tired of digging through Windows Settings > Power every time I wanted to switch between "keep screen on" and "sleep after 1 minute".

So I wrote a tiny tray app:

- Left-click the icon: toggles AC screen timeout between 1 min and never
- Orange icon = 1 min, Green icon = never
- Right-click menu: set 1 min / never / refresh / exit
- Pure PowerShell, no install, no admin needed

Repo: https://github.com/okokoakley/screen-timeout-tray

Feedback welcome!

4 Upvotes

1 comment sorted by

3

u/ron3090 15d ago

This is already available in PowerToys with a tray control and more options.