Oh, so close

Edit: Unfortunately, the images originally included in this post are gone, because of hosting problems in late 2009. My apologies.

With the remains of my Ubuntu X-based system I decided to take a day and smooth out something that looks like Windows 2000 or maybe the Windows XP Classic desktop theme. Why? I don’t know. I don’t really like the look, but things like this are sometimes useful to someone.

I can get close, but there are a couple of things that seem just slightly off kilter.

That, of course, is IceWM on Ubuntu 8.04, and not Windows. There are some obvious discrepancies — for one thing, I can’t find a way to un-bezel the buttons on the toolbar only. I want the taskbar to have a raised effect, but not the “quicklaunch bar.” The XP machine I use (rarely) at work has a flat quicklaunch bar, not a raised one. Perhaps that can be themed out.

There’s also a strange antialiasing happening with IceWM’s title bars and program menus. I asked X to turn off antialiasing but keep hinting, by putting this in my .Xdefaults file.

Xft.dpi: 96
Xft.antialias: false
Xft.hinting: true
Xft.hintstyle: hintfull
Xft.rgba: rgb

That, combined with the Tahoma font (which I acquired from … somewhere) notched down to 8-point, makes the GTK text and menu bars look picture-perfect. And the default Raleigh GTK2 theme is, believe it or not, about right for this experiment.

To correct the title bar antialiasing, I tried adding “antialias=false” to the font selections in the WinClassic2 theme for IceWM, but it has no effect there. I even went as far as to recompile the entire IceWM package and disable it at that level, but the font is still strectched in a way that looks a little blurry to me. Unsatisfactory. … :|

For an icon theme I finally found GnomeXP, which is apparently the original XP icons shuffled around to flesh out a Gnome-style icon theme. It seems to fit the bill, although to be honest PCManFM was showing the wrong icons for most everything, so I dodged that problem by installing Xfe and picking the Windows 95 theme (with the base color corrected to the Raleigh color) and the Windows icons. It was easier that way, and it’s just a file manager.

Strangely enough there seems to be some sort of font smoothing happening with the FOX toolkit too — Xfe’s interface has the same effect as IceWM’s titlebars. I’m beginning to wonder if it’s really something I want to chase. …

And of course I added the Microsoft core fonts package, and then the Classic-White X11 mouse theme, which made everything just about correct for me.

Added software includes Leafpad, which looks and acts like Notepad; gPicView, which is a perfect knockoff of the XP image viewer; Audacious with the Winamp Classic skin for XMMS; AlsaPlayer, which looks like a strange Media Player hybrid in this theme; and of course, little things like GTK2.0 Change Theme and scrot and so forth.

It works, even if it’s not perfect. And that’s about where my interest in the project fell short. I suppose I should work out a way to make the menus more like XP, but those seem to be at the whim of IceWM (pun intended) and with the exception of the right-click menu, it’s not that big a deal.

Here are the configuration files for IceWM, if you want to tamper with it yourself. Post screenshots if you get something closer to the “ideal.” ;)

Menu.

# This is an example for IceWM's menu definition file.
#
# Place your variants in /etc/X11/icewm or in $HOME/.icewm
# since modifications to this file will be discarded when you
# (re)install icewm.
#
prog	"Terminal emulator"	xterm	urxvt
prog	"Mozilla Firefox" 	/usr/share/pixmaps/firefox-3.0.png	firefox
separator
menu 	Applications 	folder 	{
	menu 	Accessories 	folder 	{
		prog 	Leafpad	leafpad	leafpad
		prog	Xfe	explorer	xfe
	}
	menu	Graphics	folder	{
		prog	gPicView	gpicview	gpicview
	}
	menu	Multimedia	folder	{
		prog	AlsaPlayer	alsaplayer	alsaplayer
		prog 	Audacious	xmms		audacious
	}
	menu Network folder {
		prog "Mozilla Firefox" /usr/share/pixmaps/firefox-3.0.png firefox
	}
	menu	System	folder	{
		prog	"GTK2.0 Change Theme"	gtk-chtheme	gtk-chtheme
		prog	"rxvt-unicode"	urxvt	urxvt
	}
}

Important lines changed in the default preferences file. (The entire file is huge; I made this by diff’ing my version and the original at /usr/share/icewm/preferences, then grepping out only lines that started with the less-than symbol.)

MenuActivateDelay=0 # [0-5000]
MenuMouseTracking=1
QuickSwitchMaxWidth=1 # 0/1
QuickSwitchSmallWindow=1 # 0/1
QuickSwitchToAllWorkspaces=1 # 0/1
QuickSwitchVertical=0 # 0/1
RebootCommand="sudo /sbin/reboot"
ShowAbout=0 # 0/1
ShowFocusModeMenu=0 # 0/1
ShowHelp=0 # 0/1
ShowLogoutSubMenu=1 # 0/1
ShowMoveSizeStatus=0 # 0/1
ShowProgramsMenu=0 # 0/1
ShowSettingsMenu=0 # 0/1
ShowWindowList=0 # 0/1
ShowWorkspaceStatus=0 # 0/1
ShutdownCommand="sudo /sbin/halt"
TaskbarButtonWidthDivisor=5 # [1-25]
TaskBarShowCollapseButton=0
TaskBarShowCPUStatus=0 # 0/1
TaskBarShowMailboxStatus=0 # 0/1
TaskBarShowNetStatus=0 # 0/1
TaskBarShowWindowListMenu=0 # 0/1
TaskBarShowWorkspaces=0 # 0/1
TerminalCommand="urxvt"
TimeFormat="%l:%M %p "
ToolTipDelay=200
TrayDrawBevel=1 # 0/1
UseMouseWheel=1 # 0/1

Toolbar.

# This is a default toolbar definition file for IceWM
#
# Place your personal variant in $HOME/.icewm directory.

prog	"Terminal emulator"	xterm	urxvt
prog    "Web browser" 	/usr/share/pixmaps/firefox-3.0.png	x-www-browser
prog	"E-mail client"	sylpheed	sylpheed
prog	"File manager"	explorer	xfe

:D

About these ads

6 Responses to “Oh, so close”


  1. 1 Joeb454 2008/09/13 at 8:53 AM

    I’m impressed. That’s a very convincing copy :)

  2. 2 thealphanerd 2009/02/23 at 10:07 PM

    There’s a GTK theme in Ubuntu called Redmond, which gives you an even more authentic look of Windows.


  1. 1 No news is not news « Motho ke motho ka botho Trackback on 2009/06/05 at 10:09 PM
  2. 2 Talking myself out of it « Motho ke motho ka botho Trackback on 2009/07/17 at 12:54 PM
  3. 3 The wrong reasons to use Linux « Motho ke motho ka botho Trackback on 2009/07/22 at 8:35 AM
  4. 4 iDesk completes the look « Motho ke motho ka botho Trackback on 2009/08/09 at 9:01 PM

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s




Welcome!



Visit the Wiki!

Some recent desktops


May 6, 2011
Musca 0.9.24 on Crux Linux
150Mhz Pentium 96Mb 8Gb CF
 


May 14, 2011
IceWM 1.2.37 and Arch Linux
L2300 core duo 3Gb 320Gb

Some recent games


Apr. 21, 2011
Oolite on Xubuntu 11.04
L2300 core duo 3Gb 320Gb

Enter your email address to subscribe to this blog and receive notifications of new posts.

Join 405 other followers

License

This work is licensed under the GNU Free Documentation License. Please see the About page for details.

Blog Stats

  • 3,963,355 hits

Archives


Follow

Get every new post delivered to your Inbox.

Join 405 other followers

%d bloggers like this: