LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   [ANN] Soma 3.0.0 (https://www.linuxquestions.org/questions/slackware-14/%5Bann%5D-soma-3-0-0-a-4175619795/)

dive 12-17-2017 07:05 PM

[ANN] Soma 3.0.0
 
I felt that this needed a major version bump because of the new features. So, a rundown:

Fixes:
BBC Radio 4 and BBC Radio 4 Extra URLs fixed.
Fixed bug when sometimes pressing 'm' (mute) would go to the main menu.
Streamlined code a bit.

Additions:
Bookmarks.
Extra menu options for genres, bookmarks, themes, user (local) stations.
Extra config options in options menu.
Added an indicator to show if you have schedules.
Added optional volume indicator.
Added an 'all stations' menu option.
Added new key shortcuts for all the above.
Added toggle debug key.
Added more startup flags so you can go straight to bookmarks, genres, stations, start in debug mode etc.
Added a few more themes.

A bit more depth:

The new menus have options for adding, removing, editing, sorting stations, genres, bookmarks.

Now you can also add a station via dialog to bookmarks, current genre, local stations list.

The 'edit' function will fire up $EDITOR on the genre/theme/bookmarks/stations file. If $EDITOR is unset then /usr/bin/vim is used. You can change that in your shell. (You could also add it to your local options.conf if you want to use a different editor to that set in the shell.)

If you edit a genre or theme that isn't in your local ~/.soma dir, then a a copy is made for you, and that is set to your current genre/theme.

Any local genre or theme that is identical (using md5sum) to a global one in /etc/soma will be removed. (My idea of copying all the files to ~/.soma was a bit of a bad brainfart I'm afraid.)

Local files are prefered over the global ones.

TIMEFORMAT is by default 12 hour rather than 24 hour format. This can be changed.

You will notice that now station URLs aren't printed next to the name in some lists. Instead a caret ('——>') is drawn. However when using the menus for genres and bookmarks the URLs /will/ be shown. The CARET character can also be customised.

I've added the codec in use to the audio info shown in the status window. The audio info can be turned off in the options menu if you don't really care about seeing it.

Now the current volume is also shown next to the station name in the status window titlebar. This can also be turned off.

If you have any schedules then [S] is shown next to the time in the status title bar. The shift+s shortcut will temporarily toggle on/off schedules. If off, [S] changes to [-].

Shortcut keys in status window:

a add a schedule.
b station browser for current genre.
B station browser for all stations.
D toggle debug mode. In debug mode you see the raw mplayer output.
? show keys and options (this used to be 'h').
g list all genres. If you pick a new one the station browser will autoopen for you.
h list local genres. Ditto as above with station browser.
k bookmark current station.
j add current station to genre.
l open bookmarks list.
m toggle mute.
o options menu.
s scheduler menu.
S toggle schedules temporarily.
t change theme.
q quit.
Enter will return to teh main menu.

Startup flags:

soma -l go straight to bookmarks list
soma -b go straight to stations browser for genre
soma -B go straight to all stations browser
soma -g go straight to local genre browser
soma -G go straight to global genre browser
soma -d to start in debug mode

Config Files:

User/Local:
~/.soma/options.conf
~/.soma/stations.conf
~/.soma/bookmarks.conf
~/.soma/themes/*rc
~/.soma/genres/*.conf
~/.soma/schedules.conf

Global:
/etc/soma/options.conf
/etc/soma/stations.conf
/etc/soma/themes/*rc
/etc/soma/genres/*.conf

Well, I'm sure that I've forgotten something. Enjoy though :)

http://dawoodfall.net/slackbuilds/noversion/soma

Darth Vader 12-17-2017 07:41 PM

How it is an console application written in the bash scripting language, I can use SOMA in a pure console environment, with no X(.org) fleet installed? :D

dive 12-17-2017 07:44 PM

Well it uses mplayer, which is built against some X libs. I'm not sure exactly which though.

Darth Vader 12-17-2017 07:47 PM

So, if I want a pure console player, i.e. for a very old box, I will need a custom built mplayer, with no X-based video output drivers?

I got it, thanks you! :thumbsup:

PS. Another question: it has some kind of playlist, ie. via some dialog UI, for selecting some local MP3 files, for example?

dive 12-17-2017 07:55 PM

I'll have a go myself. MPlayer tends to auto-build against what it finds, so it might mean making a non-x chroot or something.

Darth Vader 12-17-2017 08:02 PM

Yep, also could be forced from its "configure" options.

Full disclosure: I will have in January to present a small course about Linux to a group of brave kids, and I will have at disposition only some junk boxes, they are functional but very old.

And I wondered what (fun) purpose I can invent, while dealing with really limited resources. Hence, the SOMA attracted my attention.

Please note, I do not say that that SOMA application cannot be used in more powerful and modern environments.

dive 12-17-2017 09:22 PM

I have come up with this:

http://dawoodfall.net/slackbuilds/14.2/MPlayer-nox-svn/

It's a bit experimental. I disabled all that I could find that looked graphical in nature, but there was one font setting that it refused to build without, so I put that back in.

I put a package there too. Any problems, let me know here and I'll see what else I can strip from it.

Oh yeah it uses svn and git, so you'll need those installed to build it, or you could probably adjust it to use stock slack source I guess.

dive 12-17-2017 09:39 PM

Quote:

Originally Posted by Darth Vader (Post 5794401)
And I wondered what (fun) purpose I can invent, while dealing with really limited resources. Hence, the SOMA attracted my attention.

Interesting. The biggest difference between *nix and other OS's (well windows anyway) is just the pure amount of options that a command has. I'd like to do some networking stuff, maybe with netcat, and show how a webserver deals with GET requests etc. Could be intresting to get down to the bare bones so to speak. Set netcat in listen mode on port 80, fire up a browser and see what the output is. Send back some html also via netcat. Help demystify the web. Dunno, just a thought :)

Darth Vader 12-18-2017 03:12 AM

Quote:

Originally Posted by dive (Post 5794416)
Interesting. The biggest difference between *nix and other OS's (well windows anyway) is just the pure amount of options that a command has. I'd like to do some networking stuff, maybe with netcat, and show how a webserver deals with GET requests etc. Could be intresting to get down to the bare bones so to speak. Set netcat in listen mode on port 80, fire up a browser and see what the output is. Send back some html also via netcat. Help demystify the web. Dunno, just a thought :)

Brilliant ideas, thank you! :thumbsup:

Darth Vader 12-18-2017 03:29 AM

Quote:

Originally Posted by dive (Post 5794411)
I have come up with this:

http://dawoodfall.net/slackbuilds/14.2/MPlayer-nox-svn/

It's a bit experimental. I disabled all that I could find that looked graphical in nature, but there was one font setting that it refused to build without, so I put that back in.

I put a package there too. Any problems, let me know here and I'll see what else I can strip from it.

Oh yeah it uses svn and git, so you'll need those installed to build it, or you could probably adjust it to use stock slack source I guess.

Thanks! :thumbsup:

dive 12-18-2017 11:01 AM

Fixed a bug in the purge files function. Uploaded 3.0.1.

sunta 12-18-2017 11:33 AM

Have you tested this on -current dive, it isn't working for me. I can't listen to any station.

Darth Vader 12-18-2017 11:39 AM

@dive

And why SOMA refuse to run as root? You do not trust MPlayer on behaving as a good citizen? :D

dive 12-18-2017 11:41 AM

@sunta: I've just booted up my current VM and it works for me. The pulse driver seems very quiet, but hardware alsa works fine.

Are you getting any error (try starting it with -d for debug mode and read the mplayer output).
Have you tried other output devices?

@Darth Vader: I don't even trust myself :P

sunta 12-18-2017 11:49 AM

dive this what I'm getting, soma starts up but I get this.

https://i.imgur.com/WP74x3j.png


All times are GMT -5. The time now is 04:38 PM.