What I need is a way to fire off a script via a "button" in a terminal. Like a terminal ui that works with mouse clicks that I can just have execute a command. Anyone know of anything that can do that?
@kelbot if you have a weechat session open, I'd probably know a way to write a simple script to add a bar item that responds to mouse clicks, if that helps?
@kelbot alternatively you can probably write a simple #TUI in #Python with #Urwid, which seems to support mouse input: http://urwid.org/manual/userinput.html
User Input — Urwid 2.1.2

@FiXato What kind of script? I'm not a programmer but I can usually hack together something simple enough with enough searching.

@kelbot just something simple that would draw one or more button areas and a trigger for what would need to happen when you click on it.

I'll see if I can whip up a proof of concept tonight or this weekend if no-one else comes up with a readymade solution. :)

@FiXato That would be awesome! But no worries if you don't get to it. I'm honestly surprised one of the terminal dashboards that exist don't have some sort of simple command execution button funcionality already.

@kelbot I've converted the initial version of the script as posted to https://gist.github.com/FiXato/14b80d612896f6d008988983f3b47eff into a proper project with its own repository: https://github.com/FiXato/tui_launcher

I included step by step instructions on how to upgrade from the initial gist script, as it involves manually copying over some data as the config and layout are now separate from the actual script.

A TUI-based launch app written in Python for kelbot

A TUI-based launch app written in Python for kelbot - launcher.py

@kelbot most imporant changes:
Config is no longer part of the launcher itself, neither is the layout.
Two configs and layouts are shipped with this version; a default and an MPV example.
Commands are now non-blocking, so you can now continue to control the launcher while MPV is launched in the background for instance.
Padding is calculated a bit better now too, allowing for odd numbers.
Theoretically buttons can have their vertical padding specified too, though it's not yet part of the Config.
@kelbot if you decide to update, please let me know if the instructions were clear enough, and/if you ran into any issues. :)

@FiXato This is so flippin sweet! I'm still kind of in awe that my question turned into this :-D. Thank you again.

Definitely goin to check it out and switch to the new version tomorrow. I'll let you know how it goes and any feedback I may have.

@kelbot
I still have a bit more cleaning to do before I can think of adding features, but this update will at least make it rasier to update to future versions. (Should be just a matter of `git pull`)

Once you've successfully migrated, I wouldn't mind a copy of your config/layout, so I can add that as an example of how to control snapcast through it. :)

Screenshots for the README are also welcome. :)