Elric's random thoughts in idle times

"Why stop now, when I'm just starting to hate it?" – Marvin the robot

Posts Tagged ‘linux

Ncmpcpp config example

leave a comment »

Configuring ncmpcpp can be pretty hard, and I benefited from people who posted their config file. I’m just posting my current configuration, omitting the default configuration values present in the config file, which are commented. Here, you’ll only see what is different from the default config, as the config file is HUGE. I also deleted most comments, so you’ll need to open ncmpcpp’s example config file to see the comments and understand what’s going on.

The colors are simple (I use few), and look a bit like aptitude’s or my mutt’s color layout.

###############################################
## Omar config ##
####################################################
#
##### connection settings #####
#
## set it in order to make tag editor and renaming files work properly
#
mpd_host = "localhost"
#
mpd_port = "6600"
#
mpd_music_dir = "~/Music/"

# I had to set this to avoid a bug which slows down viewing artist's list
mpd_communication_mode = "polling" (polling/notifications)

##### music visualizer #####
##
## Note: In order to make music visualizer work you'll
## need to use mpd fifo output, whose format parameter
## has to be set to 44100:16:1. Example configuration:
## (it has to be put into mpd.conf)
## This is the simplest way to configure it. ncmpcpp has to
## be compiled with support for it.
visualizer_fifo_path = "/tmp/mpd.fifo"

## Note: To enable spectrum frequency visualization
## you need to compile ncmpcpp with fftw3 support.
##
#
visualizer_type = "spectrum" (spectrum/wave)

##### song format #####

song_list_format = "{%a - }{%t}|{$8%f$9}$R{$8(%l)$9}"

song_library_format = "{$4%n - }{%t}|{%f$9}"

media_library_album_format = "{%b}|$D"

## Note: Below variables are for alternative version of user's interface.
## Their syntax supports all tags and colors listed above plus some extra
## markers used for text attributes. They are followed by character '$'.
## After that you can put:

alternative_header_first_line_format = "$b$8$aqqu$/a {%t}|{%f} $atqq$/a$9$/b"
#
alternative_header_second_line_format = "{{$5$b%a$/b}{ - $b%b}{ (%y)}}|{%D$9}"

## Note: Below variables also supports
## text attributes listed above.

now_playing_prefix = "$b"

now_playing_suffix = "$/b"

selected_item_prefix = "$b"

selected_item_suffix = "$/b"

##### columns settings #####

song_columns_list_format = "(25)[blue]{a} (25)[white]{b} (40)[white]{t} (5)[yellow]{l}"

##### various settings #####

playlist_display_mode = "columns" (classic/columns)

browser_display_mode = "columns" (classic/columns)

incremental_seeking = "yes"

user_interface = "alternative" (classic/alternative)

header_visibility = "yes"

statusbar_visibility = "yes"

header_text_scrolling = "yes"

## How shall key_screen_switcher work?

screen_switcher_mode = "sequence: 2 -> 5"

## Note: You can define startup screen for ncmpcpp
## by choosing screen number from the list above.
##
startup_screen = "5"

clock_display_seconds = "yes"

display_bitrate = "yes"

empty_tag_marker = "----"

enable_window_title = "yes"

##### lyrics support #####
##
## supported lyrics databases:
##
## - 1 - lyricsplugin.com
##
#
lyrics_database = "1"
#
external_editor = "vim"

##### colors definitions #####

colors_enabled = "yes"

empty_tag_color = "red"

header_window_color = "cyan"

volume_color = "yellow"

main_window_color = "white"

color1 = "blue"

color2 = "white"

main_window_highlight_color = "blue"

progressbar_color = "blue"

statusbar_color = "yellow"

alternative_ui_separator_color = "blue"

active_column_color = "white"

window_border_color = "green"

active_window_border = "white"

This is an image showing the current layout and colors with this configuration.

Enjoy!

Written by elric80

November 25, 2010 at 1:53 pm

Posted in linux, music

Tagged with , , ,

Debian Squeeze nautilus-dropbox.deb i386 package

with 17 comments

