posted by Rahul Gaitonde on Thu 22nd Jul 2004 18:23 UTC

"IceWM, Page 5/6"

  • winoptions (~/.icewm/winoptions)

    The winoptions file defines which applications go on which workspace (virtual desktop). In addition, you can define what kind of border it has, whether or not it appears on the taskbar, in the window list, on all workspaces, in the system tray; its layer (below, above all other windows), its geometry, whether it will be moveable, resizable, closable, and much more. A comprehensive list of all options is given in the section on Window Options in the IceWM manual.

    The syntax of this file is

    application.property: value

    To make it clearer, consider the entry for xmms in my winoptions file. I spend extended periods of time at my computer, and I like music playing at very low volumes while I'm working. I don't want xmms to be present on my current workspace, or on all workspaces. I want it in some far-off wokspace, playing a huge playlist. At the same time, I don't want the hassle of launching it and then moving it to that workspace - since I always do that, there has to be a way of automating it. So I tell IceWM via the winoptions file, that I'd like my xmms instance to be moved to workpace so-and-so as soon as it's launched. So my entry is

    xmms.workspace: 3

    which puts xmms onto the 4th workspace, no matter when or where it's started from.

    Another example - I want to have an xterm ready for me to work on whenever I log in to IceWM. The simplest solution would be for me to put an entry for xterm in my .Xclients file, and write

    xterm.workspace: 0

    in my winoptions file, so that I'd be on workspace 0, ready with the xterm when IceWM starts up. But think again. Now, every time I were to launch an xterm, it'd get placed on workspace 0, which is not what I want! So what do I do? Be Smart. In my .Xclients file, I change the line that launches xterm to include the option

    -name init
    and in my winoptions file, I add the line
    init.workspace: 0
    What happens, is that ONLY that particular instance of xterm is placed on workspace 0.

    This is something that I picked up from the Internet - winoptions for running gkrellm.

    # GKrellm requires some special settings
    gkrellm.allWorkspaces=1
    gkrellm.ignoreWinList: 1
    gkrellm.ignoreTaskBar: 1
    gkrellm.ignoreQuickSwitch: 1
    

    Essentially, place gkrellm on all workspaces, do not place in in the taskbar, and do not show in the Quickswitch (Alt+Tab) list, and do not show it in the Window List box.

  • preferences (~/.icewm/preferences)

    OK. This is the one huge file among the five. My preferences file is 838 lines long. Don't be surprised, though. This file contains settings for each and every aspect of IceWM that you can think up of, and plenty that you can't. This is the place to tweak IceWM. In fact, this file contains so many options to set, some obvious, some esoteric, that I haven't seen a single graphical utility that does a good job of presenting all this to you in a well formatted, categorised manner. Again, you're better off editing this file by hand.

    No, really. Each option is preceded by a line or two, explaining the option. There's also a blank line between two consecutive options, so that explains why the file is so goddamned large! The options themselves are pretty straightforward and consistent in their naming.

    What I'm going to do now, is list a few lines from my preferences file, to get you started on editing your own preferences file. I don't think any option really needs to be explained.

    # Rahul's IceWM preferences
    # Those settings commented out will use system default/theme-specified values
    
    # Misc. Global Settings
    #######################
    ShutdownCommand="halt -p"
    RebootCommand="reboot"
    
    UseMouseWheel=1
    ClickToFocus=1
    OpaqueMove=0
    OpaqueResize=0
    
    IconPath="/home/rahul/pics/icons-icewm"
    WorkspaceNames= " 1 ", " 2 ", " 3 ", " 4 "
    
    DesktopBackgroundCenter=1
    DesktopBackgroundColor = "rgb:00/00/40"
    DesktopBackgroundImage = "/home/rahul/pics/wallpapers/apple/redmond-2.jpg"
    
    
    # Taskbar Settings
    ##################
    ShowTaskBar=1
    TaskBarShowTray=1
    TaskBarShowCPUStatus=1
    TaskBarShowNetStatus=1
    TaskBarDoubleHeight=0
    TaskBarAtTop=0
    TaskBarKeepBelow=0
    TaskBarShowClock=1
    TaskBarShowAPMStatus=0
    TaskBarClockLeds=0
    TaskBarShowMailboxStatus=0
    NetworkStatusDevice="eth0"
    TimeFormat="%I:%M:%S"
    TrayDrawBevel=1
    
    # Menu Settings
    ###############
    AutoReloadMenus=1
    ShowLogoutMenu=0
    ShowHelp=0
    ShowAddressBar=1
    ConfirmLogout=0
    MenuMouseTracking=1
    DontRotateMenuPointer=1
    
    # Keyboard Shortcuts
    ####################
    Win95Keys=1
    KeySysRun="Alt+Ctrl+r"
    KeySysMenu="F13"
    KeySysWorkspace1="Alt+1"
    KeySysWorkspace2="Alt+2"
    KeySysWorkspace3="Alt+3"
    KeySysWorkspace4="Alt+4"
    

    3.3. Graphical configuration tools

    Don't like 'em... don't use 'em.

    Table of contents
    1. "IceWM, Page 1/6"
    2. "IceWM, Page 2/6"
    3. "IceWM, Page 3/6"
    4. "IceWM, Page 4/6"
    5. "IceWM, Page 5/6"
    6. "IceWM, Page 6/6"
  • e p (0)    68 Comment(s)

    Technology White Papers

    See More