Skip to content

Add Decky Macro plugin - #1136

Open
olivervbk wants to merge 6 commits into
SteamDeckHomebrew:mainfrom
olivervbk:main
Open

olivervbk wants to merge 6 commits into
SteamDeckHomebrew:mainfrom
olivervbk:main

Conversation

@olivervbk

Copy link
Copy Markdown

Add Decky-Macro to Plugin Store

It's a plugin that allows recording and playing back controller input macros.
There is a rust daemon backend that looks at /dev/input/event* devices for inputs, and when a trigger key is identified, it starts recording the inputs to be replayed until the trigger key is pressed again.
Then, a different trigger can be pressed to start playing back the macro.

There are multiple slots that can be configured, each to hold it's own macro.
Each slot can be configured with a loop count for the macro (or 0 to repeat without limit).
By default, the macro playback cancels if another button is pressed.

This only supports digital inputs right now since analog triggers/stick have a lot of noise and are hard to "record".

Task Checklist

Developer

  • I am the original author or an authorized maintainer of this plugin.
  • I have abided by the licenses of the libraries I am utilizing, including attaching license notices where appropriate.
  • Generative AI was NOT used to write a majority of the code I am submitting.

Plugin

  • I have verified that my plugin works properly on the Stable and Beta update channels of SteamOS.
  • I have verified my plugin is unique or provides more/alternative functionality to a plugin already on the store.
    Couldn't find another plugin that does this.

Backend

  • Yes: I am using a custom backend other than Python.

  • Yes: I am using a tool or software from a 3rd party FOSS project that does not have it's dependencies statically linked.
    (I guess rusts use of glibc isn't statically linked?)

  • No: I am using a custom binary that has all of it's dependencies statically linked.

Community

  • I have tested and left feedback on two other pull requests for new or updating plugins.
  • I have commented links to my testing report in this PR.

Testing

  • Tested by a third party on SteamOS Stable or Beta update channel.

@olivervbk
olivervbk requested a review from a team as a code owner September 27, 2026 08:39
@github-actions github-actions Bot added the plugin-addition Adding a plugin to the Plugin Store label Sep 27, 2026
@github-actions

Copy link
Copy Markdown

Issues Found

No issues with your PR description were found.

Next Steps

  1. If we found any issues above, please edit your pull request description to resolve them and leave a comment saying you've done so.
  2. For the quickest review, please see the Community section of the pull request template for how you can help other developers.
  3. Once your description is correct, a maintainer will review your pull request as soon as possible.

Thank you for your contribution! If you need any help, please reach out on our Discord server. ❤️

@github-actions

github-actions Bot commented Oct 5, 2026

Copy link
Copy Markdown

This pull request is stale as no updates or testing reports have been posted within the last 7 days. Please ensure you are actively recruiting testers or resolving the issues discussed. If you do not remove the stale label or comment, this will be closed in 7 days. Please close this pull request if you need more time to resolve issues so we can keep our repo healthy.

@github-actions github-actions Bot added the stale label Oct 5, 2026

@AAGaming00 AAGaming00 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix the license, remove defaults and py_modules if you aren't using them

@olivervbk

Copy link
Copy Markdown
Author

@AAGaming00 thanks for taking a look!

I've fixed the repo license, and removed py_modules/defaults.

Also added some updates/fixes to the plugin, updated to v1.1.0.

@github-actions

Copy link
Copy Markdown

This pull request is stale as no updates or testing reports have been posted within the last 7 days. Please ensure you are actively recruiting testers or resolving the issues discussed. If you do not remove the stale label or comment, this will be closed in 7 days. Please close this pull request if you need more time to resolve issues so we can keep our repo healthy.

@github-actions github-actions Bot added the stale label Oct 18, 2026
@AAGaming00 AAGaming00 moved this to Ready for review in Plugin Review Oct 19, 2026

@AAGaming00 AAGaming00 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need to leave in the original template copyright too

@github-project-automation github-project-automation Bot moved this from Ready for review to Changes requested in Plugin Review Oct 19, 2026
@github-actions github-actions Bot removed the stale label Oct 20, 2026
@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown

This pull request is stale as no updates or testing reports have been posted within the last 14 days. Please ensure you are actively recruiting testers or resolving the issues discussed. If you do not remove the stale label or comment, this will be closed in 7 days. Please close this pull request if you need more time to resolve issues so we can keep our repo healthy.

@github-actions github-actions Bot added the stale label Nov 3, 2026
@olivervbk
olivervbk requested a review from a team as a code owner November 13, 2026 05:14
@AAGaming00 AAGaming00 moved this from Changes requested to Ready for review in Plugin Review Nov 13, 2026
@olivervbk

Copy link
Copy Markdown
Author

Rebased and fixed LICENSE file

@olivervbk
olivervbk requested a review from AAGaming00 November 13, 2026 05:22
@github-actions github-actions Bot removed the stale label Nov 13, 2026

@ynhhoJ ynhhoJ left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks fine to me. But one thing can lead to some performance issue and unnecessary load on the user device:
https://github.com/olivervbk/decky-macro/blob/a5bfffb6d08799f705230c00f0aab8b7b0c4b84d/src/index.tsx#L357-L376

image

Instead of getting notifications every 1 second through an interval, you can use decky.emit in python and addEventListener / removeEventListener on the Front-End from @decky/api to send the needed errors or data to the Front-End ONLY when this is really needed!

@github-project-automation github-project-automation Bot moved this from Ready for review to Changes requested in Plugin Review Nov 16, 2026
@AAGaming00
AAGaming00 requested a review from a team November 19, 2026 23:53
@AAGaming00 AAGaming00 moved this from Changes requested to Ready for review in Plugin Review Nov 19, 2026
@olivervbk
olivervbk deployed to testing_env November 19, 2026 23:54 — with GitHub Actions Active
@olivervbk

Copy link
Copy Markdown
Author

Migrated to the notification mechanism instead of polling. Thanks for the tip @ynhhoJ

@olivervbk
olivervbk requested a review from ynhhoJ November 21, 2026 03:20

This branch was successfully deployed

1 active deployment
testing_env — 9061fc23 Deployed Nov 19, 2026 by olivervbk via Build plugin (decky-macro, true) #4256
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

plugin-addition Adding a plugin to the Plugin Store

Projects

Status: Ready for review

Development

Successfully merging this pull request may close these issues.

3 participants