View previous topic :: View next topic |
Author |
Message |
MarioCorleone Guru
Joined: 29 Jun 2003 Posts: 336
|
Posted: Tue Mar 11, 2008 6:33 pm Post subject: kde compiz-fusion 4 wallpapers |
|
|
ok, ive tried and tried and tried, to no avail.
i already have the plugin, but im trying rebuild kdesktop with the transparency patch, followed this guide > http://www.kde-apps.org/content/show.php?content=59864&forumpage=1
everything was good till this error -
Code: | /bin/sh ../libtool --silent --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -I../kcontrol/background -I../libkonq -I../kdmlib -I/usr/kde/3.5/include -I/usr/qt/3/include -I. -DQT_THREAD_SUPPORT -D_REENTRANT -D_LARGE_FILES=1 -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -O2 -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -D_GNU_SOURCE -MT kdesktopapp.lo -MD -MP -MF .deps/kdesktopapp.Tpo -c -o kdesktopapp.lo kdesktopapp.cpp
kdesktopapp.cpp:95:27: error: kdesktopapp.moc: No such file or directory
make[1]: *** [kdesktopapp.lo] Error 1
make[1]: Leaving directory `/usr/kdebase-3.5.9/kdesktop'
make: *** [all-recursive] Error 1
|
so i added kdesktopapp.moc (a blank file) make clean, redid ./configure under the kdebase folder, went back into kdesktop/ and executed make again, and still the same error? a little help would be appreciated _________________ -Mario |
|
Back to top |
|
|
mark_alec Bodhisattva
Joined: 11 Sep 2004 Posts: 6066 Location: Melbourne, Australia
|
Posted: Wed Mar 12, 2008 12:39 pm Post subject: |
|
|
Moved from Desktop Environments to Unsupported Software. _________________ www.gentoo.org.au || #gentoo-au |
|
Back to top |
|
|
MarioCorleone Guru
Joined: 29 Jun 2003 Posts: 336
|
Posted: Wed Mar 12, 2008 9:02 pm Post subject: |
|
|
so its still not supported? _________________ -Mario |
|
Back to top |
|
|
MarioCorleone Guru
Joined: 29 Jun 2003 Posts: 336
|
Posted: Thu Mar 13, 2008 12:22 am Post subject: |
|
|
does anyone have this working under kde? _________________ -Mario |
|
Back to top |
|
|
i92guboj Bodhisattva
Joined: 30 Nov 2004 Posts: 10315 Location: Córdoba (Spain)
|
Posted: Thu Mar 13, 2008 12:55 am Post subject: |
|
|
mario18 wrote: | so its still not supported? |
Sure it isn't. You are patching with external stuff and compiling by hand. There's no way gentoo can give support for that. |
|
Back to top |
|
|
MarioCorleone Guru
Joined: 29 Jun 2003 Posts: 336
|
Posted: Thu Mar 13, 2008 1:14 am Post subject: |
|
|
makes sense. just asking. thank you for you reply. _________________ -Mario |
|
Back to top |
|
|
MarioCorleone Guru
Joined: 29 Jun 2003 Posts: 336
|
Posted: Fri Mar 14, 2008 2:15 am Post subject: |
|
|
thx for the help. mods pls close gonna go else where for help on this _________________ -Mario |
|
Back to top |
|
|
count_zero Guru
Joined: 17 May 2004 Posts: 460 Location: Little Rock, Arkansas, USA
|
Posted: Sun Mar 16, 2008 1:47 pm Post subject: |
|
|
Try this modified ebuild for kdesktop-3.5.9:
Code: | # Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/kde-base/kdesktop/kdesktop-3.5.9.ebuild,v 1.1 2008/02/20 22:55:20 philantrop Exp $
KMNAME=kdebase
EAPI="1"
inherit kde-meta eutils
SRC_URI="${SRC_URI}
mirror://gentoo/kdebase-3.5-patchset-05.tar.bz2"
DESCRIPTION="KDesktop is the KDE interface that handles the icons, desktop popup menus and screensaver system."
KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
IUSE="kdehiddenvisibility xscreensaver"
DEPEND=">=kde-base/libkonq-${PV}:${SLOT}
>=kde-base/kcontrol-${PV}:${SLOT}
xscreensaver? ( x11-proto/scrnsaverproto )"
# Requires the desktop background settings module,
# so until we separate the kcontrol modules into separate ebuilds :-),
# there's a dep here
RDEPEND="${DEPEND}
>=kde-base/kcheckpass-${PV}:${SLOT}
>=kde-base/kdialog-${PV}:${SLOT}
>=kde-base/konqueror-${PV}:${SLOT}
xscreensaver? ( x11-libs/libXScrnSaver )"
KMCOPYLIB="libkonq libkonq/"
KMEXTRACTONLY="kcheckpass/kcheckpass.h
libkonq/
kdm/kfrontend/themer/
kioslave/thumbnail/configure.in.in" # for the HAVE_LIBART test
KMCOMPILEONLY="kcontrol/background
kdmlib/"
KMNODOCS=true
src_unpack() {
kde-meta_src_unpack
# see bug #143375
sed -e "s:SUBDIRS = . lock pics patterns programs init:SUBDIRS = . lock pics patterns programs:" \
-i kdesktop/Makefile.am
cd ${S}/kdesktop
epatch ${FILESDIR}/kdesktop-transparency.patch
}
src_compile() {
myconf="${myconf} $(use_with xscreensaver)"
kde-meta_src_compile
}
pkg_postinst() {
kde_pkg_postinst
dodir "${PREFIX}"/share/templates/.source/emptydir
}
|
Place this patch in /usr/local/portage/kde-base/kdesktop/files/ directory (or your equivelant overlay):
Code: | Index: main.cc
===================================================================
--- main.cc (Revision 671918)
+++ main.cc (Arbeitskopie)
@@ -36,12 +36,24 @@
#include "init.h"
#include "krootwm.h"
#include "kdesktopsettings.h"
+#include "kdesktopapp.h"
#include <signal.h>
#include <unistd.h>
#include <fcntl.h>
#include <stdlib.h>
+#if defined(Q_WS_X11) && defined(HAVE_XRENDER) && QT_VERSION >= 0x030300
+#define COMPOSITE
+#endif
+
+#ifdef COMPOSITE
+# include <X11/Xlib.h>
+# include <X11/extensions/Xrender.h>
+# include <fixx11h.h>
+# include <dlfcn.h>
+#endif
+
static const char description[] =
I18N_NOOP("The KDE desktop");
@@ -52,9 +64,15 @@
{ "x-root", I18N_NOOP("Use this if the desktop window appears as a real window"), 0 },
{ "noautostart", I18N_NOOP("Obsolete"), 0 },
{ "waitforkded", I18N_NOOP("Wait for kded to finish building database"), 0 },
+#ifdef COMPOSITE
+ { "bg-transparency", I18N_NOOP("Enable background transparency"), 0 },
+#endif
KCmdLineLastOption
};
+bool argb_visual = false;
+KDesktopApp *myApp = NULL;
+
// -----------------------------------------------------------------------------
int kdesktop_screen_number = 0;
@@ -176,12 +194,72 @@
r.setDCOPClient( cl );
r.send( "suspendStartup", QCString( "kdesktop" ));
delete cl;
- KUniqueApplication app;
- app.disableSessionManagement(); // Do SM, but don't restart.
- KDesktopSettings::instance(kdesktop_name + "rc");
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
+#ifdef COMPOSITE
+
+ KCmdLineArgs *qtargs = KCmdLineArgs::parsedArgs("qt");
+
+ if ( args->isSet("bg-transparency")) {
+ char *display = 0;
+ if ( qtargs->isSet("display"))
+ display = qtargs->getOption( "display" ).data();
+
+ Display *dpy = XOpenDisplay( display );
+ if ( !dpy ) {
+ kdError() << "cannot connect to X server " << display << endl;
+ exit( 1 );
+ }
+
+ int screen = DefaultScreen( dpy );
+
+ Visual *visual = 0;
+ int event_base, error_base;
+
+ if ( XRenderQueryExtension( dpy, &event_base, &error_base ) ) {
+ int nvi;
+ XVisualInfo templ;
+ templ.screen = screen;
+ templ.depth = 32;
+ templ.c_class = TrueColor;
+ XVisualInfo *xvi = XGetVisualInfo( dpy, VisualScreenMask
+ | VisualDepthMask | VisualClassMask, &templ, &nvi );
+
+ for ( int i = 0; i < nvi; i++ ) {
+ XRenderPictFormat *format =
+ XRenderFindVisualFormat( dpy, xvi[i].visual );
+ if ( format->type == PictTypeDirect && format->direct.alphaMask ) {
+ visual = xvi[i].visual;
+ kdDebug() << "found visual with alpha support" << endl;
+ argb_visual = true;
+ break;
+ }
+ }
+ }
+ // The QApplication ctor used is normally intended for applications not using Qt
+ // as the primary toolkit (e.g. Motif apps also using Qt), with some slightly
+ // unpleasant side effects (e.g. #83974). This code checks if qt-copy patch #0078
+ // is applied, which allows turning this off.
+ bool* qt_no_foreign_hack =
+ static_cast< bool* >( dlsym( RTLD_DEFAULT, "qt_no_foreign_hack" ));
+ if( qt_no_foreign_hack )
+ *qt_no_foreign_hack = true;
+ // else argb_visual = false ... ? *shrug*
+ if( argb_visual )
+ myApp = new KDesktopApp( dpy, Qt::HANDLE( visual ), 0 );
+ else
+ XCloseDisplay( dpy );
+ }
+ if( myApp == NULL )
+ myApp = new KDesktopApp;
+#else
+ myApp = new KDesktopApp;
+#endif
+ myApp->disableSessionManagement(); // Do SM, but don't restart.
+
+ KDesktopSettings::instance(kdesktop_name + "rc");
+
bool x_root_hack = args->isSet("x-root");
bool wait_for_kded = args->isSet("waitforkded");
@@ -194,11 +272,11 @@
testLocalInstallation();
// Mark kdeskop as immutable if all of its config modules have been disabled
- if (!app.config()->isImmutable() &&
+ if (!myApp->config()->isImmutable() &&
kapp->authorizeControlModules(KRootWm::configModules()).isEmpty())
{
- app.config()->setReadOnly(true);
- app.config()->reparseConfiguration();
+ myApp->config()->setReadOnly(true);
+ myApp->config()->reparseConfiguration();
}
// for the KDE-already-running check in startkde
@@ -209,7 +287,8 @@
args->clear();
- app.dcopClient()->setDefaultObject( "KDesktopIface" );
+ myApp->dcopClient()->setDefaultObject( "KDesktopIface" );
- return app.exec();
+
+ return myApp->exec();
}
Index: kdesktopapp.h
===================================================================
--- kdesktopapp.h (Revision 0)
+++ kdesktopapp.h (Revision 0)
@@ -0,0 +1,67 @@
+/* This file is part of the KDE project
+ Copyright (C) 2007 Dennis Kasprzyk <onestone@opencompositing.org>
+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Library General Public
+ License as published by the Free Software Foundation; either
+ version 2 of the License, or (at your option) any later version.
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Library General Public License for more details.
+
+ You should have received a copy of the GNU Library General Public License
+ along with this library; see the file COPYING.LIB. If not, write to
+ the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ Boston, MA 02110-1301, USA.
+*/
+
+#ifndef __kdesktopapp_h__
+#define __kdesktopapp_h__
+
+#include <config.h>
+#include <kuniqueapplication.h>
+
+#if defined(Q_WS_X11) && defined(HAVE_XRENDER) && QT_VERSION >= 0x030300
+#define COMPOSITE
+#endif
+
+#ifdef COMPOSITE
+# include <X11/Xlib.h>
+# include <X11/Xatom.h>
+# include <fixx11h.h>
+#endif
+
+class KDesktopApp : public KUniqueApplication
+{
+ Q_OBJECT
+ public:
+ KDesktopApp();
+ KDesktopApp(Display * dpy, Qt::HANDLE visual = 0,
+ Qt::HANDLE colormap = 0);
+
+#ifdef COMPOSITE
+ bool x11EventFilter (XEvent *);
+
+ bool cmBackground ()
+ {
+ return m_bgSupported;
+ }
+#endif
+
+ signals:
+ void cmBackgroundChanged(bool supported);
+
+#ifdef COMPOSITE
+ private:
+ void initCmBackground();
+
+ private:
+
+ Atom m_cmBackground;
+ Bool m_bgSupported;
+#endif
+};
+
+#endif
Index: kdesktop.kcfg
===================================================================
--- kdesktop.kcfg (Revision 671918)
+++ kdesktop.kcfg (Arbeitskopie)
@@ -31,6 +31,11 @@
<label>Background cache size</label>
<whatsthis>Here you can enter how much memory KDE should use for caching the background(s). If you have different backgrounds for the different desktops caching can make switching desktops smoother at the expense of higher memory use.</whatsthis>
</entry>
+ <entry key="BackgroundOpacity" type="Int">
+ <default>100</default>
+ <label>Background Opacity</label>
+ <whatsthis>Here you can the opacity of the background (0-100). A composite manager can then render something behind it.</whatsthis>
+ </entry>
</group>
<group name="General">
<entry name="DesktopEnabled" key="Enabled" type="Bool">
Index: kdesktopapp.cpp
===================================================================
--- kdesktopapp.cpp (Revision 0)
+++ kdesktopapp.cpp (Revision 0)
@@ -0,0 +1,95 @@
+/* This file is part of the KDE project
+ Copyright (C) 2007 Dennis Kasprzyk <onestone@opencompositing.org>
+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Library General Public
+ License as published by the Free Software Foundation; either
+ version 2 of the License, or (at your option) any later version.
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Library General Public License for more details.
+
+ You should have received a copy of the GNU Library General Public License
+ along with this library; see the file COPYING.LIB. If not, write to
+ the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ Boston, MA 02110-1301, USA.
+*/
+
+#include <kdesktopapp.h>
+
+KDesktopApp::KDesktopApp():
+KUniqueApplication()
+{
+#ifdef COMPOSITE
+ initCmBackground();
+#endif
+}
+
+KDesktopApp::KDesktopApp(Display * dpy, Qt::HANDLE visual, Qt::HANDLE colormap):
+KUniqueApplication(dpy, visual, colormap)
+{
+#ifdef COMPOSITE
+ initCmBackground();
+#endif
+}
+
+#ifdef COMPOSITE
+void KDesktopApp::initCmBackground()
+{
+ Atom type;
+ int format;
+ unsigned long num, rest;
+ unsigned char *data;
+
+ m_bgSupported = false;
+ m_cmBackground =
+ XInternAtom (qt_xdisplay(), "_COMPIZ_WALLPAPER_SUPPORTED", false);
+
+ XSelectInput (qt_xdisplay(), qt_xrootwin(), PropertyChangeMask);
+
+ if (XGetWindowProperty (qt_xdisplay(), qt_xrootwin(), m_cmBackground,
+ 0, 1, FALSE, XA_CARDINAL, &type, &format, &num,
+ &rest, &data) == Success && num)
+ {
+ if (type == XA_CARDINAL)
+ m_bgSupported = (*data == 1);
+ XFree (data);
+ }
+}
+
+bool KDesktopApp::x11EventFilter (XEvent * xevent)
+{
+ if (xevent->type == PropertyNotify &&
+ xevent->xproperty.window == qt_xrootwin() &&
+ xevent->xproperty.atom == m_cmBackground)
+ {
+ Atom type;
+ int format;
+ unsigned long num, rest;
+ unsigned char *data;
+
+ Bool supported = false;
+
+ if (XGetWindowProperty (qt_xdisplay(), qt_xrootwin(), m_cmBackground,
+ 0, 1, FALSE, XA_CARDINAL, &type, &format, &num,
+ &rest, &data) == Success && num)
+ {
+ if (type == XA_CARDINAL)
+ supported = (*data == 1);
+ XFree (data);
+ }
+
+ if (m_bgSupported != supported)
+ {
+ m_bgSupported = supported;
+ emit cmBackgroundChanged(supported);
+ }
+ }
+ return KUniqueApplication::x11EventFilter (xevent);
+}
+
+#endif
+
+#include "kdesktopapp.moc"
Index: bgmanager.cc
===================================================================
--- bgmanager.cc (Revision 671918)
+++ bgmanager.cc (Arbeitskopie)
@@ -14,6 +14,7 @@
#include "bgdefaults.h"
#include "kdesktopsettings.h"
#include "bgsettings.h"
+#include "kdesktopapp.h"
#include <assert.h>
@@ -38,6 +39,12 @@
#define None 0L
#endif
+#ifdef COMPOSITE
+# include <X11/Xlib.h>
+# include <X11/extensions/Xrender.h>
+# include <fixx11h.h>
+#endif
+
#include "pixmapserver.h"
template class QPtrVector<KBackgroundRenderer>;
@@ -47,6 +54,9 @@
static Atom prop_root;
static bool properties_inited = false;
+extern bool argb_visual;
+extern KDesktopApp *myApp;
+
/**** KBackgroundManager ****/
KBackgroundManager::KBackgroundManager(QWidget *desktop, KWinModule* kwinModule)
@@ -85,6 +95,13 @@
m_Renderer[i]->enableTiling( true ); // optimize
}
+#ifdef COMPOSITE
+ m_tPixmap = new KPixmap(kapp->desktop()->size());
+ m_tPixmap->fill(QColor(0, 0x0));
+ connect(myApp, SIGNAL(cmBackgroundChanged( bool )),
+ SLOT(slotCmBackgroundChanged( bool )));
+#endif
+
configure();
m_pTimer = new QTimer(this);
@@ -345,6 +362,43 @@
*/
void KBackgroundManager::setPixmap(KPixmap *pm, int hash, int desk)
{
+ KPixmap *ep = pm;
+
+#ifdef COMPOSITE
+ if (argb_visual && (KDesktopSettings::backgroundOpacity() < 100
+ || myApp->cmBackground()))
+ {
+ ep = m_tPixmap;
+ if (KDesktopSettings::backgroundOpacity() > 0 && pm
+ && !myApp->cmBackground())
+ {
+ XRenderPictFormat *format;
+ format = XRenderFindStandardFormat (qt_xdisplay(), PictStandardARGB32);
+
+ XRenderColor fillColor;
+
+ int color = KDesktopSettings::backgroundOpacity() * 0xffff / 100;
+ fillColor.red = color;
+ fillColor.green = color;
+ fillColor.blue = color;
+ fillColor.alpha = color;
+
+ Picture fill = XRenderCreateSolidFill (qt_xdisplay(), &fillColor);
+ Picture src = XRenderCreatePicture(qt_xdisplay(), pm->handle(),
+ format, 0, NULL);
+ Picture dst = XRenderCreatePicture(qt_xdisplay(), ep->handle(),
+ format, 0, NULL);
+
+ XRenderComposite (qt_xdisplay(), PictOpSrc, src, fill, dst, 0, 0, 0,
+ 0, 0, 0, pm->width(), pm->height());
+
+ XRenderFreePicture (qt_xdisplay(), fill);
+ XRenderFreePicture (qt_xdisplay(), src);
+ XRenderFreePicture (qt_xdisplay(), dst);
+ }
+ }
+#endif
+
if (m_pDesktop)
{
QScrollView* sv = dynamic_cast<QScrollView*>( m_pDesktop );
@@ -352,7 +406,7 @@
// Qt eats repaint events in this case :-((
sv->viewport()->update();
}
- m_pDesktop->setErasePixmap(*pm);
+ m_pDesktop->setErasePixmap(*ep);
m_pDesktop->repaint();
static bool root_cleared = false;
if( !root_cleared )
@@ -360,13 +414,13 @@
root_cleared = true;
QTimer::singleShot( 0, this, SLOT( clearRoot()));
// but make the pixmap visible until m_pDesktop is visible
- QApplication::desktop()->screen()->setErasePixmap(*pm);
+ QApplication::desktop()->screen()->setErasePixmap(*ep);
QApplication::desktop()->screen()->erase();
}
}
else
{
- QApplication::desktop()->screen()->setErasePixmap(*pm);
+ QApplication::desktop()->screen()->setErasePixmap(*ep);
QApplication::desktop()->screen()->erase();
}
@@ -756,6 +810,14 @@
// make the renderer update its desktop size
r->desktopResized();
}
+
+#ifdef COMPOSITE
+ if (m_tPixmap)
+ delete m_tPixmap;
+ m_tPixmap = new KPixmap(kapp->desktop()->size());
+ m_tPixmap->fill(QColor(0, 0x0));
+#endif
+
m_Hash = 0;
if( m_pDesktop )
m_pDesktop->resize( kapp->desktop()->size());
@@ -808,4 +870,13 @@
slotChangeDesktop(0);
}
+#ifdef COMPOSITE
+void KBackgroundManager::slotCmBackgroundChanged( bool )
+{
+ m_tPixmap->fill(QColor(0, 0x0));
+ m_Hash = 0;
+ slotChangeDesktop(0);
+}
+#endif
+
#include "bgmanager.moc"
Index: Makefile.am
===================================================================
--- Makefile.am (Revision 671918)
+++ Makefile.am (Arbeitskopie)
@@ -23,13 +23,15 @@
minicli.cpp KBackgroundIface.skel pixmapserver.cc kcustommenu.cc \
startupid.cpp minicli_ui.ui xautolock_diy.c xautolock_engine.c \
kshadowengine.cpp kshadowsettings.cpp \
- kdesktopshadowsettings.cpp kfileividesktop.cpp
+ kdesktopshadowsettings.cpp kfileividesktop.cpp \
+ kdesktopapp.cpp
include_HEADERS = KDesktopIface.h KScreensaverIface.h KBackgroundIface.h
noinst_HEADERS = desktop.h bgmanager.h krootwm.h \
xautolock.h lockeng.h init.h minicli.h \
- pixmapserver.h startupid.h xautolock_c.h
+ pixmapserver.h startupid.h xautolock_c.h \
+ kdesktopapp.h
kcheckrunning_SOURCES = kcheckrunning.cpp
kcheckrunning_LDFLAGS = $(all_libraries)
Index: bgmanager.h
===================================================================
--- bgmanager.h (Revision 671918)
+++ bgmanager.h (Arbeitskopie)
@@ -15,6 +15,10 @@
#include <KBackgroundIface.h>
+#if defined(Q_WS_X11) && defined(HAVE_XRENDER) && QT_VERSION >= 0x030300
+#define COMPOSITE
+#endif
+
class KConfig;
class QTimer;
class QPixmap;
@@ -83,6 +87,10 @@
void desktopResized();
void clearRoot();
void saveImages();
+
+#ifdef COMPOSITE
+ void slotCmBackgroundChanged(bool);
+#endif
private:
void applyCommon(bool common);
@@ -114,6 +122,10 @@
QWidget *m_pDesktop;
QTimer *m_pTimer;
+#ifdef COMPOSITE
+ KPixmap *m_tPixmap;
+#endif
+
QPtrVector<KVirtualBGRenderer> m_Renderer;
QPtrVector<KBackgroundCacheEntry> m_Cache;
|
Be sure that ~/.kde/share/config/kdesktoprc has this new section:
Code: | [Background Common]
BackgroundOpacity=0
|
Once that is working, you'll need the wallpaper plugin for Compiz-Fusion (available in the desktop-effects overlay). Designate images within the plugin in this format:
Code: | file:///PATH/TO/IMAGE/image1.jpg:100;
file:///PATH/TO/IMAGE/image2.jpg:100;
file:///PATH/TO/IMAGE/image3.jpg:100;
file:///PATH/TO/IMAGE/image4.jpg:100;
|
Now you need to start kde with transparency enabled, so place this script in ~/.kde/Autostart/
Code: | #! /bin/bash
# Kills KDesktop & after is re-launched with the command "kdesktop --bg-transparency".
# Should be loaded at the start of KDE load.
# Be sure that .kde/share/config/kdesktoprc has this new section:
# [Background Common]
# BackgroundOpacity=90 (0 = fully transparent / 100 = opaque)
local pid
pid=$(ps ax |grep "kdesktop " |grep -v grep|awk '{print $1;}')
echo -n "Killing Kdesktop (process $pid)... "
kill -9 $pid
echo "Killed."
kdesktop --bg-transparency 2> /dev/null
echo "Kdesktop ON with transparency support for Compiz's Wallpaper plugin)"
|
Voilá, a different desktop background for each face of the compiz cube. _________________ "We must all hang together, or assuredly we shall all hang separately."
-Ben Franklin |
|
Back to top |
|
|
MarioCorleone Guru
Joined: 29 Jun 2003 Posts: 336
|
Posted: Sun Mar 16, 2008 6:27 pm Post subject: |
|
|
patch failed because there was no kdesktopapp.h or kdesktopapp.cpp so i made them myself, and compiling by hand again.
failed _________________ -Mario |
|
Back to top |
|
|
dpetka2001 l33t
Joined: 04 Mar 2005 Posts: 804
|
Posted: Thu May 08, 2008 10:33 pm Post subject: |
|
|
so any luck with this? has anyone made it to have 4 different wallpapers in each virtual desktop? |
|
Back to top |
|
|
dpetka2001 l33t
Joined: 04 Mar 2005 Posts: 804
|
Posted: Sat May 10, 2008 3:19 pm Post subject: |
|
|
ok as far as the guide from count_zero is concerned some questions...first what do i do with the modified ebuild for kdesktop? i save it as kdesktop_compiz.ebuild(for example) and then do what? the patch i save it as kdesktop_compiz.patch in the directory specified and then apply it with "patch -p1 xxx.patch" ? then i should build kdesktop again? how do i do this using the above? what are the options in emerge? thanks for any help... |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|