2e) Preferences (preferences file)
The preferences file sets the bulk of IceWM's preferences. The .theme file(s) inside an IceWM theme folder can override them.
It comes with all entries commented and set with the default values.
Below are just some entries that might be interesting to change from the default values:
Code:
# Menus track mouse even with no mouse buttons held
# (otherwise you need to keep clicking on the menu items just to browse it)
MenuMouseTracking=1 # 0/1
Code:
# Alt+Tab to hidden windows
QuickSwitchToHidden=0 # 0/1
Code:
# Alt+Tab to windows on other workspaces
QuickSwitchToAllWorkspaces=1 # 0/1
Code:
# Show mailbox status on task bar
# (not needed if you don't have a console mail client like mutt or alpine set-up)
TaskBarShowMailboxStatus=0 # 0/1
Code:
# See which tooltip items over the CPU monitor on the task bar work
# for you and disable the ones that don't
CPUStatusShowAcpiTemp=0 # 0/1
CPUStatusShowCpuFreq=0 # 0/1
Code:
# Show a mini desktop preview on each workspace button
# (instead of just the workspace number)
PagerShowPreview=1 # 0/1
Code:
# Show number of workspace on workspace button (if PagerShowPreview=1)
PagerShowNumbers=0 # 0/1
Code:
# Show the window menu item
# (you might want to disable this if you keep the window list on the task bar)
ShowWindowList=0 # 0/1
Code:
# Preselect to Cancel (0) or the OK (1) button in message boxes
# (logout, restart and shutdown)
MsgBoxDefaultAction=1 # [0-1]
Code:
# Command to lock display/screensaver (i3lock is a nice and tiny screen locker)
LockCommand="i3lock -c 000000"
Code:
# Command to run on clock
ClockCommand="gsimplecal"
http://dmedvinsky.github.com/gsimplecal/

Code:
# Command to select and run a program (I use xfce4-appfinder
# because I have Xfce already installed but gmrun is great for this
# - Run... entry on the menu)
RunCommand="xfce4-appfinder --collapsed"
Code:
# Use this if you want a 'Places' like entry on the menu (use your file manager of choice)
OpenCommand="pcmanfm"
Code:
# The commands below allow to restart/shutdown from within IceWM
# Make sure you allow for the apps to terminate before calling these
# otherwise the desktop may get stuck for a while
# Command to shutdown the system
ShutdownCommand="dbus-send --system --print-reply --dest=\"org.freedesktop.ConsoleKit\" /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Stop"
# Command to reboot the system
RebootCommand="dbus-send --system --print-reply --dest=\"org.freedesktop.ConsoleKit\" /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Restart"
Code:
# Command to run on CPU status (htop is better than top)
CPUStatusCommand="sakura -t Htop -x htop"
Code:
# Network device to show status for (there's no eth0 in F17 anymore)
NetworkStatusDevice="em1"
Etc.
A very handy IceWM feature is tiling windows. By default "Alt+Shift+F2" tiles vertically, "Alt+Shift+F3" tiles horizontally, "Alt+Shift+F7" undoes them.
Look for those shortcuts in the preferences file, change them if you will and explore the other related features it has.
2f) Window options (winoptions file)
The winoptions file allows to set window properties to specific windows. It works, but a little trial and error might be needed as some windows may need to be referenced in some specific way.
For instance, it won't recognize the class for some windows or for others, like Firefox and Thunderbird it needs both the name and the class.
Also, contrarily to the stated on IceWM's manual, it needs first the window name and then the window class (the default sample file is correct on this matter).
Some useful tips:
Code:
# You would want the run dialogue (xfce4-appfinder, gmrun) to be on the center
# of the screen but IceWM doesn't place it there by default
# Here's for xfce4-appfinder in a 1024x768 screen
xfce4-appfinder.geometry: +312+340
# Thunderbird and Firefox opening in specific workspaces (first workspace is 0)
Mail.Thunderbird.workspace: 3
Navigator.Firefox.workspace: 1
# It doesn't do it automatically in IceWM
xfce4-notes.allWorkspaces: 1
# Prevent the notification bubble from stealing the focus (not working :-( )
xfce4-notifyd.noFocusOnAppRaise: 1
Other apps that are useful to set window properties (in place of the winoptions file) are devilspie, wmctrl and xdotool.
2g) Custom logout script
If pcmanfm --desktop is managing the desktop icons it blocks IceWM's logout command and so we need to set a custom command for that.
This command can be set in ~/.icewm/preferences
Code:
# Command to start logout
LogoutCommand="icewm-logout"
icewm-logout being a custom script in $PATH like
Code:
#!/bin/sh
pcmanfm --desktop-off > /dev/null 2>&1
killall pnmixer > /dev/null 2>&1
killall xfce4-clipman > /dev/null 2>&1
killall icewm-session
Here I terminate pnmixer and xfce4-clipman, the apps I have by default in tray, just for cleanliness' sake.
3) Appearance
IceWM, like other stand-alone window managers and simple session managers, uses two files to set the GTK related properties like GTK and icon themes, fonts etc.: ~/.gtkrc-2.0 and ~/.config/gtk-3.0/settings.ini
I'll post my current files that will serve as a template (edit for your preferences).
~/.gtkrc-2.0
Code:
gtk-theme-name="MediterraneanNight"
gtk-icon-theme-name="Fedora"
gtk-font-name="Cantarell 11"
gtk-cursor-theme-name="Bluecurve"
gtk-cursor-theme-size=0
gtk-toolbar-style=GTK_TOOLBAR_BOTH
gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR
gtk-button-images=1
gtk-menu-images=1
gtk-enable-event-sounds=1
gtk-enable-input-feedback-sounds=1
gtk-xft-antialias=1
gtk-xft-hinting=1
gtk-xft-hintstyle="hintmedium"
include "/home/first/.gtkrc-2.0.mine"
~/.config/gtk-3.0/settings.ini
Code:
[Settings]
gtk-theme-name=MediterraneanNight
gtk-icon-theme-name=Fedora
gtk-font-name=Cantarell 11
gtk-cursor-theme-name=Bluecurve
gtk-cursor-theme-size=0
gtk-toolbar-style=GTK_TOOLBAR_BOTH
gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR
gtk-button-images=1
gtk-menu-images=1
gtk-enable-event-sounds=1
gtk-enable-input-feedback-sounds=1
gtk-xft-antialias=1
gtk-xft-hinting=1
gtk-xft-hintstyle=hintmedium
If you build lxappearance from source (git clone git://lxde.git.sourceforge.net/gitroot/lxde/lxappearance) without the --enable-dbus option, it will serve as a GUI to configure those appearance settings. lxappearance from the repo apparently needs lxsession running and so doesn't serve us here.
Also, by default, X will force a 96 DPI setting. To use the one that looks better for your taste and monitor size, create ~/.Xresources with your custom value.
Mine is (leave a blank line at the beginning):
Finally there are the IceWM themes. Besides the not so glamorous collection that's installed by default, one can find more themes at http://box-look.org/index.php?xcontentmode=7311
I'm currently using a combination of the MediterraneanNight GTK theme and a darkened Clearlooks IceWM theme (which I'm calling "Bland" - updated on Sep 21).