Jump to content

Windows 10 Shortcut for Dark/light mode

18 minutes ago, ildenar said:

Hi Ltt forum, i'm trying to find a way to switch windows 10 Dark mode  on/off with  a macro key or a script, it is possible ? Tnx a lot. 

Not that I know of.  Good question tho.  Maybe someone else can add to this.  :)

Asus Sabertooth x79 / 4930k @ 4500 @ 1.408v / Gigabyte WF 2080 RTX / Corsair VG 64GB @ 1866 & AX1600i & H115i Pro @ 2x Noctua NF-A14 / Carbide 330r Blackout

Scarlett 2i2 Audio Interface / KRK Rokits 10" / Sennheiser HD 650 / Logitech G Pro Wireless Mouse & G915 Linear & G935 & C920 / SL 88 Grand / Cakewalk / NF-A14 Int P12 Ex
AOC 40" 4k Curved / LG 55" OLED C9 120hz / LaCie Porsche Design 2TB & 500GB / Samsung 950 Pro 500GB / 850 Pro 500GB / Crucial m4 500GB / Asus M.2 Card

Link to post
Share on other sites

35 minutes ago, ildenar said:

Hi Ltt forum, i'm trying to find a way to switch windows 10 Dark mode  on/off with  a macro key or a script, it is possible ? Tnx a lot. 

Make a powershell script which you have a program to execute (you'll need to allow power shell script running)

 

Script to enable Light mode:

New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize -Name AppsUseLightTheme -Value 1 -Type Dword -Force
New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize -Name SystemUsesLightTheme -Value 1 -Type Dword -Force

First line enables light mode on programs only

Second like enables light mode on taskbar/startmenu, etc.

 

Change the field "-Value 1" to "-Value 0" if you want to use dark theme if you want to mix things.

 

 

Script to enable Dark mode:

New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize -Name AppsUseLightTheme -Value 0 -Type Dword -Force
New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize -Name SystemUsesLightTheme -Value 0 -Type Dword -Force

First line enables dark mode on programs only

Second like enables dark mode on taskbar/startmenu, etc.

 

 

What the command does:

It simply changes the registry values and send a refresh call to have everything update without having to logout and log back in into the system.

 

To enable powershell script running:

  1. Open PowerShell as Administrator
  2. Execute:
    Set-executionpolicy remotesigned

You only need to do this once

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×