Documentation

Shortcut

urdeck.widgets.shortcut is a 1x1 card that shows the icon of an application, a file, a folder or a web address and opens it when you tap it, the way a desktop shortcut does. While your finger is down the card shrinks and dims slightly (the amounts are the theme’s press values); a swipe that starts on a shortcut still changes the page and opens nothing, and so does a long hold.

The dock with four shortcuts: GitHub, Wikipedia, Steam and VS Code.
1x1 One cell each, on a page or in the dock.
{ "typeId": "urdeck.widgets.shortcut", "col": 0, "row": 8, "target": "C:\\Program Files (x86)\\Steam\\steam.exe" },
{ "typeId": "urdeck.widgets.shortcut", "col": 1, "row": 8, "target": "shell:AppsFolder\\Microsoft.WindowsTerminal_8wekyb3d8bbwe!App" },
{ "typeId": "urdeck.widgets.shortcut", "col": 2, "row": 8, "target": "%USERPROFILE%\\Documents" },
{ "typeId": "urdeck.widgets.shortcut", "col": 3, "row": 8, "target": "https://example.com", "icon": "C:\\Icons\\example.png" }

Settings

In the editor, add the widget on Pages and select it: the pane on the right shows these settings with a control for each. The file keys are listed for reference.

SettingValueDefaultMeaning
targetan application, file, folder or addressWhat to open: an application, a file, a folder or a web address. With none the card shows an empty placeholder and does not react.
argumentstextArguments for a file target; ignored for an address. They are never written to the log. Left out: None.
icona theme icon key or an image fileWhere the icon comes from instead of the target: a glyph of the theme's icon set or an image file on this PC. Left out: From the target.
labeltextA text under the icon. With none, the icon takes the whole card. Left out: None.

A packaged (Store) application has no path; its target is shell:AppsFolder\ followed by its id, which Get-StartApps lists in PowerShell:

Get-StartApps | Where-Object Name -like '*Terminal*'   # AppID: Microsoft.WindowsTerminal_8wekyb3d8bbwe!App

Launching

The target is handed to the Windows shell with its default action: never through a command interpreter and never elevated. Whether a running application is brought forward or a second window opens is the application’s decision, as it is for a desktop shortcut, and Windows and the application decide which monitor the window opens on. A double tap opens one window. A target Windows refuses (a missing file, no application for the address) opens nothing and urdeck.log says why.