Skip to content

Commit

Permalink
feat(rotating lockscreen): powershell rewrite
Browse files Browse the repository at this point in the history
  • Loading branch information
he3als committed Aug 9, 2024
1 parent 11e69ba commit d388df4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
11 changes: 9 additions & 2 deletions src/playbook/Configuration/tweaks/qol/appearance/atlas-theme.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,16 @@ actions:
value: 'RotatingLockScreenEnabled'
data: '0'
type: REG_DWORD
- !run:
exe: 'THEME.cmd'
- !powerShell:
command: |
$env:PSModulePath += """;$PWD\AtlasModules\Scripts\Modules"""
foreach ($userKey in (Get-RegUserPaths -NoDefault).PsPath) {
Set-ItemProperty `
-Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\LogonUI\Creative\$(Split-Path $userKey -Leaf)" `
-Name 'RotatingLockScreenEnabled' -Type DWORD -Value 0 -Force
}
exeDir: true
wait: true
- !powerShell:
command: '& ".\AtlasModules\Scripts\LOCKSCREEN.ps1"'
exeDir: true
Expand Down
9 changes: 0 additions & 9 deletions src/playbook/Executables/THEME.cmd

This file was deleted.

0 comments on commit d388df4

Please sign in to comment.