You are not logged in.

#1 2006-10-17 22:08:46

yankees26
Member
From: Connecticut, USA
Registered: 2006-09-29
Posts: 190

beryl by itself

I was bored, so I decided to try Beryl as a standalone window manager (like how *boxes are often used).  So I enabled the proper settings in xorg.conf (according to the wiki)

Section "ServerLayout"
    Identifier     "Normal Layout"
    Screen      0  "Normal" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection

Section "Files"
    RgbPath         "/usr/lib/X11/rgb"
    ModulePath      "/usr/lib/xorg/modules"
    FontPath        "/usr/share/fonts/misc:unscaled"
    FontPath        "/usr/share/fonts/100dpi:unscaled"
    FontPath        "/usr/share/fonts/75dpi:unscaled"
EndSection

Section "Module"
    Load           "dbe"
    SubSection "extmod"
    Option "omit xfree86-dga"
    EndSubSection
    Load           "type1"
    Load           "freetype"
    Load           "glx"
EndSection

Section "InputDevice"

    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"

    # generated from default
    Identifier     "Keyboard0"
    Driver         "keyboard"
EndSection

Section "Monitor"
    Identifier     "Dell 1703FP"
    VendorName     "Unknown"
    ModelName      "Unknown"
    HorizSync       30.0 - 110.0
    VertRefresh     50.0 - 150.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "NV 7800 GS"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    Option "RenderAccel" "true"
    Option "NoLogo" "true"
    Option "UseEdidDpi" "false"
    Option  "DPI" "95 x 95"
    Option "AddARGBGLXVisuals"
EndSection

Section "Screen"
    Identifier     "Normal"
    Device         "NV 7800GS"
    Monitor        "Dell 1703FP"
    DefaultDepth    24
    SubSection     "Display"
    Viewport    0 0
        Depth       24
        Modes      "1280x1024" "1024x768" "800x600" "640x480"
    EndSubSection
EndSection

Section "Extensions"
    Option "Composite" "Enable"
EndSection

  Then added a beryl.desktop to /etc/X11/sessions that calls this script:

#!/bin/bash
if test -z "$DBUS_SESSION_BUS_ADDRESS" ; then
    eval `dbus-launch --sh-syntax --exit-with-session`
fi

emerald &
beryl-manager &
#display -size 1280x1024 -window root ~/.backgrounds/gotpacman.png & (doesn't work quite right yet, I am considering blaming the &/wiki)
urxvt &

exec /usr/bin/beryl dbus settings

I got that from the wiki.  So when I start it up I get into Beryl and urxvt shows up and so do the decorations, but I get the window that says my xsession only lasted 10 seconds or less, which is weird 'cause if I leave that window open everything works fine.  Also weird is that .xsession-errors has no errors, it looks like:

