Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
77 changes: 77 additions & 0 deletions bucket/move-window-between-desktops.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
{
"version": "1.2",
"description": "Move the active window between virtual desktops using Ctrl+Shift+Win+Arrow keys",
"homepage": "https://codeberg.org/FAI-Solutions/move-window-between-desktops",
"license": "MIT",
"depends": "autohotkey",
"url": [
"https://codeberg.org/FAI-Solutions/move-window-between-desktops/releases/download/v1.2/move-window-between-desktops.ahk",
"https://codeberg.org/FAI-Solutions/move-window-between-desktops/releases/download/v1.2/setup-autostart.ahk"
],
"hash": [
"sha256:1a5a78815a1c0150f12ed56a3c252eecf95e975b5f20d64f8ae2fb9fc73eb78a",
"sha256:c73c0d607b9e55d526f807ba849313f8ee8755f08066fcc566a45a90deb79796"
],
"installer": {
"script": [
"$build = [System.Environment]::OSVersion.Version.Build",
"$dllName = 'VirtualDesktopAccessor.dll'",
"$dllUrl = $null",
"$expectedHash = $null",
"",
"if ($build -ge 26100) {",
" $dllUrl = 'https://github.com/Ciantic/VirtualDesktopAccessor/releases/download/2024-12-16-windows11/VirtualDesktopAccessor.dll'",
" $expectedHash = '8740c572a1c000e3b87ffeb1e4c397eae9af3bd4a2abdc3bcffacab4493f8ff5'",
" Write-Host 'Windows 11 24H2+ detected' -ForegroundColor Green",
"} elseif ($build -ge 22631) {",
" $dllUrl = 'https://github.com/Ciantic/VirtualDesktopAccessor/releases/download/2024-01-25-windows11/VirtualDesktopAccessor.dll'",
" $expectedHash = 'f78ff6334f6c0ef5175ec0819026cec31d421a564b9ed1ee1ac4b6ed98d4f999'",
" Write-Host 'Windows 11 23H2 detected' -ForegroundColor Green",
"} else {",
" $dllUrl = 'https://github.com/Ciantic/VirtualDesktopAccessor/releases/download/2019-windows10/VirtualDesktopAccessor.dll'",
" $expectedHash = '145431bc2090281838de31824bc829dd35688b13488f4850f4bc5f25f5e599da'",
" Write-Host 'Windows 10 detected' -ForegroundColor Green",
"}",
"",
"Write-Host \"Windows Build: $build\" -ForegroundColor Cyan",
"Write-Host \"Downloading: $dllUrl\" -ForegroundColor Yellow",
"",
"try {",
" Invoke-WebRequest -Uri $dllUrl -OutFile \"$dir\\$dllName\" -UseBasicParsing -ErrorAction Stop",
"",
" $actualHash = (Get-FileHash \"$dir\\$dllName\" -Algorithm SHA256).Hash.ToLower()",
" if ($actualHash -ne $expectedHash) {",
" Remove-Item \"$dir\\$dllName\" -Force",
" throw \"Hash mismatch! Expected: $expectedHash`nGot: $actualHash\"",
" }",
"",
" Write-Host \"Successfully downloaded and verified: $dllName\" -ForegroundColor Green",
"} catch {",
" Write-Host \"ERROR: $_\" -ForegroundColor Red",
" exit 1",
"}"
]
},
"checkver": {
"url": "https://codeberg.org/FAI-Solutions/move-window-between-desktops/releases",
"regex": "tag/v([\\d.]+)"
},
"autoupdate": {
"url": [
"https://codeberg.org/FAI-Solutions/move-window-between-desktops/releases/download/v$version/move-window-between-desktops.ahk",
"https://codeberg.org/FAI-Solutions/move-window-between-desktops/releases/download/v$version/setup-autostart.ahk"
]
},
"notes": [
"SETUP:",
" Run setup-autostart.ahk to configure autostart (admin recommended).",
" Without admin rights it will fall back to a Startup folder shortcut and therefore",
" elevated windows like Task Manager cannot be moved between desktops",
"",
"KEYBOARD SHORTCUTS:",
" Ctrl + Shift + Win + Right : Move window to next desktop",
" Ctrl + Shift + Win + Left : Move window to previous desktop",
"",
"Documentation: https://codeberg.org/FAI-Solutions/move-window-between-desktops"
]
}