Author Archives: l3on

The Unity indicator-lockkeys


indicator-lockkeys is just another indicator for Lock Keys with fancy icons, which allows you enabling and disabling Caps Lock and Num Lock directly from the Graphical User Interface.


Use the following ppa:

sudo add-apt-repository ppa:l3on/indicator-lockkeys
sudo apt-get update
sudo apt-get install indicator-lockkeys

Then run indicator-lockkeys from the command-line or logout and login again in Unity.


Checkout the git repository:

git clone

Install the deps:

sudo apt-get install valac libgtk-3-dev libappindicator3-dev libcaribou-dev libgtk-3-bin

Build and install system wide:

cd indicator-lockkeys
sudo make install

Volume Wheel – Gnome Videos (Totem) plugin

volumewheel lets you to use the mouse wheel to control the volume level in Totem (>= 3.12)


Install these dependencies:

sudo apt-get install gir1.2-clutter-1.0 gir1.2-gtkclutter-1.0 gir1.2-gtk-3.0 gir1.2-peas-1.0 gir1.2-pango-1.0

Download the repository and move the volumewheel directory to:


and then you can enable it in Totem → Preferences → Plugins → Volume Wheel

Monokai Theme for Gedit (GtkSourceView)

Monokai for Gedit is a theme for GtkSourceView based on Monokai Extend for SublimeText.

Monokai in Gedit

You can download it here:

Then move the monokai-extend.xml file into your ~/.local/share/gtksourceview-3.0/styles/ and enable it by selecting “Monokai Extended in Gedit → Preferences → Font & Colors

Goopg – GPG for Gmail in Chrome and Chromium

icon128During the last few weeks I have been working on Goopg, a new extension for the Chrome and Chromium browser which allows one to sign and verify emails directly from the Gmail web page.

It consists mainly in two parts: an extension, which gets information from the Gmail web page, and a plugin (written in python) which silently verifies the emails, signs the outgoing messages and sends them via the Gmail APIs and a SMTP connection. For more information about the architecture, see the project documentation.

To install it you have to:

  1. Install the Goopg extension from the Chrome web store
  2. Install the plugin package using the following PPA:
sudo add-apt-repository ppa:team-goopg/goopg
sudo apt-get update
sudo apt-get install goopg-chromium

Install the package goopg-chrome if you use Chrome.


The project is Open Source, released under the GPL-3 license and it is not affiliated with Google.

Thanks to Alessio Treglia, Andrea Colangelo, Riccardo Padovani, Mattia Rizzolo for testing and to Paolo Rotolo for the icon.

Future works:

  • Support to Firefox and to other browsers
  • Support to other Operating System, like Mac/OSx
  • Support to encryption/decryption

If you like this project, please consider a donation

Use GTK-3.0 Dark variant theme for your GTK-2 terminal emulator

This is a workaround to force your preferred terminal emulator to use the Dark variant of Adwaita theme in GNOME >= 3.12 (maybe less, but untested).

Just add these lines to your ~/.bashrc file:

# set dark theme for xterm emulators
if [ "$TERM" == "xterm" ] ; then
 xprop -f _GTK_THEME_VARIANT 8u -set _GTK_THEME_VARIANT "dark" -id `xprop -root | awk '/^_NET_ACTIVE_WINDOW/ {print $5}'`

This is how it works with Terminator:





Ubuntu Themes for GNOME 3.12

Ubuntu Themes with support for GNOME >= 3.12


sudo add-apt-repository ppa:l3on/ubuntu-themes-gnome-shell
sudo apt-get update
sudo apt-get install light-themes




For more info, check out lp:~l3on/ubuntu-themes/gnome-shell-fixes.

The patch was applied to the Ubuntu Themes development branch.
The GNOME environment comes from the gnome3-staging ppa.

apt-venv — apt virtual environment

Quickly collect information about packages in different Debian and Ubuntu releases.

apt-venv creates a sort of virtual environments in $HOME/.local/share/apt-venv (one for each release), able to exec bash sessions where apt thinks to be in another distro/release. In these sessions a $APT_VENV variable is set and points out the release name in use.

If you want to customize environment you can modify files in:


apt-venv is already available in Debian and Ubuntu utopic unicorn.

Use case

Show which version of some package is in Debian and Ubuntu, simply:

# init apt database for releases
for release in unstable stable trusty lucid ; do
    apt-venv $release -u

# do what you want
for release in unstable stable trusty lucid ; do
    apt-venv $release -c "apt-cache madison base-files | grep Source | tail -1"

If you do not specify -c option you will entry an interactive shell.


$ apt-venv -h
usage: apt-venv [-h] [-D DEBUG] [-v] [-d] [-c COMMAND] [-l] [release]

positional arguments:
  release               the debian/ubuntu release

optional arguments:
  -h, --help            show this help message and exit
  -D DEBUG, --debug DEBUG
                        set debug level
  -v, --version         show program's version number and exit
  -c COMMAND, --command COMMAND
                        exec the given command instead of entry the interactive shell
  -d, --delete          delete venv for release
  -l, --list            list all venv installed in your system
  -u, --update          update the apt indexes

Fluxbox Light Themes

Fluxbox Light Themes is a porting of Ubuntu Themes for Fluxbox.


You can choose to use this ppa or take directly the deb package.
Alternatively you can download the archive and install themes manually by copying Ambiance and Radiance into your local Fluxbox styles folder:

cp -r Ambiance ~/.fluxbox/styles
cp -r Radiance ~/.fluxbox/styles


Remember to update these settings in your ~/.fluxbox/init:

session.*.titlebar.left:    Close Minimize Maximize



Ambiance with menu


Radiance with menu

Simple workaround to keep PC alive playing songs in Amarok and Gnome

During last months, I must confess, I got a new music player: Amarok.

Now, I would not fall in flame, but Rhythmbox seems still incomplete (and a bit bugged) if compared to Amarok. And, sadly, this is a fact, not an opinion (lol, and this is flame).

Anyway.. Amarok is not able to keep your PC alive when plays something, so if you set a hibernate time in gnome-settings you will see your PC going to sleep while you’re listening some song. And this is really bad..

This little script checks if Amarok is running (and it’s playing something as well) and set hibernate time to 0 (that means: no hibernate) in gnome-settings.


# you MUST set this accoring with your QT installation

# change these as you wish
# daemon time in seconds
# time to hibernate in seconds

# do not touch these
QDBUS_CMD="org.mpris.MediaPlayer2.amarok /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlaybackStatus"

function amarok_on() {
  dconf write $KEY 0

function amarok_off() {
  dconf write $KEY $TIME_HIBERNATE

function check() {
  if [ "$STATUS" == "Playing" ] ; then

while `sleep $TIME_DAEMON` ; do check ; done

Obviously, you have to run this script when a gnome session starts (Startup applications).