summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Nazaroff <naz@gentoo.org>2002-07-07 08:44:42 +0000
committerMichael Nazaroff <naz@gentoo.org>2002-07-07 08:44:42 +0000
commitd9aeb54e6659a4dc7f47dace20c4430533c959f6 (patch)
tree230377dfe5209a38b373e3852d70f310a3bbfeab /x11-base/xdirectfb/files
parentrepoman QA issues (diff)
downloadhistorical-d9aeb54e6659a4dc7f47dace20c4430533c959f6.tar.gz
historical-d9aeb54e6659a4dc7f47dace20c4430533c959f6.tar.bz2
historical-d9aeb54e6659a4dc7f47dace20c4430533c959f6.zip
Finished XDirectFB everything should finally work
Diffstat (limited to 'x11-base/xdirectfb/files')
-rw-r--r--x11-base/xdirectfb/files/.dfbserverrc30
-rw-r--r--x11-base/xdirectfb/files/dfbserverrc3
-rw-r--r--x11-base/xdirectfb/files/digest-xdirectfb-1.0_rc2-r16
-rw-r--r--x11-base/xdirectfb/files/startxdfb130
4 files changed, 76 insertions, 93 deletions
diff --git a/x11-base/xdirectfb/files/.dfbserverrc b/x11-base/xdirectfb/files/.dfbserverrc
new file mode 100644
index 000000000000..5babde7d127e
--- /dev/null
+++ b/x11-base/xdirectfb/files/.dfbserverrc
@@ -0,0 +1,30 @@
+#!/bin/bash
+
+/usr/X11R6/bin/XDirectFB -enableRoot -defaultOpacity 230 -enableUnfocused -unfocusedOpacity 200
+
+# In addition to the standard options accepted by all X servers (see Xserver(1)), XDirectFB accepts the following
+# options:
+#
+# -defaultOpacity value
+# set the default opacity for toplevel windows, value ranges from 1
+# (almost invisible) to 255 (fully opaque).
+#
+# -unfocusedOpacity value
+# set the opacity used for unfocused toplevel windows, value ranges from 1
+# (almost invisible) to 255 (fully opaque).
+#
+# -enableUnfocused
+# enable usage of unfocused opacity value.
+#
+# -enableFadeIn
+# enable fade in of showing windows.
+#
+# -enableFadeOut
+# enable fade out of showing windows.
+#
+# -enableRoot
+# enable creation of a root window.
+#
+# In additon to your desktop wm ability to set a root image XDirectFB will set
+# it's own root image in a file called .directfbrc for example:
+# bg-image = /home/(user)/image.jpg
diff --git a/x11-base/xdirectfb/files/dfbserverrc b/x11-base/xdirectfb/files/dfbserverrc
new file mode 100644
index 000000000000..0f8d0a2d53a0
--- /dev/null
+++ b/x11-base/xdirectfb/files/dfbserverrc
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+/usr/X11R6/bin/XDirectFB
diff --git a/x11-base/xdirectfb/files/digest-xdirectfb-1.0_rc2-r1 b/x11-base/xdirectfb/files/digest-xdirectfb-1.0_rc2-r1
new file mode 100644
index 000000000000..2f89f2f05e84
--- /dev/null
+++ b/x11-base/xdirectfb/files/digest-xdirectfb-1.0_rc2-r1
@@ -0,0 +1,6 @@
+MD5 21390561571cf1c34b145e4d2aad9a4a X4299-1.tar.bz2 9228113
+MD5 761753507f6c5d29ef54b4ba27ff8bf7 X4299-2.tar.bz2 13307537
+MD5 15426bacbaf9b9783c0020a9865038a3 X4299-3.tar.bz2 11350279
+MD5 896a27d7b00c100ab80cf0f01f1a10ac X4299-4.tar.bz2 16685884
+MD5 a70e4d28c241374868a099127c668949 truetype.tar.gz 1524606
+MD5 24fbcdbfc02b4e2f6dc2e19c47f35c5a XDirectFB-1.0-rc2.tar.gz 63748
diff --git a/x11-base/xdirectfb/files/startxdfb b/x11-base/xdirectfb/files/startxdfb
index ce94f5a0fa44..b764ab4cec2c 100644
--- a/x11-base/xdirectfb/files/startxdfb
+++ b/x11-base/xdirectfb/files/startxdfb
@@ -1,127 +1,71 @@
#!/bin/sh
-userclientrc=$HOME/.xinitrc
-sysclientrc=/usr/X11R6/lib/X11/xinit/xinitrc
-defaultclient=/usr/X11R6/bin/xterm
-defaultserver=/usr/X11R6/bin/XDirectFB
-defaultclientargs=""
-defaultserverargs=""
-clientargs=""
+userclientrc=$HOME/.xdfbrc
+userserverrc=$HOME/.dfbserverrc
+sysclientrc=/usr/X11R6/lib/X11/xinit/xdfbrc
+sysserverrc=/usr/X11R6/lib/X11/xinit/dfbserverrc
serverargs=""
-
+clientargs=""
if [ -f $userclientrc ]; then
- defaultclientargs=$userclientrc
-elif [ -f $sysclientrc ]; then
- defaultclientargs=$sysclientrc
+ clientargs=$userclientrc
+else if [ -f $sysclientrc ]; then
+ clientargs=$sysclientrc
+fi
fi
+if [ -f $userserverrc ]; then
+ serverargs=$userserverrc
+else if [ -f $sysserverrc ]; then
+ serverargs=$sysserverrc
+fi
+fi
+display=:0
whoseargs="client"
-while [ x"$1" != x ]; do
+while [ "x$1" != "x" ]; do
case "$1" in
- # '' required to prevent cpp from treating "/*" as a C comment.
- /''*|\./''*)
- if [ "$whoseargs" = "client" ]; then
- if [ x"$clientargs" = x ]; then
- client="$1"
- else
- clientargs="$clientargs $1"
- fi
- else
- if [ x"$serverargs" = x ]; then
- server="$1"
- else
- serverargs="$serverargs $1"
- fi
- fi
- ;;
--)
- whoseargs="server"
- ;;
+ whoseargs="server"
+ ;;
*)
- if [ "$whoseargs" = "client" ]; then
- clientargs="$clientargs $1"
- else
- # display must be the FIRST server argument
- if [ x"$serverargs" = x ] && expr "$1" : ':[0-9][0-9]*$' > /dev/null 2>&1; then
-
- display="$1"
- else
- serverargs="$serverargs $1"
- fi
- fi
- ;;
+ if [ "$whoseargs" = "client" ]; then
+ clientargs="$clientargs $1"
+ else
+ serverargs="$serverargs $1"
+ case "$1" in
+ :[0-9]*)
+ display="$1"
+ ;;
+ esac
+ fi
+ ;;
esac
shift
done
-
-# process client arguments
-if [ x"$client" = x ]; then
- # if no client arguments either, use rc file instead
- if [ x"$clientargs" = x ]; then
- client="$defaultclientargs"
- else
- client=$defaultclient
- fi
-fi
-
-# process server arguments
-if [ x"$server" = x ]; then
- # if no server arguments or display either, use rc file instead
- if [ x"$serverargs" = x -a x"$display" = x ]; then
- server="$defaultserverargs"
- else
- server=$defaultserver
- fi
-fi
-
-if [ x"$XAUTHORITY" = x ]; then
+
+if [ X"$XAUTHORITY" = X ]; then
export XAUTHORITY=$HOME/.Xauthority
fi
removelist=
-
# set up default Xauth info for this machine
-
-
-
-
-
-
-
-
-authdisplay=${display:-:0}
mcookie=`mcookie`
-for displayname in $authdisplay `hostname -f`$authdisplay; do
+for displayname in $display `hostname -f`$display; do
if ! xauth list "$displayname" | grep "$displayname " >/dev/null 2>&1; then
- xauth add $displayname . $mcookie
- removelist="$displayname $removelist"
+ xauth add $displayname . $mcookie
+ removelist="$displayname $removelist"
fi
done
-
-xinit $client $clientargs -- $server $display $serverargs
+echo $serverargs
+xinit $clientargs -- $serverargs
if [ x"$removelist" != x ]; then
xauth remove $removelist
fi
-
-
-
-
if command -v deallocvt > /dev/null 2>&1; then
deallocvt
fi
-
-
-
-
-
-
-
-
-
-