All posts

Macro Deck 3.1.0: Clipboard, Ping and Wake on LAN, several labels per button and flows that ask questions

Macro Deck 3.1.0 adds Clipboard, Ping and Wake on LAN integrations, up to four freely placed labels on an Action Button, flows that ask a question, and a portable version for Windows.

Contents
  1. Clipboard, Ping and Wake on LAN
  2. Several labels on an Action Button
  3. Flows can ask a question
  4. Other noteworthy changes
  5. For plugin creators
  6. Fixed
  7. Before you update
  8. AI clients on other computers
  9. Variable triggers and widget variables with the same name
  10. How to update

Macro Deck 3.1.0 is here, the first feature release after 3.0.0! I've added three built-in integrations, Clipboard, Ping and Wake on LAN, and Action Buttons can now have several labels wherever you want them. And flows can finally ask a question and wait for you to answer. There's also a portable Windows version and quite a few smaller changes.

Some of this came from your requests on GitHub, including Copy Style, the portable version and the collapsible folder list. You'll find the pull requests linked below. And thank you to @jay23606 for three fixes!

If you use an AI client from another computer, please read Before you update. I've changed the default for those connections.

Clipboard, Ping and Wake on LAN

You no longer need a little script in Run Command to work with the clipboard or other devices on your network. I've added all three directly under Integrations, without needing an account or an online service.

With Ping, you can check your NAS, router, printer or server, basically like the ping command. Add each device with its Host and Macro Deck checks it every 10 seconds, or at whatever interval you set. You get variables for its online status, latency, packet loss and last response, and the Ping status widget shows these on your deck with an optional latency history. Target online and Target offline let you run automations when a device disappears or comes back. By default, it needs three unanswered pings in a row before counting as offline, so a single lost packet won't trigger anything (#1670).

A deck with three Ping status widgets, NAS and Router online with a latency history and Printer offline, next to a Wake NAS button and a Scene button

For Wake on LAN, just save the device's MAC address. You can then use Wake device from a button, automation or script to send the magic packet. Just keep in mind that the device doesn't answer this packet, so Macro Deck can't actually know if it woke up. Add a Ping target for the same device to check that (#1669).

Clipboard works on the computer running Macro Deck. You can use Copy text, Copy image or Copy files to copy something, and Read clipboard text to put the text into a variable. There are also Check clipboard content and Clear clipboard.

