Thema geschlossen
Ergebnis 1 bis 1 von 1

Thema: Transparentes Aterm beim X Login

  1. #1
    Gast1864302
    Gast

    Standard Transparentes Aterm beim X Login

    Hallo zusammen!

    Folgendes Projekt versuche ich zu verwirklichen:

    - Ich möchte Aterm beim X login transparent im hintergrund anzeigen und die letzten bootmeldungen ausgeben, einiges habe ich schon geschafft und im Folgenden könnt ihr die Xsetup und Xressources sehen...

    Was noch nicht Funktioniert:
    - aterm ist nicht wirklich im hintergrund, sondern überlappt die login box
    - aterm ist nicht transparent, sondern hat dieses standart-gelb mit schwarzer schrift, statt weiss
    - ich habe keine ahnung, wie man dann die letzten bootmeldungen ausgibt (mit tail | /var/log/messages , aber ich weiss nicht, wie ich es in Xsetup einfüge...)

    Xsetup:
    Code:
    #!/bin/sh
    #
    # Xsetup:	Setup an xlogin's display
    #
    # Copyright (c) 1998-2003 SuSE GmbH Nuernberg, Germany.
    # please report bugfixes or comments at http://www.suse.de/feedback.
    #
    # Author: Werner Fink,   <http://www.suse.de/feedback>
    #
     LIBDIR=/usr/lib/X11
     ETCDIR=/etc/X11
     XDMDIR=${ETCDIR}/xdm
     BINDIR=/usr/bin
    
    no_exit_on_failed_exec=1
    type shopt &> /dev/null && shopt -s execfail
    set +e     &> /dev/null
    
    #
    # Background picture for plain xdm:
    # Store your preferred picture in XPM format (see xv(1) or ppm(5))
    # You can run gzip on the file BackGround.xpm to save disk space.
    #
     background=${XDMDIR}/background.jpg
    
    #
    # Special screensaver parameters for xset, see manual page xset(1x).
    # Default is no special parameters.  Use DPMS (VESA Power Savings
    # Protocol) if USEDPMS is set to "yes".
    #
     SAVESC=""
     USEDPMS="no"
    
    #
    # Default settings
    #
    # Note: If you need a special key mapping copy Xmodmap.remote to
    # Xmodmap.<full_qualified_domain_name_of_the_terminal> where the
    # suffix is the full qualified name identical with  the value of
    # the DISPLAY variable without `:0', `:1' ... e.g.
    # Xmodmap.xterminal.uni-yx.de
    #
    # Note that xkb and xmodmap should not be mixed.
    
     sysmodmap=${ETCDIR}/Xmodmap
     defmodmap=${ETCDIR}/Xmodmap.remote
    hostmodmap=${ETCDIR}/Xmodmap.${DISPLAY%:*}
     sysxkbmap=${ETCDIR}/Xkbmap
     defxkbmap=${ETCDIR}/Xkbmap.remote
    hostxkbmap=${ETCDIR}/Xkbmap.${DISPLAY%:*}
          xset=${BINDIR}/xset
       xmodmap=${BINDIR}/xmodmap
        xkbmap=${BINDIR}/setxkbmap
       xpmroot=${BINDIR}/xli
      xsetroot=${BINDIR}/xsetroot
      xconsole=/usr/local/bin/aterm
      xmessage=${BINDIR}/xmessage
          xrdb=${BINDIR}/xrdb
       backprg=${BINDIR}/BackGround
       halporp=/usr/bin/hal-find-by-property
         xvkbd=${BINDIR}/xvkbd
       glxinfo=${BINDIR}/glxinfo
        compiz=/usr/bin/compiz
           gwd=/usr/bin/gnome-window-decorator
    
    #
    # Check if the machine is a TabletPC and start
    # xvkbd in xdm do be able to input username and password 
    # 
    $halporp --key system.formfactor.subtype --string tabletpc
    if test $? -eq 0 -a -x $xvkbd ; then
        # Bug 149957
        ( declare -i t=100
          while test $((t--)) -gt 0 ; do
              case "$(xwininfo -root -children)" in
                *greet*|xlogin) break ;;
              esac
              sleep 0.1
          done
          HOME=/root exec $xvkbd -compact -geometry -0-0 -xdm
        ) & echo $! > /var/run/xvkbd.pid
    fi
    
    #
    # Check if kdm is running
    #
      kdmpid=/var/run/kdm.pid
    kde3root=/opt/kde3/bin
         kdm=no
    
    test -x ${kde3root}/kdm && \
      /sbin/checkproc -p $kdmpid ${kde3root}/kdm &> /dev/null && kdm=yes
    
    #
    # Check if gdm is running
    #
    gnome2root=/opt/gnome/sbin
        gdmpid=/var/run/gdm.pid
           gdm=no
    
    test -x ${gnome2root}/gdm && \
      /sbin/checkproc -p $gdmpid ${gnome2root}/gdm &> /dev/null && gdm=yes
    
    #
    # Handle background:
    #   First kdm/gdm choise, then xdm/user choise and
    #   if no choise is given use the system defaults.
    #
    if test "$kdm" = "yes" -o "$gdm" = "yes"     ; then
        : # $xsetroot -solid '#738dc6'
    elif test -s ${background}.gz -a -x $xpmroot ; then
        $xpmroot -onroot -quiet ${background}.gz
    elif test -s ${background}    -a -x $xpmroot ; then
        $xpmroot -onroot -quiet $background
    elif test -x $backprg ; then
        $backprg
    else
        $xsetroot -gray
    fi
    
    #
    # Enable Numlock if set
    #
    if test -r /var/run/numlock-on && type -p numlockx > /dev/null ; then
        numlockx on
    fi
    
    #
    # Xresources
    #
    
     aterm*scrollBar: true 
     aterm*loginShell: true 
     aterm*transparent: true 
     aterm*tintingType: true 
     aterm*tinting: #a07040 
     aterm*shading: 35 
     aterm*title: Terminal 
     aterm*iconName: Terminal 
     aterm*font: -misc-fixed-medium-r-normal-*-14-*-*-*-c-*-iso8859-15 
     aterm*geometry: 800x200+0+0 
     aterm*foreground: #cecece 
    
    xlogin*background:  white
    xlogin*foreground:  darkgray
    xlogin*greetColor:  darkgray
    xlogin*promptColor: darkgray
    xlogin*failColor:   red
    
    xlogin*borderWidth:      0
    xlogin*frameWidth:       0
    xlogin*innerFramesWidth: 0
    
    Xlogin*titleMessage:     Login
    xlogin*greeting:         Willkommen an CLIENTHOST! Autorisierung erforderlich
    xlogin*namePrompt:       Username:\040
    xlogin*passwdPrompt:     Passwort:\040
    xlogin*fail:             -- Zugriff verweigert --
    
    #
    # Screensaver
    #
    if test -x $xset ; then
        $xset s on
        test -n "$SAVESC"       && $xset s $SAVESC
        test "$USEDPMS" = "yes" && $xset +dpms
    fi
    
    #
    # Set keymap for various displays
    #
    if test -x $xmodmap -o -x $xkbmap ; then
        if test -z "${DISPLAY%:*}" ; then
    	# local connection
    	if test -s $sysxkbmap -a -x $xkbmap ; then
    	    cat $sysxkbmap | $xkbmap
    	elif test -r $sysmodmap ; then
    	    $xmodmap $sysmodmap
    	fi
        else
    	# TCP/IP connection (remote or local)
    	if test -s $defxkbmap -a -x $xkbmap ; then
    	    cat $defxkbmap | $xkbmap
    	elif test -r $defmodmap ; then
    	    $xmodmap $defmodmap
    	fi
    	if test -s $hostxkbmap -a -x $xkbmap ; then
    	    cat $hostxkbmap | $xkbmap
    	elif test -r $hostmodmap ; then
    	    $xmodmap $hostmodmap
    	fi
        fi
    fi
    
    #
    # Compiz
    #
    if test -x $glxinfo -a -x $compiz; then
        if $glxinfo | grep -q GLX_EXT_texture_from_pixmap ; then
            if test "$gdm" = "yes" ; then
                $compiz --sm-disable decoration fade place &
                if test -x $gwd ; then
                    $gwd --minimal &
                fi
            fi
        fi
    fi
    
    #
    # Only for display :0 we have to set up the xconsole to be
    # sure that the system messages are visible.
    #
    case "$DISPLAY" in
        :0|:0.0)	;;
        *)	exit 0	;;
    esac
    
    #
    # No xconsole for kdm/gdm case
    #
    if test "$kdm" = "yes" -o "$gdm" = "yes" ; then
        exit 0
    fi
    
    #
    # The geometry of xconsole is set in the Xresource file.
    #
    (
        exec setsid $xconsole
    ) & echo $! > /var/run/aterm.pid
    
    exit 0
    Xressources:
    Code:
    !
    ! Xresources:	Setup the resources used by xdm
    !
    xlogin*login.translations: #override\
    	Alt Ctrl<Key>R:	 abort-display()\n\
    	<Key>F1:	 set-session-argument(failsafe) finish-field()\n\
    	Ctrl<Key>Return: set-session-argument(failsafe) finish-field()\n\
    	<Key>Return:	 set-session-argument()		finish-field()
    
    #undef linux
    #undef Linux
    #undef LINUX
    Xlogin*titleMessage:     Login
    xlogin*greeting:         Willkommen an CLIENTHOST! Autorisierung erforderlich
    xlogin*namePrompt:       Username:\040
    xlogin*passwdPrompt:     Passwort:\040
    xlogin*fail:             -- Zugriff verweigert --
    
    #define FAMILY	helvetica
    #define SLANT   o
    #if    (WIDTH < 800)
    xlogin*login.failFont:	*-FAMILY-bold-SLANT-normal--*-120-*-*-*-*-iso8859-1
    xlogin*login.greetFont:	*-FAMILY-bold-SLANT-normal--*-140-*-*-*-*-iso8859-1
    xlogin*login.promptFont:    *-FAMILY-bold-r-normal--*-120-*-*-*-*-iso8859-1
    xlogin*login.Font:	  *-FAMILY-medium-r-normal--*-120-*-*-*-*-iso8859-1
    #else
    xlogin*login.failFont:	*-FAMILY-bold-SLANT-normal--*-180-*-*-*-*-iso8859-1
    xlogin*login.greetFont:	*-FAMILY-bold-SLANT-normal--*-240-*-*-*-*-iso8859-1
    xlogin*login.promptFont:    *-FAMILY-bold-r-normal--*-180-*-*-*-*-iso8859-1
    xlogin*login.Font:	  *-FAMILY-medium-r-normal--*-180-*-*-*-*-iso8859-1
    #endif
    #undef  FAMILY
    #undef  SLANT
    
    
    xlogin*background:  white
    xlogin*foreground:  darkgray
    xlogin*greetColor:  darkgray
    xlogin*promptColor: darkgray
    xlogin*failColor:   red
    
    xlogin*borderWidth:      0
    xlogin*frameWidth:       0
    xlogin*innerFramesWidth: 0
    
    
    Chooser*geometry:		700x500+300+200
    Chooser*allowShellResize:	false
    Chooser*viewport.forceBars:	true
    Chooser*label.font:		*-new century schoolbook-bold-i-normal-*-240-*
    Chooser*label.label:		XDMCP Host Menu from CLIENTHOST
    Chooser*list.font:		-*-*-medium-r-normal-*-*-230-*-*-c-*-iso8859-1
    Chooser*Command.font:		*-new century schoolbook-bold-r-normal-*-180-*
    
    !
    ! Include system wide Xresources
    !
    #include "/etc/X11/Xresources"
    Könnt ihr mir dabei helfen?

    Transparentes Aterm beim X Login - linuxforen.de -- User helfen Usern

    http://www.pc-forum24.de/root-forum/...spostings.html
    Geändert von Rain_Maker (22.03.2007 um 12:28 Uhr)

Thema geschlossen

Aktive Benutzer

Aktive Benutzer

Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)

     

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87