/srv/irclogs.ubuntu.com/2022/04/01/#ubuntustudio-devel.txt

OvenWerksEickmeyer: thank you for uploading controls...15:27
EickmeyerOvenWerks: Quite welcome. :)15:28
OvenWerksEickmeyer: if I can find a simple fix to the db problem that will come soon.15:29
EickmeyerSounds great. :)15:29
OvenWerksbut I think it is going to be messy15:29
EickmeyerBig changes are always messy.15:30
* OvenWerks thinks he needs to create a controls or autojack lib15:31
OvenWerksI think there is some code that controls and autojack need to be able to share15:31
EickmeyerOh, probably. By the way, is there a way to start and stop jack from the command line? I'm thinking about writing a plasma widget that can do the basic start/restart and stop items right from the systray.15:33
OvenWerksEickmeyer: you do not mean start and stop jack but tell autojack to do that?15:33
EickmeyerYeah.15:33
EickmeyerWouldn't be DE-agnostic, but it would be a start.15:34
* OvenWerks gives a sigh of releif15:34
Eickmeyerhaha15:34
OvenWerksthere are two dbus commands15:34
OvenWerkshmmm and a rewrite of the config file to change JACK to true or false15:35
EickmeyerThat's easy.15:36
OvenWerksYeah but I should change it so the config rewrite is not needed15:36
OvenWerksmaybe not, the config rewrite is what makes the current state say over reboot15:37
EickmeyerI was just about to say...15:37
OvenWerksI don't really want autojack doing that rewrite15:37
EickmeyerYeah. If there was a way of passing a command line to studio-controls itself to not launch a GUI but to do the dbus command, that would be amazing.15:39
Eickmeyer(and, of course, do the conf rewrite)15:39
OvenWerksThere are really two ways to do this, have the systray applet send the signal controls normally would to autojack or have it send a signal to controls...15:39
EickmeyerI think a signal to controls would be best, because then we're not having to reinvent the wheel.15:40
OvenWerksexcept controls may not be running15:40
EickmeyerRight. Hence, a command-line parameter.15:40
OvenWerksreally the thing to do would be like qjackctl where it keeps running but becomes the systray applet15:41
OvenWerksbut that is not quick simple ;)15:42
OvenWerksDo you want this to be a part of controls or separate?15:43
EickmeyerI was thinking separate. Something that just passes a command and sits in the plasma tray, therefore not taking up any additional resources.15:43
EickmeyerLiterally a plasma applet written in qml that basically acts as a plugin for Plasma.15:44
EickmeyerSee plasma-optimus. It's an applet I forked for Plasma to switch between NVIDIA and Intel graphics.15:44
EickmeyerIt simply sits there and runs a script, when called, but is not using additional resources because it runs as part of the plasma process.15:45
OvenWerkswill that be written in pythom3?15:50
OvenWerks(changing the db is a python3 thing) anyway I am writing it to be cl15:51
EickmeyerIt would be written in qml.15:51
EickmeyerPlasma does everything with qml.15:52
* OvenWerks is not at all familiar with that15:52
EickmeyerWell, that's where I come it.15:52
Eickmeyer*in15:52
EickmeyerThe only thing I'd need is a way to pass a command to studio-controls to do its thing. Not even an API, just a command-line parameter.15:52
EickmeyerIt can use bash in the backend to do that.15:53
OvenWerksI am writing a quick py3 utility right now. Controls sets up the GUI before it does anything else15:54
OvenWerksIt would take more changes to controls to do the same15:55
EickmeyerI see.15:58
OvenWerksEickmeyer: Can I assume autojack has already been run? (That will at least create a config file of some sort)16:52
EickmeyerOvenWerks: Yes.16:52
OvenWerksEickmeyer: if this utility is run with no config file, it will error out (error 1)16:53
EickmeyerAh, good to know. Probably won't affect the applet.16:53
EickmeyerI can catch the error though, and pop a dialog.16:54
OvenWerksEickmeyer: I think that starting jack if studio_controls has never been run is probably not a good thing16:54
EickmeyerAgreed.16:54
OvenWerksIt will try to pick the best internal audio device it can find16:54
OvenWerksEickmeyer: it would be possible to have autojack not create a config file on first run but fix an already created config so that controls would have to be run just to create a config17:42
OvenWerksEickmeyer: but I thing that would be considered a new feature not a bugfix17:42
EickmeyerThat's correct, we'd have to backport not upload.17:42
EickmeyerUnless it fixes something that's a little broken.17:43
OvenWerksHaving a systray applet is already a new feature...17:45
EickmeyerYeah, that would have to be a backport.17:45
OvenWerksEickmeyer: right now, autojack will not start jack untill controls runs anyway, so not broken. But if a systray applet goes around that and creates a problem, then this would be a fix to make the systray applet work.17:47
EickmeyerOh, pwedwxr.17:47
Eickmeyer*perfect17:47
Eickmeyerfingers on wrong keys. hehe17:47
OvenWerksAnd stack overflow goes paywall (sigh) No access without an account so we can sell your info.19:01
EickmeyerYikes. I hope askubuntu isn't affectdd.19:12
Eickmeyer*whew* it's not.19:13
OvenWerksEickmeyer: http://www.ovenwerks.net/paste/controls-cl19:34
OvenWerksdown load and make it executable if needed19:34
OvenWerkscan be called with either start or stop as the only parmeter19:35
EickmeyerOvenWerks: That look slike it should work for sure. I can't test it right now, but I'll try to after I'm done with work.19:35
OvenWerksWorks here anyway19:38
EickmeyerSweet!19:41
OvenWerksWhen running Dolphin remotely (via latte-dock) it pops up dialogs on the local machine instead of the remote machine :P19:45
OvenWerksI think this is because all dolphine windows are the same process and so dialogs pop up on the display where it was first started19:46
OvenWerksEickmeyer: the script I gave you can be translated to run native in qml22:18
EickmeyerOvenWerks: Won't be necessary as qml just draws the frontend, defines the icon, and executes something when a button is pushed.22:20
OvenWerksok22:20
EickmeyerSo, I'd just have it execute that script with an argument depending on what is pressed.22:20

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!