Edit 2: Official Debian dropbox package on the way :) http://raphaelhertzog.com/2011/06/06/official-debian-ubuntu-packages-for-nautilus-dropbox/

Edit: The package nautilus-dropbox is now available in Hadret’s Debian PPA (among other interesting stuff). You might be better off using it.

If you are looking for the amd64 version, go here.

This is the nautilus-dropbox package built on Debian Squeeze i386.

nautilus-dropbox_0.6.3_i386.deb

It will call the real installation and that’s about it. Don’t be mistaken by the version number, it will download the latest version, just hover over the notification icon and you’ll see the real version. You can upgrade by just deleting the appropriate folder in your home directory.

Enjoy!

Written by elric80

October 6, 2010 at 1:31 pm

Posted in debian, gnome, linux

Tagged with , , , ,

John Goerzen orphans offlineimap

leave a comment »

There are things that break my heart badly… such as this. This tool is by far the fastest imap sync tool I’ve ever used (including the ones integrated in apps such as Thunderbird), works great on my poor internet connection, and I love to use it with Mutt.

Luckily enough, the tool is far enough for a regular gmail account, and as such I will keep it till it starts segfaulting due to an incompatible dependency upgrade :***

So… thanks John Goerzen for the time spent on this fantastic tool. Sometimes I wish I had studied programming instead of language so I could maintain apps that I like and get unmaintained.

And I also hope you (John) will become unsatisfied with imap mail fetchers once again :)

Written by elric80

June 21, 2010 at 12:03 pm

Posted in debian, linux

Tagged with , , , , , ,

Better notify-osd integration on non-Ubuntu systems

leave a comment »

I really like some of the simplifications Ubuntu throws into the desktop. However, a lot of these new things (most) are only well integrated in their desktop. One example is notify-osd. It installs just fine from ppa under Debian, but both bright and volume controls may not work as expected.
I longed for a better integration with my Debian system, as I don’t like regular gnome notifications. Thankfully, there are scripts :) I found both in the Archlinux forums (some forums!).

This is the script that allows to change the volume using notify-osd.
http://bbs.archlinux.org/viewtopic.php?id=69589 Check up post number 10. (Thanks to abarilla for the original script).

Save the script as “vol”, cp to /usr/bin (or wherever in the PATH). Next, configure volume shortcuts under System -> Pref -> Keyb Shortcuts, being the commands, i.e., “vol up” “vol down” and “vol mute”. You might have to reconfigure your actual volume shortcuts so they won’t clash with the new ones.

The one for brightness is available at the following address. (Thanks to xabz).
http://foro.archlinux.cl/viewtopic.php?id=61,
Do cat /sys/class/backlight/acpi_video0/actual_brightness with maximum brightness, and replace the number 9 in the script with whatever value it returns.
Now set keyboard shortcuts.

The problem here is that Gnome may “forget” your shortcuts for brightness or volume if they are special keys “hardware” shortcuts…. I only suffer it with brightness on my laptop.

If you use compiz, you may encounter an issue with notify-osd flickering when it fades in or out. This is because notify-osd integrates its effects so they are the same regardless of the composite manager. The way to avoid such flickering is to add & !(name=notify-osd) in the “Window Match” section in ccsm for the animations that you use, and that may affect it.

Last but not least, I found this instructions in webupd8.org to install a configurable notify-osd. Add the launchpad ppa and your good to go!

Enjoy!

Written by elric80

May 17, 2010 at 5:19 pm

Posted in debian, gnome, linux

Tagged with , , , , ,

gnome-mplayer Nautilus preview in Debian

leave a comment »

I wanted to get rid of totem for good, and stick to just one app for videos on gnome. I chose mplayer (and its frontend gnome-mplayer), as I already used smplayer on KDE/Arch. One thing I really like about nautilus/totem is the audio/video details (as well as audio preview) and I wanted that if possible. I found our gnome-mplayer offers it, yet Debian’s gnome-mplayer package isn’t compiled with nautilus support.

