x11 configuration file help

Discussion in 'Mac Programming' started by ScKaSx, Oct 8, 2007.

  1. ScKaSx macrumors regular

    Joined:
    Feb 27, 2006
    #1
    Hi All,

    I was wondering if someone would be willing to post or make suggestions for my X11 configuration file. Does anyone know how to do transperancies or background pictures? Here's what my configuration file looks like now (its pretty basic and hasn't been changed much from the x11 installation):

    ###############################
    #!/bin/sh
    # $Id: xinitrc,v 1.3 2004/06/11 04:37:23 jharper Exp $

    userresources=$HOME/.Xresources
    usermodmap=$HOME/.Xmodmap
    sysresources=/etc/X11/xinit/.Xresources
    sysmodmap=/etc/X11/xinit/.Xmodmap

    # merge in defaults and keymaps

    if [ -f "$sysresources" ]; then
    xrdb -merge "$sysresources"
    fi

    if [ -f "$sysmodmap" ]; then
    xmodmap "$sysmodmap"
    fi

    if [ -f "$userresources" ]; then
    xrdb -merge "$userresources"
    fi

    if [ -f "$usermodmap" ]; then
    xmodmap "$usermodmap"
    fi

    # start some nice programs

    xsetroot -gray &
    xclock -g 150x150-0+0 -bw 0 &
    xterm -g 90X65+150+0 &
    xterm -g 90x65+690+0 &
    #xterm &

    # start the window manager

    exec quartz-wm
    ###############################

    Any help would be appreciated.

    Cheers,
    ScKaSx
     
  2. John Jacob macrumors 6502a

    John Jacob

    Joined:
    Feb 11, 2003
    Location:
    Columbia, MD
    #2
    As I understand (mind you I'm no expert), transparencies and background pictures are functionalities provided by the window manager, and not by the X-server. So you would need to set these in your window manager configuration file. Atleast, that is the way I have always done these.

    Are you running in rooted or rootless mode? If you are running in rooted mode, you could probably switch from quartz-wm to something else (I used icewm on my SUN machine at work) that does provide transparencies and background images.
     
  3. mdriftmeyer macrumors 68030

    mdriftmeyer

    Joined:
    Feb 2, 2004
    Location:
    Pacific Northwest
    #3
    Latest Pre-built Binary:

    http://people.freedesktop.org/~bbyer/X.org X11R7.2 (20070718).pkg.zip

    Information on XDarwin is not completely current by Byer.

    http://wiki.x.org/wiki/XDarwin

    I'm looking forward to his X11R7.3 binaries myself. Of course if I have to wait another couple of weeks I might as well build my own.

    You can index his account:
    http://people.freedesktop.org/~bbyer/

    Xorg lead Daniel Stone has the latest Server branch updates for 1.4.1:

    http://wiki.x.org/wiki/Server14Branch

    Byer might be waiting for 1.4.1 to be released before rolling pkg files current as of 1.4.1.

    The one linked above works well on my 10.4.10 system iBook G4 1Ghz.

    I haven't tested against OS X Intel. I'm waiting on the 10.5 to be released before I get a Mac Pro.

    I can't vouch for the Universal builds against Leopard--perhaps this is what needs further testing before Byer builds current. I haven't seen whether or not Xorg will have any showstoppers against Leopard.
     
  4. ScKaSx thread starter macrumors regular

    Joined:
    Feb 27, 2006
    #4
    X11 newbie

    Thanks for the reply, I will check these out.

    Since I'm sort of new at this what do you recommend I run X11 under (rootless or rooted). Currently, its rootless (I haven't tried to alter this so I imagine the default is rootless).

    Also at the end of my .xinitrc file I have it opening x11 with quartz, Jacob mentioned icewm and I've seen other config files using gnome and other things. These are the window manager's correct? If not, whats the difference.

    Oh and what exactly will the X.org X11R7.2 (20070718).pkg install on my computer? And is it better to install this as binary, rather than from source?

    One other note, I tried using the 'xsetroot' option to make all my x11 windows default to a black background but it doesn't seem to affect any of the windows. What's up with that? Thanks

    Cheers,
    ScKaSx
     

Share This Page