And you can react to copied text. Copied text matches runs when it matches a regular expression, for example a web address or six-digit code. Enable Watch the clipboard for this, plus Show clipboard text as a variable if you want that text in a variable. Both start off disabled, because of course passwords and tokens end up in your clipboard too. Macro Deck never logs or saves what it reads. On Linux, you'll need wl-clipboard or xclip. Watching the clipboard doesn't work on GNOME with Wayland (#1880).

You can find more in the guides for Ping, Wake on LAN and Clipboard.

Several labels on an Action Button

Until now, an Action Button only had one label with nine possible positions. Putting a name at the bottom and a live value in a corner meant using a plugin widget.

I've removed that limitation.

Open Label in the button editor and use Add label to add up to four labels. Each gets its own text, font, size, color and position, including support for variables. You can drag them anywhere in the preview at the top, or use Horizontal position and Vertical position. Extra labels are separate for each button state. I've also split the tab into Text, Typography, Position and Appearance, so you can collapse what you don't need. For changing labels in flows, Set Label, Set Label Color and Set Font now have Label to change (#1779).

The Action Button editor with the Label tab open on Label 3 of a Wake NAS button: a text that shows the ping latency variable, and the Typography and Position sections with the horizontal and vertical position sliders

And once you've styled one widget, you can reuse that. Right-click it, choose Copy Style, select the others and use Paste Style. Ctrl/Cmd + Shift + C and V work too. This copies colors, font and label styling, the border, and an Action Button's icon color, zoom and position. Your labels, icons, actions and variables stay as they are (#1760).

The web client and Companion app show all labels where you put them. For now, hardware decks added by plugins only show the first label. More details are on the tips page.

Flows can ask a question

I've added Ask a question to the System integration. A flow can now pause, show you a dialog and continue with your answer. Previously, it just ran through. An accidental tap on a shutdown button shut down your computer unless you made a second confirmation button, and an OBS scene-switching script needed a button for every scene.

With Question type, you choose Yes or no, Choose from a list or Enter text. The list can also come from a variable. Show the dialog on the device that pressed the widget, a chosen device, or every connected client. For the last option, the first answer wins. The answer goes into a variable, and Outcome variable tells you if someone answered, cancelled or let it time out. So you can use If / Else afterwards (#1694).

A dialog in the desktop application asking Switch to which scene? with the choices Starting Soon, Gameplay, Just Chatting and Be Right Back, and a note that it closes after 1 minute

Questions can wait up to 9 minutes. Of course, hardware decks can't show a dialog, so use A chosen device or Every connected client for those buttons. The full table is on the concepts page.

I've also made list fields accept variables and script inputs, for example the scene in an OBS action or the variable in Set Variable. So one script with a text input can now work for any number of buttons (#1796).

For HTTP, I've added Set JSON Value, Remove JSON Value, Count JSON Items and Append to JSON Array alongside Get JSON Value. You can build request bodies or keep lists in variables without long templates (#1693). And wherever a field stores a result in a variable, there's now a + button to create one directly (#1701).

Other noteworthy changes

  • Portable mode for Windows: the portable .zip puts everything Macro Deck writes in a Data folder beside MacroDeck.exe, for example on a USB drive. It notifies you about updates, but you install them yourself. Other differences are in the installation guide (#1778).
  • Updates: finding an update in the background now gives you a system notification and tray icon badge, without opening the update window. Open it yourself with Update to in the icon's menu (#1819).
  • Folders: click the arrow beside Folders to collapse the list to a narrow strip and get more deck space. Macro Deck remembers it (#1867).
  • Deck: I've added Next Folder and Previous Folder. Step through folders in folder order, alphabetically or using your own list (#1688).
  • System: variables now tell you if an application is running, its window count and whether it's fullscreen, maximized or minimized. This covers the front application and up to 16 you choose (#1686).
  • Templates: current-time templates update at the start of each minute. Use Refresh Template Variable to render a template variable again, for example for a new random number on each press (#1791, #1802).
  • Web client: Keep display awake also works over http:// and in browsers without their own wake lock, including Silk on an Amazon Echo Show (#1676).
  • Safe mode: use --disable-plugins to start without installed plugins and find a problematic plugin. I've also added --version, --list-plugins and --quit (#1759, #1714).
  • Approvals: you can decline steps changed outside the app now. Previously, you could only approve them (#1702).
  • Backups: can't read the stored recovery key? Create new recovery key now replaces it immediately (#1687).
  • Store: I've made catalog refreshes faster. Use Force refresh to download it again if entries look outdated (#1675).
  • Hardware decks: plugin-added decks get a ready-to-use profile matching their exact keys on first connection. A short press now steps a Slider up and holding the key steps it down again, and animated SVG icons play on keys (#1899, #1872, #1953, #1898).
  • Devices: a device added by a plugin now shows Provided by with a link to that plugin under Settings > Devices. And if you uninstall a plugin with Also delete the plugin's stored data ticked, its devices are removed too (#1952, #1951).

For plugin creators

The protocol major is still 3, so your plugins built with an older SDK keep working unchanged. You'll find the full list on the compatibility page.

  • Key images for device providers: your layout can use KeyImages to ask Macro Deck for a finished image per key, with your hardware's encoding, rotation and corner radius. Your provider doesn't need to draw labels and icons itself anymore (#1877, #1896).
  • Layouts say more about their hardware: MaxWidgetColumns and MaxWidgetRows limit widgets to one key. LayoutVisualCapabilities.ScreenSavers = false tells Macro Deck the device shows no screensaver (#1873, #1874).
  • Button labels: select label 1 to 4 with WidgetAppearancePatch.LabelNumber. Older Macro Deck versions ignore this and change the primary label, so only send numbered patches if that's acceptable. More on the button labels page.
  • Icon color: declare WidgetAppearanceProperty.IconColor on your widget type to support Set Icon Color and Paste Style (#1861).
  • Non-finite numbers: NaN and infinite values in plugin events are now rejected instead of causing a failure. I've documented the plugin error responses too (#1743).
  • Widgets: your plugin can now list its own widgets with IWidgetApi.GetOwnedWidgetsAsync, read where they're placed through WidgetDataSnapshot.Placement and write their stored data with SetWidgetDataAsync. WidgetsChanged tells you when something changed. And registering many widget types doesn't hit the callback limit anymore (#1942, #1945, #1937, #1943).
  • Actions: ActionExecutionContext.TriggerType and BlockId tell your action which press phase and block it runs as. Actions you announce after connecting are accepted now. And once you rebuild on the new SDK, actions restricted to another platform no longer show up in the action list (#1938, #1936, #1949).
  • Language: ILocaleApi.GetLanguageAsync gives you the language set in Macro Deck, and LanguageChanged tells you when it changes (#1946).
  • UI: UI resources accept SVG images as image/svg+xml, and configuration buttons can be disabled with UiConfigButton.Disabled (#1947, #1944).
  • Rate limits: IIntegrationContext.RateLimits lets your plugin read the limits it's held to (#1948).
  • Sliders on hardware decks: a long press now steps a Slider down, and it stops at both ends instead of wrapping from the top to 0. So you'll find LongPress and Analog in a Slider's SupportedInteractions. On a touchscreen, send an Analog report with a Value from 0 to 1 to drag it (#1953, #1955).

If your hardware has separate key displays, you can define the layout like this:

new LayoutGrid
{
	Rows = 3,
	Columns = 5,
	KeySize = new LayoutKeySize(72, 72),
	MaxWidgetColumns = 1,
	MaxWidgetRows = 1
}

Fixed

  • OBS: reconnecting now works if OBS stops answering or never finishes the handshake. Rejected actions now fail with OBS's actual reason instead of OBS is not connected (#1739, #1734, #1905).
  • Home Assistant: connecting with a user who isn't an administrator finally works. Just keep in mind that Home Assistant only sends state changes and a few system events to such a user, so the Home Assistant Event trigger is limited there (#1911).
  • Home Assistant: color temperature works again in Set Light, and status variables stay available when Home Assistant is offline (#1733, #1858).
  • Keyboard: line breaks now type Enter on Windows and macOS. Switching keyboard layouts no longer leaves keys pressed on Windows and Linux (#1752, #1784, #1789).
  • Windows: commands with multiple lines actually run every line now. Scrolling also respects your configured number of notches (#1738, #1753).
  • Linux: a locked keyring now leaves Macro Deck locked with Try again, instead of hanging. The host also stays running if its X server disappears (#1821, #1886, #1792).
  • I've fixed the host hanging forever during shutdown or restart, and a second host starting if you reopened Macro Deck right after quitting (#1863, #1677).
  • Variable values now appear in clock, timer, gauge and graph captions (#1836).
  • RSS widgets now run their actions with Run the widget's actions only selected (#1859).
  • A device whose profile was deleted now shows your first profile instead of an empty deck (#1940).
  • In a narrow widget editor, the offer to use an action's states or icon now shows up even if the Appearance panel is collapsed (#1924).
  • Thanks to @jay23606, log processing continues after a failed batch, changing language updates the Web Client settings button, and widgets keep their plugin's name if the plugin is unavailable (#1762, #1715, #1765).

Before you update

There are two changes to keep in mind when updating.

AI clients on other computers

I've limited AI client connections to the computer running Macro Deck by default. For network connections, enable Allow AI clients on other devices in Settings > AI clients.

If you already created an access token before updating, this will be enabled so your clients on other computers keep working. You can turn it off if all your clients run on this computer. I've also moved the token to your system's credential store, so it isn't included in the Download for Claude Desktop file anymore (#1777, #1801, AI clients).

Variable triggers and widget variables with the same name

Previously, Variable Changed, Variable Created and Variable Deleted only knew the variable's name. So they also ran for widget variables when a global variable had the same name.

Now the widget's own trigger runs for its variable. Automations only run for it if there's no global variable with that name. If you relied on the previous behaviour, please give those variables different names (#1678).

How to update

Macro Deck checks for updates automatically. If you're using the default Notify only, open Update to from the icon's menu in the system tray or menu bar, then select Download & install. With Automatic, it installs by itself. More details are on the updates page, and you can also get the installers from the website.

You can find the full changelog in the GitHub release.

As always, please report bugs in the issues on GitHub or on the Macro Deck Discord.