Skip to content

Commit

Permalink
Add taskbar scroll
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-revay committed Oct 11, 2023
1 parent 857c5e5 commit bda3acc
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions Windows_10/packages_install_manual.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# THIS SCRIPT MUST BE RUN AS ADMINISTRATOR

Set-PSDebug -Trace 1

# Virtual desktop scroll

pushd ~/x
git clone https://github.com/sean-nicholas/scroll-windows-v-desktops.git
popd

pushd ~/x/scroll-windows-v-desktops
pip install -r requirements.txt
pyinstaller --onefile scroll-desktops.py
$config = @"
{
"xMin": -1,
"xMax": 10000,
"yMin": -1,
"yMax": 45,
"printPosition": false
}
"@

echo $config | Out-File -Encoding ASCII -FilePath ./dist/config.json

$exe_dir = "$PWD\dist"

# TODO - make scheduler registration idempotent
$action = New-ScheduledTaskAction -Execute "$exe_dir\scroll-desktops.exe" `
-Argument "--nowindowed --noconsole" `
-WorkingDirectory "$exe_dir"
$trigger = New-ScheduledTaskTrigger -AtLogOn
Register-ScheduledTask -TaskName 'Taskbar_scroll' `
-Action $action -Trigger $trigger -RunLevel Highest

popd

Set-PSDebug -Trace 0

0 comments on commit bda3acc

Please sign in to comment.