timothycrosley / streamdeck-ui

A Linux compatible UI for the Elgato Stream Deck.
https://timothycrosley.github.io/streamdeck-ui/
MIT License
1.13k stars 241 forks source link

New plugin system + pipewire switcher example #244

Open Sawy7 opened 2 years ago

Sawy7 commented 2 years ago

Hey, I had an idea for very simple plugin system. This way anyone can write a simple script/plugin in basically any programming language. All one has to do is specify the script as a normal command. Pipewire audio switcher plugin provided as a working example.

cozyGalvinism commented 2 years ago

This would be fine... if it wasn't ruining opening regular applications, as the call with .communicate blocks the UI until the application is closed again... so if anything, there should be a UI toggle for this.

If that toggle is set, there will be a call to .communicate and if it isn't, there won't

thomas-louvigne commented 1 year ago

it could work without a script in one line, but "command" text area don't allow the ; ...

DEFAULT_SINK=$(wpctl status | grep "GP106 High Definition Audio Controller" | grep "\d+" -Po | head -n 1); wpctl set-default $DEFAULT_SINK ; notify-send "Switched to Louder"

coolapso commented 1 year ago

HI, seems the main project as reached a stale state as the project owner seems to have disappeared, and we are trying to keep it alive.

you are welcome to participate in the discussion here: https://github.com/timothycrosley/streamdeck-ui/issues/357 so we can actually decide a path forward and hopefully accept your contribution into it.

coolapso commented 1 year ago

@Sawy7 feel free to move this PR to: https://github.com/streamdeck-linux-gui/streamdeck-linux-gui

please be sure to read the new contribution guide specially in regard to git commits.