Skip to content

Commit

Permalink
edit publish action and add new functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
Zoobdude committed Apr 24, 2024
1 parent c8b10e8 commit 27405ae
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- uses: actions/checkout@v3

- name: Install Ps2exe
run: Install-Module ps2exe
run: Install-Module ps2exe -Confirm:$False

- name: Comple
run: ps2exe .\main.ps1 .\likes-gay-configurator.exe
12 changes: 9 additions & 3 deletions main.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,18 @@ UnPin-App "Microsoft Edge"
UnPin-App "Microsoft Store"
UnPin-App "Mail"

# Turns on dark mode for apps and system
Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize -Name AppsUseLightTheme -Value 0 -Type Dword -Force
Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize -Name SystemUsesLightTheme -Value 0 -Type Dword -Force

# Remove task view
New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name ShowTaskViewButton -Value 0 -Force
Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name ShowTaskViewButton -Value 0 -Force

# Enable the clipboard history
Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Clipboard -Name EnableClipboardHistory -Value 1

# Turns on dark mode, for some reasons we create it
New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize -Name AppsUseLightTheme -Value 0 -Type Dword -Force
# Set print screen to open snipping tool
Set-ItemProperty -Path HKCU:\Control Panel\Keyboard -Name PrintScreenKeyForSnippingEnabled -Value 1 -Type Dword

# Change default browser to Chrome
$originalFile = "C:\Windows\System32\OEMDefaultAssociations.xml"
Expand All @@ -38,5 +42,7 @@ Start-Process "chrome.exe" "https://office.com","--profile-directory="Default""
# Close the trash browser
Stop-Process -Name msedge -Force


# Easter egg ;)
Invoke-WebRequest -Uri https://upload.wikimedia.org/wikipedia/commons/1/1f/Joe_Biden_81st_birthday.jpg -OutFile $env:USERPROFILE\Downloads\Joe_Biden_81st_birthday.jpg
Start-Process $env:USERPROFILE\Downloads\Joe_Biden_81st_birthday.jpg

0 comments on commit 27405ae

Please sign in to comment.