Image 01


Greg Nicholson

GTK3 Themes by ceramicm 121 comments

On the menu-item borders – and in my defence :) –

In my modded version of Aldabra 0.7.5, border shades of 1.0 still yielded a dark border and I found 1.5 was the magic number that looked flat.

In 3.2.1, border shades of 1.0 (or absent) look flat. This makes sense, but its odd that it's changed.

Anyhow, yes. The border shades ought to be removed.

...And menu separators are indeed gone from 3.2.1. This is on Ubuntu precise (which at this stage is practically identical to Ubuntu 11.10.)

Aldabra 0.7.5 and 3.2.1 also expose a bug in LibreOffice: the text of selected menu titles stays white. - Nov 11 2011

GTK3 Themes by ceramicm 121 comments

I've packaged up a few modifications: (MediaFire is remarkably easy to use!)

For fidelity to Adwaita:

* Hovered menu items in gtk2 have a flat blue highlight – no darker border.
—I achieved this by adding “engine "murrine" {border_shades = {1.5, 1.5} }” to style "menu_item_white" and style "menu_item_black" in gtk-2.0/gtkrc.

* Menu bars in gtk2 can be dragged to move the window.
—I added “GtkToolbar::window-dragging=1” to gtk-2.0/gtkrc under the Style Properties section.

* gtk3 controls are drawn using whatever version of Adwaita you have installed.
—I replaced the gtk-3.0 folder with a symlink to /usr/share/themes/Adwaita/gtk-3.0.

For my own personal preference:

* Title bars are removed from maximised windows.
—I achieved this by changing the frame_style_set definitions in metacity-theme-2.xml and metacity-theme-3.xml so that the normal_style_set uses the border_focused and border_unfocused styles when state="maximized". I also changed frame_geometry name="borderless" in the same files so that left_width, right_width, bottom_height and title_vertical_pad all have values of 0.
—Because this is done in the metacity theme, maximus and similar utilities aren't required, and this should work in Gnome Shell, Gnome Classic, Gnome 2 and Unity.
—If you don't like this behaviour, you can still install this package, and choose to use the Adwaita window theme in Advanced Settings (the Gnome tweak tool).

The only infidelities left in gtk2 that I've noticed are:

* When hovering a menu-item, the keyboard shortcut text becomes white. In gtk3 it stays grey.

* Some drop-down boxes still show up-and-down arrows, unlike in gtk3. These arrows are very small and don't look very good.

* Hovered toolbar buttons all have a button background, rather than Adwaita's light glow.

I release all of my changes into the public domain. You may freely use, share, change and redistribute. If you wish to give me credit, my name and address are Greg K Nicholson, - Oct 16 2011

GTK3 Themes by ceramicm 121 comments

(Note that Ubuntu 11.10 users will have to install the package ‘gtk2-engines-pixbuf’ for the toolbar trough to appear.)

It should be possible to just include symlinks to /usr/share/themes/Adwaita for gtk-3.0, backgrounds, and metacity-1, rather than repackaging those parts of Adwaita.

A further improvement to remove the border from highlighted menu-items:

style "menu_item_white" {
xthickness = 2
ythickness = 3

fg[PRELIGHT] = @selected_fg_color
text[PRELIGHT] = @selected_fg_color

engine "murrine" {
border_shades = {1.5, 1.5}


style "menu_item_black" {
xthickness = 2
ythickness = 3

fg[PRELIGHT] = @text_color

engine "murrine" {
border_shades = {1.5, 1.5}

- Oct 15 2011

Amarok 1.x Scripts by maacruz 274 comments

This seems to have magically fixed itself in an update to Ubuntu. - Feb 28 2008

Amarok 1.x Scripts by maacruz 274 comments

Using replaygain 1.0.0-beta5 with Amarok 1.4.8 (“using KDE 3.5.9”) on the latest Ubuntu (Gnome) Hardy (8.04 development branch), I get the following error when running the script:

The script '' exited with error code: 1

/bin/sh: kdialog: not found
Traceback (most recent call last):
File "/home/greg/.kde/share/apps/amarok/scripts/amarok_replaygain/", line 615, in <module>
class Scan:
File "/home/greg/.kde/share/apps/amarok/scripts/amarok_replaygain/", line 616, in Scan
streamdb ='streamdb.db')
File "/usr/lib/python2.5/", line 225, in open
return DbfilenameShelf(filename, flag, protocol, writeback)
File "/usr/lib/python2.5/", line 209, in __init__
Shelf.__init__(self,, flag), protocol, writeback)
File "/usr/lib/python2.5/", line 82, in open
mod = __import__(result)
File "/usr/lib/python2.5/", line 5, in <module>
import bsddb
File "/usr/lib/python2.5/bsddb/", line 51, in <module>
import _bsddb
ImportError: No module named _bsddb

I believe I have all of the dependencies installed.

It was working fine until a recent update to Hardy, which I think installed Linux kernel 2.6.24-10.

I was wondering if you might know what the problem is. - Feb 27 2008

Amarok 1.x Scripts by attendant 191 comments

Using Wiki-Lyrics 0.11.3 with Amarok 1.4.6 ("using KDE 3.5.6") on Ubuntu 7.10, I get:
Quote:private method `gsub' called for nil:NilClass
/usr/lib/ruby/1.8/cgi.rb:342:in `escape'
/home/greg/.kde/share/apps/amarok/scripts/wiki_lyrics/lyrics_LeosLyrics.rb:40:in `build_song_add_url'
/home/greg/.kde/share/apps/amarok/scripts/wiki_lyrics/lyrics.rb:95:in `normalize_lyrics_data'
/home/greg/.kde/share/apps/amarok/scripts/wiki_lyrics/lyrics.rb:105:in `normalize_lyrics_data'
/home/greg/.kde/share/apps/amarok/scripts/wiki_lyrics/lyrics.rb:180:in `lyrics_direct_search'
/home/greg/.kde/share/apps/amarok/scripts/wiki_lyrics/lyrics.rb:333:in `lyrics_full_search'
/home/greg/.kde/share/apps/amarok/scripts/wiki_lyrics/amarok/amaroklyricsmanager.rb:191:in `lyrics_full_search'
/home/greg/.kde/share/apps/amarok/scripts/wiki_lyrics/amarok/amaroklyricsmanager.rb:189:in `each'
/home/greg/.kde/share/apps/amarok/scripts/wiki_lyrics/amarok/amaroklyricsmanager.rb:189:in `lyrics_full_search'
/home/greg/.kde/share/apps/amarok/scripts/wiki_lyrics/amarok/amarokscript.rb:98:in `on_fetch_lyrics'
/home/greg/.kde/share/apps/amarok/scripts/wiki_lyrics/amarok/amarokscript.rb:258:in `run_worker'
/home/greg/.kde/share/apps/amarok/scripts/wiki_lyrics/amarok/amarokscript.rb:243:in `loop'
/home/greg/.kde/share/apps/amarok/scripts/wiki_lyrics/amarok/amarokscript.rb:243:in `run_worker'
/home/greg/.kde/share/apps/amarok/scripts/wiki_lyrics/amarok/amarokscript.rb:200:in `main'
/home/greg/.kde/share/apps/amarok/scripts/wiki_lyrics/amarok/amarokscript.rb:197:in `initialize'
/home/greg/.kde/share/apps/amarok/scripts/wiki_lyrics/amarok/amarokscript.rb:197:in `new'
/home/greg/.kde/share/apps/amarok/scripts/wiki_lyrics/amarok/amarokscript.rb:197:in `main'
Ta - Jun 24 2007