mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 08:43:00 +00:00
sync: from Windows
This commit is contained in:
parent
16d9d1348b
commit
fd3ecfd674
15 changed files with 2581 additions and 29 deletions
12
win/cmd/dark-mode.bat
Normal file
12
win/cmd/dark-mode.bat
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
@REM encoding: GBK
|
||||
@echo off
|
||||
set regPath="HKCU\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize"
|
||||
for /f "usebackq tokens=2*" %%a in (`reg query %regPath% /v AppsUseLightTheme ^| find "REG_DWORD"`) do set currentMode=%%b
|
||||
|
||||
if "%currentMode%"=="0x1" (
|
||||
reg add %regPath% /v AppsUseLightTheme /t REG_DWORD /d 0 /f >nul
|
||||
echo 已切换到深色模式
|
||||
) else (
|
||||
reg add %regPath% /v AppsUseLightTheme /t REG_DWORD /d 1 /f >nul
|
||||
echo 已切换到浅色模式
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue