From 85f67e8da98189a955e3bb4b0e1c6a0a9c640b1f Mon Sep 17 00:00:00 2001 From: starchyunderscore Date: Thu, 28 Sep 2023 10:13:32 -0400 Subject: [PATCH] Update setup.ps1 --- current/setup.ps1 | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/current/setup.ps1 b/current/setup.ps1 index 65d8d78..b3b5820 100644 --- a/current/setup.ps1 +++ b/current/setup.ps1 @@ -587,6 +587,7 @@ public class PInvoke { } catch { New-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\PushNotifications" -Name "ToastEnabled" -Type "DWord" -Value 1 } + Write-Output "Changes will apply the next time you log in." } 2 { # Disable try { @@ -594,12 +595,12 @@ public class PInvoke { } catch { New-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\PushNotifications" -Name "ToastEnabled" -Type "DWord" -Value 0 } + Write-Output "Changes will apply the next time you log in." } 3 { # Test Show-Notification "Test notification" "Lorem ipsum dolor sit amet." } } - Write-Output "Changes will apply the next time you log in." } } } until ($Themer -notmatch "\S") @@ -852,14 +853,14 @@ public class PInvoke { } } 4 { # Find Cursor - -$CursorFind = $Host.UI.PromptForChoice("Find cursor", "", @("&Cancel", "&Enable", "&Disable"), 0) + Write-Output "I reccomend installing powertoys instead, as it's cursor locate feature looks better" + $CursorFind = $Host.UI.PromptForChoice("Find cursor", "", @("&Cancel", "&Enable", "&Disable"), 0) switch ($CursorFind) { 0 { # Cancel Write-Output "`nCancled" } 1 { # Enable - $Off = $true + $Off = $false $Bit = 0x40 $B = 1 $UserPreferencesMask = (Get-ItemProperty "HKCU:\Control Panel\Desktop" -Name "UserPreferencesMask").UserPreferencesMask @@ -867,9 +868,10 @@ $CursorFind = $Host.UI.PromptForChoice("Find cursor", "", @("&Cancel", "&Enable" $NewMask = $UserPreferencesMask if ($Off) {$NewMask[$B] = $NewMask[$B] -band -bnot $Bit} else {$NewMask[$B] = $NewMask[$B] -bor $Bit} if ($NewMask -ne $UserPreferencesMask) {Set-ItemProperty "HKCU:\Control Panel\Desktop" -Name "UserPreferencesMask" -Value $NewMask} + Write-Output "Changes will apply next time you log in" } 2 { # Disable - $Off = $false + $Off = $true $Bit = 0x40 $B = 1 $UserPreferencesMask = (Get-ItemProperty "HKCU:\Control Panel\Desktop" -Name "UserPreferencesMask").UserPreferencesMask @@ -877,6 +879,7 @@ $CursorFind = $Host.UI.PromptForChoice("Find cursor", "", @("&Cancel", "&Enable" $NewMask = $UserPreferencesMask if ($Off) {$NewMask[$B] = $NewMask[$B] -band -bnot $Bit} else {$NewMask[$B] = $NewMask[$B] -bor $Bit} if ($NewMask -ne $UserPreferencesMask) {Set-ItemProperty "HKCU:\Control Panel\Desktop" -Name "UserPreferencesMask" -Value $NewMask} + Write-Output "Changes will apply next time you log in" } } }