Post here your patches, tips, themes, scripts and so on.
Submitted by sagitter on Wed, 2015-09-30 14:55
Hi all.
MOC's RPMs for Fedora 22+ are not available yet on RPMFusion because they're trying migrate to a new infrastructure.
If someone wishes to install MOC pre-packaged for Fedora 22/23, please leave me a feedback in this forum thread.
Submitted by kotzenhuber on Wed, 2015-06-03 16:51
Hi folks. I found myself tweaking console stuff again, and since nowadays I try to sync my configs centrally, I decided that I need a definite moc theme once and for all.
Since most of the time I use transparent bright shaded terminals, this very simplistic theme suits my needs.
# transparent_forlightbg theme for MOC by gestos
# 06/03/15
# transparent theme for light backgrounds
background = default default normal
frame = default default normal
window_title = blue default bold
directory = black default bold,underline
selected_directory = white black bold
playlist = blue default normal
selected_playlist = white black bold
file = black default normal
info = black default blink
selected_file = cyan black bold
selected_info = cyan black bold
marked_file = blue default bold
marked_info = blue default bold
marked_selected_file = blue black bold
marked_selected_info = blue black bold
status = green default bold
title = green default normal
state = green default bold,blink
current_time = blue default bold
time_left = cyan default normal
total_time = black default bold
time_total_frames = black default normal
sound_parameters = black default bold
legend = black default normal
disabled = black default bold
enabled = magenta default bold
empty_mixer_bar = blue default bold
filled_mixer_bar = white cyan bold
empty_time_bar = white default normal
filled_time_bar = blue grey normal
entry = black default normal
entry_title = black cyan normal
error = red default normal
message = blue default normal
plist_time = white cyan bold
Submitted by SrFreak on Fri, 2015-05-22 08:42
Yesterday, I wrote a post into "Wishlist" about sharing into Twitter what I'm playing at this moment (link to the post)
User tomaszg tells me about how scripts works in MOC, and I began to recover another script for tweeting from console in Linux, wrote before Twitter API changes.
Using third-party scripts (Ruby and Shell, ftw!) I write another scripts. Fully functional and simple. I want to remove third-party scripts in the future, but now...
Code of the script and documentation about how it works (config, install, etc) are available on GitHub.
https://github.com/JuanjoSalvador/moc-twitter-sharing
Submitted by SrFreak on Thu, 2015-05-21 17:03
Hi everybody! I've been using MOC about 2 years ago, but I always thought that the project was abandoned. It's a great surprise to discover this. I have a theme that I've been using since the first time I used MOC. It was made by me. With transparent background and green text (just like my Linux console).
Screenshot here
Download theme here (GitHub Gist)
Submitted by hakerdefo on Sun, 2015-05-17 11:19
A little bash script to get the lyrics of currently playing song. perl and curl are the only two dependencies. Save the script somewhere in your path with the name 'moc-lyrics' and give it permission to execute. Enter moc-lyrics in your terminal and it will show you the lyrics of current moc song. I've created a GitHub repo as well. You can check it out for any updates and/or detailed installation instructions,
https://github.com/hakerdefo/moc-lyrics
Here is the script,
#!/bin/sh
MOCSTATE=$(pgrep mocp)
if [[ -z "$MOCSTATE" ]]; then
echo "MOC Is Not Running!"
exit
fi
SONGTITLE=$(mocp -i | grep 'SongTitle:' | sed -e 's/^.*: //');
ARTIST=$(mocp -i | grep 'Artist:' | sed -e 's/^.*: //');
ALBUM=$(mocp -i | grep 'Album:' | sed -e 's/^.*: //');
if [[ -z "$SONGTITLE" ]]; then
echo "MOC Is Not Playing Anything!"
else
title=$(echo "$SONGTITLE" | perl -MURI::Escape -ne 'chomp;print uri_escape($_),"\n"')
artist=$(echo "$ARTIST" | perl -MURI::Escape -ne 'chomp;print uri_escape($_),"\n"')
song=$(curl -s "http://makeitpersonal.co/lyrics?artist=$artist&title=$title")
printf "$SONGTITLE - $ARTIST - $ALBUM\n$song" | less
fi
Cheers!!!
Submitted by jo_link_noir on Sun, 2015-04-05 05:19
Hi,
Looking at the sources, I noticed a double call file_info() in playlist.c
--- playlist.c.old 2015-04-05 06:59:34.089782732 +0200
+++ playlist.c 2015-04-05 06:59:44.269822667 +0200
@@ -673,7 +673,6 @@
if (plist->items[num].file) {
rb_delete (&plist->search_tree, file);
free (plist->items[num].file);
- plist->items[num].type = file_type (file);
}
plist->items[num].file = xstrdup (file);
The next line already contains `plist->items[num].type = file_type (file);`
Submitted by benaryorg on Fri, 2015-03-13 14:59
Hi everybody,
I just noticed, there is a feature which is missing in every music player I know.
It is to choose a track to continue after the current one has finished, so you can skip some songs, if you don't like them.
In shuffle mode it would mean, to don't interrupt the current track _and_ choose to hear your favorite, or in normal mode, you could go to a specific part in your Playlist without changing it entirely.
I don't know if you would like this feauture, but I think it could be quite useful, in relation to the time to implement it.
Greetings,
benaryorg
Submitted by SkymaxPlay on Fri, 2014-12-12 14:38
Hello,
I have two questions;
1) whether power can listen to music from youtube via a link?
2) how to capture sound with MOC by means of virtual audio cable?
When I set ALSA or PulseAudio in teamspeak 3, i see errors, because I need virtual audio cable.
if anyone knows what might not work well let him write.
Pages