Tag Archives: gnome

Volume Wheel – Gnome Videos (Totem) plugin

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

volumewheel

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:

~/.local/share/totem/plugins/

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: https://gist.github.com/LeoIannacone/71028cc3bce04567d77e

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

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}'`
fi

This is how it works with Terminator:

Before

Before

After

After

Ubuntu Themes for GNOME 3.12

Ubuntu Themes with support for GNOME >= 3.12

Install:

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

Preview:

Ambiance_gnome-shell

Radiance_gnome-shell

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.

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.

#!/bin/bash

# you MUST set this accoring with your QT installation
QDBUS=/usr/lib/x86_64-linux-gnu/qt4/bin/qdbus

# change these as you wish
# daemon time in seconds
TIME_DAEMON=10
# time to hibernate in seconds
TIME_HIBERNATE=600

# do not touch these
KEY=/org/gnome/settings-daemon/plugins/power/sleep-inactive-ac-timeout
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() {
  STATUS=`$QDBUS $QDBUS_CMD`
  if [ "$STATUS" == "Playing" ] ; then
    amarok_on
  else
    amarok_off
  fi
}

while `sleep $TIME_DAEMON` ; do check ; done

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