Skip to content

Commit

Permalink
feat: update visual effects
Browse files Browse the repository at this point in the history
  • Loading branch information
he3als committed Oct 20, 2023
1 parent a5d9468 commit efb553b
Show file tree
Hide file tree
Showing 6 changed files with 84 additions and 53 deletions.
53 changes: 32 additions & 21 deletions src/playbook/Configuration/tweaks/qol/visual-effects.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,46 +4,57 @@ description: Configures the visual effects in Windows for the optimal responsive
privilege: TrustedInstaller
actions:
- !registryValue:
path: 'HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects'
value: 'VisualFXSetting'
data: '3'
type: REG_DWORD
path: 'HKCU\Control Panel\Desktop'
value: 'FontSmoothing'
data: '2'
type: REG_SZ
- !registryValue:
path: 'HKCU\Control Panel\Desktop'
value: 'UserPreferencesMask'
data: '9012038010000000'
type: REG_BINARY
# Disable 'Animate Windows when Minimizing and Maximizing'
- !registryValue:
path: 'HKCU\Control Panel\Desktop'
value: 'DragFullWindows'
data: '1'
type: REG_SZ
- !registryValue:
path: 'HKCU\Control Panel\Desktop\WindowMetrics'
value: 'MinAnimate'
data: '0'
type: REG_SZ
- !registryValue:
path: 'HKLM\SOFTWARE\Policies\Microsoft\Windows\DWM'
value: 'DisallowAnimations'
path: 'HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced'
value: 'ListviewAlphaSelect'
data: '1'
type: REG_DWORD
- !registryValue:
path: 'HKCU\SOFTWARE\Microsoft\Windows\DWM'
value: 'EnableAeroPeek'
path: 'HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced'
value: 'IconsOnly'
data: '0'
type: REG_DWORD
- !registryValue:
path: 'HKCU\SOFTWARE\Microsoft\Windows\DWM'
value: 'EnableWindowColorization'
data: '1'
path: 'HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced'
value: 'TaskbarAnimations'
data: '0'
type: REG_DWORD
# No info on what it does, probably placebo
# - !registryValue:
# path: 'HKCU\SOFTWARE\Microsoft\Windows\DWM'
# value: 'Composition'
# data: '0'
# type: REG_DWORD

# Disable taskbar animations
- !registryValue:
path: 'HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced'
value: 'TaskbarAnimations'
value: 'ListviewShadow'
data: '1'
type: REG_DWORD
- !registryValue:
path: 'HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects'
value: 'VisualFXSetting'
data: '3'
type: REG_DWORD
- !registryValue:
path: 'HKCU\SOFTWARE\Microsoft\Windows\DWM'
value: 'EnableAeroPeek'
data: '0'
type: REG_DWORD
- !registryValue:
path: 'HKCU\SOFTWARE\Microsoft\Windows\DWM'
value: 'AlwaysHibernateThumbnails'
data: '0'
type: REG_DWORD

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
@echo off

whoami /user | find /i "S-1-5-18" > nul 2>&1 || (
call RunAsTI.cmd "%~f0" %*
exit /b
)

(
reg add "HKCU\Control Panel\Desktop" /v "FontSmoothing" /t REG_SZ /d "2" /f
reg add "HKCU\Control Panel\Desktop" /v "UserPreferencesMask" /t REG_BINARY /d "9012038010000000" /f
reg add "HKCU\Control Panel\Desktop" /v "DragFullWindows" /t REG_SZ /d "1" /f
reg add "HKCU\Control Panel\Desktop\WindowMetrics" /v "MinAnimate" /t REG_SZ /d "0" /f
reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "ListviewAlphaSelect" /t REG_DWORD /d "1" /f
reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "IconsOnly" /t REG_DWORD /d "0" /f
reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "TaskbarAnimations" /t REG_DWORD /d "0" /f
reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "ListviewShadow" /t REG_DWORD /d "1" /f
reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects" /v "VisualFXSetting" /t REG_DWORD /d "3" /f
reg add "HKCU\SOFTWARE\Microsoft\Windows\DWM" /v "EnableAeroPeek" /t REG_DWORD /d "0" /f
reg add "HKCU\SOFTWARE\Microsoft\Windows\DWM" /v "AlwaysHibernateThumbnails" /t REG_DWORD /d "0" /f
taskkill /f /im explorer.exe
taskkill /f /im sihost.exe
) > nul

choice /c:yn /n /m "Finished, would you like to logout to apply the changes? [Y/N] "
if %errorlevel%==1 logoff
exit /b
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
@echo off

whoami /user | find /i "S-1-5-18" > nul 2>&1 || (
call RunAsTI.cmd "%~f0" %*
exit /b
)

(
reg add "HKCU\Control Panel\Desktop" /v "FontSmoothing" /t REG_SZ /d "2" /f
reg add "HKCU\Control Panel\Desktop" /v "UserPreferencesMask" /t REG_BINARY /d "9E1E078012000000" /f
reg add "HKCU\Control Panel\Desktop" /v "DragFullWindows" /t REG_SZ /d "1" /f
reg add "HKCU\Control Panel\Desktop\WindowMetrics" /v "MinAnimate" /t REG_SZ /d "1" /f
reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "ListviewAlphaSelect" /t REG_DWORD /d "1" /f
reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "IconsOnly" /t REG_DWORD /d "0" /f
reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "TaskbarAnimations" /t REG_DWORD /d "1" /f
reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "ListviewShadow" /t REG_DWORD /d "1" /f
reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects" /v "VisualFXSetting" /t REG_DWORD /d "0" /f
reg add "HKCU\SOFTWARE\Microsoft\Windows\DWM" /v "EnableAeroPeek" /t REG_DWORD /d "1" /f
reg add "HKCU\SOFTWARE\Microsoft\Windows\DWM" /v "AlwaysHibernateThumbnails" /t REG_DWORD /d "1" /f
taskkill /f /im explorer.exe
taskkill /f /im sihost.exe
) > nul

choice /c:yn /n /m "Finished, would you like to logout to apply the changes? [Y/N] "
if %errorlevel%==1 logoff
exit /b

0 comments on commit efb553b

Please sign in to comment.