Skip to content

Commit

Permalink
feat(TASKBARPINS): rewrite
Browse files Browse the repository at this point in the history
  • Loading branch information
he3als committed Aug 7, 2024
1 parent 4d39d43 commit 8e3200d
Show file tree
Hide file tree
Showing 9 changed files with 171 additions and 90 deletions.
54 changes: 40 additions & 14 deletions src/playbook/Configuration/tweaks/qol/taskbar/config-pins.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,28 +7,54 @@ actions:
# [BitConverter]::ToString($(Get-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Taskband" -Name "Favorites").Favorites) -replace '-' | clip

- !taskKill: {name: 'explorer'}
- !run:
exe: 'TASKBARPINS.cmd'

# Config pins
- !registryKey:
path: 'HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Taskband'
- !registryKey:
path: 'HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Taskband'
operation: add
- !registryValue:
path: 'HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Taskband'
value: 'FavoritesVersion'
data: '3'
type: REG_DWORD
- !registryValue:
path: 'HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Taskband\AuxilliaryPins'
value: 'MailPin'
data: '0'
type: REG_DWORD
- !registryValue:
path: 'HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Taskband\AuxilliaryPins'
value: 'CopilotPWAPin'
data: '0'
type: REG_DWORD
# Not sure what this does
# - !registryValue:
# path: 'HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Taskband\AuxilliaryPins'
# value: 'TFLPin'
# data: '0'
# type: REG_DWORD

# Set new pins
- !powerShell:
command: '.\TASKBARPINS.ps1'
option: '!install-another-browser'
exeDir: true
- !run:
exe: 'TASKBARPINS.cmd'
args: '"Brave"'
- !powerShell:
command: '.\TASKBARPINS.ps1 "Brave"'
option: 'browser-brave'
exeDir: true
- !run:
exe: 'TASKBARPINS.cmd'
args: '"Firefox"'
- !powerShell:
command: '.\TASKBARPINS.ps1 "Firefox"'
option: 'browser-firefox'
exeDir: true
- !run:
exe: 'TASKBARPINS.cmd'
args: '"Google Chrome"'
- !powerShell:
command: '.\TASKBARPINS.ps1 "Google Chrome"'
option: 'browser-chrome'
exeDir: true
- !run:
exe: 'TASKBARPINS.cmd'
args: '"LibreWolf"'
- !powerShell:
command: '.\TASKBARPINS.ps1 "LibreWolf"'
option: 'browser-librewolf'
exeDir: true
- !run: {exe: 'explorer.exe', runas: 'currentUser', wait: false}
Binary file removed src/playbook/Executables/Shortcuts/Brave.lnk
Binary file not shown.
Binary file removed src/playbook/Executables/Shortcuts/File Explorer.lnk
Binary file not shown.
Binary file removed src/playbook/Executables/Shortcuts/Firefox.lnk
Binary file not shown.
Binary file removed src/playbook/Executables/Shortcuts/Google Chrome.lnk
Binary file not shown.
Binary file removed src/playbook/Executables/Shortcuts/LibreWolf.lnk
Binary file not shown.
Binary file not shown.
76 changes: 0 additions & 76 deletions src/playbook/Executables/TASKBARPINS.cmd

This file was deleted.

131 changes: 131 additions & 0 deletions src/playbook/Executables/TASKBARPINS.ps1

Large diffs are not rendered by default.

0 comments on commit 8e3200d

Please sign in to comment.