Thursday, January 12, 2012

Set nautilus-open-terminal to open xfce4-terminal

The nautilus-open-terminal is a nautilus extension that allows to open a terminal emulator on the current opened folder.
When installed in Xfce the extension opens xterm. To modify it so that it opens xfce4-terminal instead, run the following line in a terminal:
$ gsettings set org.gnome.desktop.default-applications.terminal exec /usr/bin/xfce4-terminal

Wednesday, January 4, 2012

Avoid brightness reduction

By default, when the computer is inactive for 120 seconds the screen brightness is automatically reduced. This is a great idea, except that the brightness is also reduced when playing a video file with VLC,  suddenly everything gets darker and is annoying to move the mouse every 2 minutes to restore the brightness level.

So to fix this all we have to do is get rid of this option. Open the Power Manager Settings and then on the "On AC" and "On Battery" sections select the Monitor tab. Adjust the third slider all the way to the left, as shown in the picture bellow.


Related posts:
Edit Xfce Settings with graphical interface

Tuesday, January 3, 2012

Set Gvim as default text editor

If you want to open text files in Gvim via file manager, open the ~/.local/share/applications/mimeapps.list and add the following to the [Added Associations] and [Default Applications] sections:

application/x-perl=gvim.desktop
text/plain=gvim.desktop
text/x-chdr=gvim.desktop
text/x-csrc=gvim.desktop
text/x-dtd=gvim.desktop
text/x-java=gvim.desktop
text/mathml=gvim.desktop
text/x-python=gvim.desktop
text/x-sql=gvim.desktop
text/x-tex=gvim.desktop

Thursday, December 22, 2011

Native Look and Feel for Netbeans on Xfce

Netbeans displays a different look and feel than the rest of the applications on Xfce.


To fix this, just add --laf GTK to the command that runs Netbeans (the command might different on your configuration), like so:
/bin/netbeans --laf GTK


Wednesday, December 21, 2011

Install Sun Java 6 SDK on Xubuntu 11.10

Since 11.10 (X)Ubuntu does not provide the sun-java-jdk package, to install it open a terminal window and type:

sudo apt-get install python-software-properties
sudo add-apt-repository ppa:ferramroberto/java
sudo apt-get update
sudo apt-get install sun-java6-jdk sun-java6-plugin


References:
http://superuser.com/questions/353983/how-do-i-install-the-sun-java-sdk-in-ubuntu-11-10-oneric

Install Clementine Music Player (Amarok 1.4 fork) in Xubuntu 11.10

Amarok 1.4 was the primary reason for me to be using Kubuntu a few years ago. Simply put, it was awesome: it was simple to use and advanced features were included.

When KDE4 was released in 2008, Amarok went to version 2. It suffered so many changes that I felt that it lost its essence.

Clementine Music Player is a fork of Amarok's version 1.4 to port it to Qt 4.


Despite the fact that it is a Qt application and Xfce has GTK as its framework, I was so excited to have the good old Amarok back that I gave it a try. It met all my expectations and it works very well on my Xubuntu 11.10 environment; the keyboard multimedia keys work out-of-the-box (may I remind you that gmusicbrowser, the default music player on Xubuntu 11.10, doesn't support multimedia keys).

Clementines desktop integration is very good
To install Clementine on Xubuntu just type on a terminal window:
sudo apt-get install clementine
or

Click to install Clementine


References:
http://www.techdrivein.com/2010/07/clementine-04-rocks-i-love-open-source.html
http://en.wikipedia.org/wiki/Amarok_(software)

Related:
Fix look of KDE/Qt applications in Xfce/Xubuntu

Wednesday, December 14, 2011

Fix look of KDE/Qt applications in Xfce/Xubuntu

On a fresh install of Xubuntu 11.10, Qt (KDE) applications don't use the same style as the other applications.

VLC using the wrong style
VLC using the desktop style (greybird)
To fix this just install libgnome2-0, via terminal:
sudo apt-get install libgnome2-0