|
31 | 31 | "Custom": 3,
|
32 | 32 | }.get("Best appearance")
|
33 | 33 | TASKBAR_AUTOHIDE_REG_PATH = {
|
34 |
| - "Windows 7": "HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\StuckRects2", |
35 |
| - "Windows 10": "HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\StuckRects3", |
| 34 | + "Windows 7": r"HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\StuckRects2", |
| 35 | + "Windows 10": r"HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\StuckRects3", |
36 | 36 | }.get("{} {}".format(platform.system(), platform.release()))
|
37 | 37 | #####
|
38 | 38 | config = {
|
|
258 | 258 | "cmd": [
|
259 | 259 | "powershell",
|
260 | 260 | "-command",
|
261 |
| - "\"&{$p='HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\\Notifications\Settings\Windows.SystemToast.SecurityAndMaintenance';if(!(Test-Path -Path $p)){&New-Item -Path $p -Force}&Set-ItemProperty -Path $p -Name Enabled -Value 0}\"", # noqa |
| 261 | + "\"&{$p='HKCU:SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Notifications\\Settings\\Windows.SystemToast.SecurityAndMaintenance';if(!(Test-Path -Path $p)){&New-Item -Path $p -Force}&Set-ItemProperty -Path $p -Name Enabled -Value 0}\"", # noqa |
262 | 262 | ],
|
263 | 263 | "architectures": ["32bit", "64bit"],
|
264 | 264 | "halt_on_failure": True,
|
|
269 | 269 | "cmd": [
|
270 | 270 | "powershell",
|
271 | 271 | "-command",
|
272 |
| - "\"&{{&Set-ItemProperty -Path 'HKCU:Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects' -Name VisualFXSetting -Value {}}}\"".format( |
| 272 | + "\"&{{&Set-ItemProperty -Path 'HKCU:Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\VisualEffects' -Name VisualFXSetting -Value {}}}\"".format( |
273 | 273 | DESKTOP_VISUALFX_THEME
|
274 | 274 | ),
|
275 | 275 | ],
|
|
282 | 282 | "cmd": [
|
283 | 283 | "powershell",
|
284 | 284 | "-command",
|
285 |
| - "New-ItemProperty -Path 'HKCU:\Control Panel\Accessibility' -Name 'DynamicScrollbars' -Value 0", |
| 285 | + "New-ItemProperty -Path 'HKCU:\\Control Panel\\Accessibility' -Name 'DynamicScrollbars' -Value 0", |
286 | 286 | ],
|
287 | 287 | "architectures": ["32bit", "64bit"],
|
288 | 288 | "halt_on_failure": False,
|
|
317 | 317 | "cmd": [
|
318 | 318 | "powershell",
|
319 | 319 | "-command",
|
320 |
| - "if (test-path ${env:ProgramFiles(x86)}\Google\Chrome\Application\chrome.exe) {start chrome; Start-Sleep -s 30; taskkill /F /IM chrome.exe /T}", |
| 320 | + "if (test-path ${env:ProgramFiles(x86)}\\Google\\Chrome\\Application\\chrome.exe) {start chrome; Start-Sleep -s 30; taskkill /F /IM chrome.exe /T}", |
321 | 321 | ],
|
322 | 322 | "architectures": ["32bit", "64bit"],
|
323 | 323 | "halt_on_failure": True,
|
|
0 commit comments