/opt/gnome/etc/gdm/PreSession/Default: Registering your session with wtmp and utmp
/opt/gnome/etc/gdm/PreSession/Default: running: /usr/bin/sessreg -a -w /var/log/wtmp -u /var/run/utmp -x "/opt/gnome/var/gdm/:0.Xservers" -h "" -l ":0" "james"
/opt/gnome/etc/gdm/Xsession: Beginning session setup...
/opt/gnome/etc/gdm/Xsession: Setup done, will execute: /usr/bin/ssh-agent -- /home/james/berylstart
which: no compiz in (/bin:/usr/bin:/sbin:/usr/sbin:/usr/X11R6/bin:/opt/bin:/opt/gnome/bin:/opt/iceweasel-bin:/opt/mozilla/bin:/opt/xfce4/bin)
which: no compiz in (/bin:/usr/bin:/sbin:/usr/sbin:/usr/X11R6/bin:/opt/bin:/opt/gnome/bin:/opt/iceweasel-bin:/opt/mozilla/bin:/opt/xfce4/bin)
which: no metacity in (/bin:/usr/bin:/sbin:/usr/sbin:/usr/X11R6/bin:/opt/bin:/opt/gnome/bin:/opt/iceweasel-bin:/opt/mozilla/bin:/opt/xfce4/bin)
which: no kwin in (/bin:/usr/bin:/sbin:/usr/sbin:/usr/X11R6/bin:/opt/bin:/opt/gnome/bin:/opt/iceweasel-bin:/opt/mozilla/bin:/opt/xfce4/bin)
which: no xfwm4 in (/bin:/usr/bin:/sbin:/usr/sbin:/usr/X11R6/bin:/opt/bin:/opt/gnome/bin:/opt/iceweasel-bin:/opt/mozilla/bin:/opt/xfce4/bin)
which: no wmaker in (/bin:/usr/bin:/sbin:/usr/sbin:/usr/X11R6/bin:/opt/bin:/opt/gnome/bin:/opt/iceweasel-bin:/opt/mozilla/bin:/opt/xfce4/bin)
which: no fluxbox in (/bin:/usr/bin:/sbin:/usr/sbin:/usr/X11R6/bin:/opt/bin:/opt/gnome/bin:/opt/iceweasel-bin:/opt/mozilla/bin:/opt/xfce4/bin)
which: no blackbox in (/bin:/usr/bin:/sbin:/usr/sbin:/usr/X11R6/bin:/opt/bin:/opt/gnome/bin:/opt/iceweasel-bin:/opt/mozilla/bin:/opt/xfce4/bin)
which: no icewm in (/bin:/usr/bin:/sbin:/usr/sbin:/usr/X11R6/bin:/opt/bin:/opt/gnome/bin:/opt/iceweasel-bin:/opt/mozilla/bin:/opt/xfce4/bin)
which: no enlightenment in (/bin:/usr/bin:/sbin:/usr/sbin:/usr/X11R6/bin:/opt/bin:/opt/gnome/bin:/opt/iceweasel-bin:/opt/mozilla/bin:/opt/xfce4/bin)
which: no yawd in (/bin:/usr/bin:/sbin:/usr/sbin:/usr/X11R6/bin:/opt/bin:/opt/gnome/bin:/opt/iceweasel-bin:/opt/mozilla/bin:/opt/xfce4/bin)
which: no gtk-window-decorator in (/bin:/usr/bin:/sbin:/usr/sbin:/usr/X11R6/bin:/opt/bin:/opt/gnome/bin:/opt/iceweasel-bin:/opt/mozilla/bin:/opt/xfce4/bin)
which: no metacity in (/bin:/usr/bin:/sbin:/usr/sbin:/usr/X11R6/bin:/opt/bin:/opt/gnome/bin:/opt/iceweasel-bin:/opt/mozilla/bin:/opt/xfce4/bin)
which: no kwin in (/bin:/usr/bin:/sbin:/usr/sbin:/usr/X11R6/bin:/opt/bin:/opt/gnome/bin:/opt/iceweasel-bin:/opt/mozilla/bin:/opt/xfce4/bin)
which: no xfwm4 in (/bin:/usr/bin:/sbin:/usr/sbin:/usr/X11R6/bin:/opt/bin:/opt/gnome/bin:/opt/iceweasel-bin:/opt/mozilla/bin:/opt/xfce4/bin)
which: no wmaker in (/bin:/usr/bin:/sbin:/usr/sbin:/usr/X11R6/bin:/opt/bin:/opt/gnome/bin:/opt/iceweasel-bin:/opt/mozilla/bin:/opt/xfce4/bin)
which: no fluxbox in (/bin:/usr/bin:/sbin:/usr/sbin:/usr/X11R6/bin:/opt/bin:/opt/gnome/bin:/opt/iceweasel-bin:/opt/mozilla/bin:/opt/xfce4/bin)
which: no blackbox in (/bin:/usr/bin:/sbin:/usr/sbin:/usr/X11R6/bin:/opt/bin:/opt/gnome/bin:/opt/iceweasel-bin:/opt/mozilla/bin:/opt/xfce4/bin)
which: no icewm in (/bin:/usr/bin:/sbin:/usr/sbin:/usr/X11R6/bin:/opt/bin:/opt/gnome/bin:/opt/iceweasel-bin:/opt/mozilla/bin:/opt/xfce4/bin)
which: no enlightenment in (/bin:/usr/bin:/sbin:/usr/sbin:/usr/X11R6/bin:/opt/bin:/opt/gnome/bin:/opt/iceweasel-bin:/opt/mozilla/bin:/opt/xfce4/bin)
which: no compiz in (/bin:/usr/bin:/sbin:/usr/sbin:/usr/X11R6/bin:/opt/bin:/opt/gnome/bin:/opt/iceweasel-bin:/opt/mozilla/bin:/opt/xfce4/bin)
which: no compiz in (/bin:/usr/bin:/sbin:/usr/sbin:/usr/X11R6/bin:/opt/bin:/opt/gnome/bin:/opt/iceweasel-bin:/opt/mozilla/bin:/opt/xfce4/bin)
which: no metacity in (/bin:/usr/bin:/sbin:/usr/sbin:/usr/X11R6/bin:/opt/bin:/opt/gnome/bin:/opt/iceweasel-bin:/opt/mozilla/bin:/opt/xfce4/bin)
which: no kwin in (/bin:/usr/bin:/sbin:/usr/sbin:/usr/X11R6/bin:/opt/bin:/opt/gnome/bin:/opt/iceweasel-bin:/opt/mozilla/bin:/opt/xfce4/bin)
which: no xfwm4 in (/bin:/usr/bin:/sbin:/usr/sbin:/usr/X11R6/bin:/opt/bin:/opt/gnome/bin:/opt/iceweasel-bin:/opt/mozilla/bin:/opt/xfce4/bin)
which: no wmaker in (/bin:/usr/bin:/sbin:/usr/sbin:/usr/X11R6/bin:/opt/bin:/opt/gnome/bin:/opt/iceweasel-bin:/opt/mozilla/bin:/opt/xfce4/bin)
which: no fluxbox in (/bin:/usr/bin:/sbin:/usr/sbin:/usr/X11R6/bin:/opt/bin:/opt/gnome/bin:/opt/iceweasel-bin:/opt/mozilla/bin:/opt/xfce4/bin)
which: no blackbox in (/bin:/usr/bin:/sbin:/usr/sbin:/usr/X11R6/bin:/opt/bin:/opt/gnome/bin:/opt/iceweasel-bin:/opt/mozilla/bin:/opt/xfce4/bin)
XGL Absent, checking for NVIDIA
Nvidia Present
Initiating splash

Offline

#2 2006-10-17 23:20:46

brain0
Developer
From: Aachen - Germany
Registered: 2005-01-03
Posts: 1,382

Re: beryl by itself

beryl-manager already starts beryl, so when you start beryl in the end of the script, it claims that another window manager is already running and your script returns, so X exits. The last command of the script has to be a command that blocks, so either add a panel (pypanel, fbpanel) or a terminal that you only close when you want to end your session.

Offline

Board footer

Powered by FluxBB