Contrib

Post here your patches, tips, themes, scripts and so on.

MOC vs 24bit on FreeBSD with OSSv4

Forums:

For playing 24bit files on subj system, please implement the next patch:

[script] moc-scrobbler shell script

Forums:

Bash heads rejoice!

Since there is no lastfmsubmitd package in Debian stretch (yet). I took to making a script that could do my scrobbling with only a shell and cURL.

You will find the moc-scrobbler github repo here and the docs here.

Enjoy!

Notifications for gnome- shell

Forums:

I made this little script in python to show the song that plays using gnome- notificacions .
I have tested on Ubuntu 15.10 with gnome- shell 3.18.2 .

If someone proves I would like to give me your opinion.

My email is garvied1@gmail.com

Donwload link

https://goo.gl/HPDzyM

[theme] Nightshade (Mercurial)

Forums:

I'm having a ton of trouble with the Mollom spam posting system so I'll be just linking
a source repository.

https://bitbucket.org/dreyeth/nightshade

This is a link to my nightshade theme for MOC.

If you're a mod and see any of my other posts for my Nightshade theme on these
forums please delete them.

[script] GTK+ python script for mocp

Forums:

Hello!
I made a small script for mocp, kind of a GUI. It's written in python/gtk+. I wrote it today, let's say it's an alpha. Let me know if you need something like this, so I'll know if I should continue working on it. You can download it here: https://github.com/p00rt/gtmocp

[patch] fix build on systems with split ncurses/tinfo libraries

Forums:

Hi there,

On some systems, the ncurses library is split in two libraries: ncurses and tinfo. This makes moc fail to build since some of the symbols it thinks are in libncurses are in fact in libtinfo (e.g., cbreak).

This patch adds detection in m4/mp_with_curses.m4 for the missing cbreak symbol and tries to add -ltinfo to the required libraries if it is indeed missing.

Note that the code appropriately adds -ltinfo or -ltinfow depending on the selected ncurses library. I do not know whether the curses library is affected so I left it untouched.

Please review!

Thanks,
LaomaiWeng


diff -u a/configure.in b/configure.in
--- a/configure.in
+++ b/configure.in 2015-11-20 09:38:51
@@ -349,7 +349,7 @@
AC_DEFINE([HAVE_SET_ESCDELAY], 1, [Define if you have set_escdelay.]),
[AC_CHECK_FUNC([setenv], ,
AC_MSG_ERROR([Required function setenv not found.]))])
+ EXTRA_LIBS="$EXTRA_LIBS -l$CURSES_LIB $TINFO_LIBS"
- EXTRA_LIBS="$EXTRA_LIBS -l$CURSES_LIB"
fi

dnl popt
diff -u a/m4/mp_with_curses.m4 b/m4/mp_with_curses.m4
--- a/m4/mp_with_curses.m4
+++ b/m4/mp_with_curses.m4 2015-11-20 09:38:24
@@ -24,6 +24,7 @@
[Don't use ncursesw (UTF-8 support)])],,)

CURSES_LIB=""
+ TINFO_LIBS=""

if test "$with_ncursesw" != "no"
then
@@ -40,6 +41,11 @@
AC_DEFINE(HAVE_NCURSES_H, 1, [Define if you have ncursesw/curses.h])
AC_DEFINE(HAVE_NCURSESW, 1, [Define if you have libncursesw])
CURSES_LIB="ncursesw"
+ AC_CHECK_FUNC([cbreak],
+ [],
+ [AC_CHECK_LIB([tinfow], [cbreak],
+ [TINFO_LIBS="-ltinfow"],
+ [AC_MSG_ERROR([Required function cbreak not found.])])])
fi
fi

@@ -69,7 +75,13 @@
then
AC_DEFINE(HAVE_NCURSES_H, 1, [Define if you have ncurses.h])
CURSES_LIB="ncurses"
+ AC_CHECK_FUNC([cbreak],
+ [],
+ [AC_CHECK_LIB([tinfo], [cbreak],
+ [TINFO_LIBS="-ltinfo"],
+ [AC_MSG_ERROR([Required function cbreak not found.])])])
fi
fi
+
LIBS="$mp_save_LIBS"
])dnl

[theme] Almost minimal transparent `tty_theme`

Forums:

Good day,

You will find below a theme I wrote because I happen to use a variety of terminals which sometimes makes fully colored themes hard to use. It is a slight evolution of fully colorless theme where elements where only highlighted with bold fonts and reverse video.

The very few touches of green and red make me feel it is quite elegant. Feel free to adapt with your favourite colors. :-)

The usage of bold and colors simultaneously makes it best suited for dark backgrounds with clear fonts. By suppressing the combo bold + colored, you should obtain something adapted on clear backgrounds too.

Enough words, now the theme:
background = default default
frame = default default
window_title = default default
directory = default default
selected_directory = default default reverse
playlist = default default
selected_playlist = default default reverse
file = default default
selected_file = default default reverse
marked_file = green default bold
marked_selected_file = green default reverse,bold
info = default default
selected_info = default default bold,reverse
marked_info = green default bold
marked_selected_info = green default bold,reverse
status = default default
title = default default bold
state = default default
current_time = default default bold
time_left = default default bold
total_time = default default bold
time_total_frames = default default
sound_parameters = default default bold
legend = default default
disabled = red default
enabled = green default bold
empty_mixer_bar = default default
filled_mixer_bar = default default reverse
empty_time_bar = default default
filled_time_bar = default default reverse
entry = default default
entry_title = default default
error = red default
message = green default
plist_time = default default

Best Regards.

[patch] builtin support to fetch lyrics

Forums:

I added two more options to support fetching lyrics. By default it uses lyrics.wikia.com.

https://github.com/christophgysin/moc/commit/17e041cc07b72284c800acc178cb8a792c54eb1d

If you happen to run archlinux, here's a package with the patch included:

https://aur.archlinux.org/packages/moc-lyrics-git/

Pages

Subscribe to RSS - Contrib