Since I wanted it badly (and I was bored), I rebuilt the package from debianized sources with “apt-get source”, but setting –enable-nautilus in debian/rules, and installed libnautilus-extension-dev, a build-dep not stated on Debian’s package control files. Besides that, the package is as it is from the repo in sid, built using proper Debian tools and following this awesome tutorial in Debian’s forums. Since it’s already built, I thought to share. Feel free to download. gnome-player 0.9.9.2 built on Squeeze.

gnome-mplayer_0.9.9.2-1_amd64.deb

gnome-mplayer_0.9.9.2-1.1_i386.deb

This enabled the preview page in nautilus properties window as in the picture above. In order to gain audio preview by hovering the mouse (with nautilus icon view) over the icons after removing totem, I had to install gstreamer0.10-tools from the repos. Some old posts state mpg321/123 and vorbis-tools are required for this, yet it didn’t work for me.

Thanks to all the mplayer and diverse frontends devs for their efforts!
Enjoy!

Written by elric80

March 3, 2010 at 9:58 pm

Posted in debian, gnome

Tagged with , , , , ,

po4a. Gestión del formato y las traducciones de documentación

leave a comment »

po4a es un programa que me lleva fascinando un tiempo. Tanto que he acabado actualizando su extenso y completo manual, lo cual me ha llevado a aprender mejor su uso. Así mismo, es mi herramienta predilecta en el proyecto vim-doc-es, del cual formo parte (sin desmerecer el excelente translate toolkit).
Ayer mismo salió la versión 0.37 de po4a, que trae importantes mejoras para aquellos desarrolladores que desean localizar los documentos de ayuda (generalmente páginas de manual) de su programa. Read the rest of this entry »

Written by elric80

November 21, 2009 at 3:05 pm

Posted in debian, l10n, linux

Tagged with , , , , ,

Gmpc 0.19 Review

leave a comment »

I’ve installed or built and tried almost every music player app (but for ncurses one :)
available in GNU/Linux systems. Dead projects, whatever fell into my hands. I like to have
a heavy full-featured application, particullary when I’m just listening to music and
searching for new stuff over the internet, I love to see reccommended last fm’s artists, wiki stuff, links, biography, etc….

Because of this I’ve always had Songbird or Banshee + a light app. Up to now.

After a long time, I grew tired of Songbird’s heaviness. I still keep an eye on it, and I love to see how new features are constantly added, it’s just too heavy on my laptop when I have several other apps running, and it’s database is pretty slow (compare with Rhythmbox or the interesting gmusicbrowser ). On the other hand, I’ve always used mpd and its various interfaces as my light alternative for music reproduction.

I had tried gmpc a couple of years ago, and while I wasn’t particullary fond of the
interface, I did like it as it contained several features that the other mpd players don’t offer. Anyway, I ditched it for X app.
However, I’ve been following it again since latest 0.18, and now 0.19, and I have to say I am impressed. The metadata browser is a much better alternative to the last fm’s information area in Songbird’s mashtape plugin, plus providing the reccommended artists list.

gmpc

It also offers integration with Jamendo and Magnatune,  file browsing (much like Ario or Sonata), album view (for us who liked MpdBrowser), and the awesome wikipedia look.

gmpc2

I really like the last one, as I find the browser in Songbird too bloated. It’s a great
idea, but I need less, or more from a web browser. I would like to see it becoming something like this, a browser oriented to music related  websites. Leaves you with little choice but to browse your music related stuff. Plus, it loads pages fast!

You may have noticed that the capabilities present in Gmpc are also available in other apps. What I love about it is that they are ALL present in gmpc and well implemented. Plus, the app is still light, not showing up in top when not focused or in use, and eating an approximate 10% cpu usage (mpd included) at the almost unseen half-second peaks. You can also run “easy commands” in gmpc to control it and edit your songs metadata, and as a final note, it fits perfectly in the Gnome desktop, no need to skin it (neither the chance).

Nowadays, Gmpc is my full-featured app AND my light app of choice. Give it a try if you’ve
never used mpd or gmpc, or install it again if you didn’t like it the first time. Sure you’ll keep it.

Gnome Music Player Client Homepage

Written by elric80

October 18, 2009 at 12:10 am

Posted in linux, music

Tagged with , , ,