
True transparency for Konsole
Various KDE 1.-4. Improvements
Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net
A fix for one of the most annoying missing features in KDE. This patch brings true transparency (with Xgl/Beryl) to Konsole. And as a bonus, it removes the 1 pixel border around the window, so that you can embed the console in the desktop.
To be fair, I have to admit that the transparency code was already there, I just activated it and fixed the 1-pixel-border-bug. (I consider that a bug because earlier versions didn't have that border, and it's rather ugly.) So be careful, this patch could have some unexpected side effects, otherwise it would be active by default.
Installation:
* get kdebase source (tested with 3.5.5, but could work with other versions, no guarantee)
* in source directory, do:
patch -p0 < konsole-3.5.5-trans.patch
./configure -C --prefix=`kde-config --prefix`
cd konsole
make
make install
Installation for Ubuntu/Debian:
* Get apt-build:
sudo apt-get install apt-build
* Get kdebase sources:
sudo apt-build source konsole
* Go to sources and make user-writeable:
cd /var/cache/apt-build/build/kdebase-3.5.5
sudo chown --recursive (your username) .
* run configure:
./configure -C --prefix=`kde-config --prefix`
* if configure fails, you have to install some developer packages, e.g. if it complains about missing qt headers:
sudo apt-get install libqt3-mt-dev
* apply patch, compile and install
patch -p0 < konsole-3.5.5-trans.patch
cd konsole
make
sudo make install
unknowns
13 years ago
konsole:
//
can't find file to patch at input line 6
Perhaps you should have used the -p or --strip option?
The text leading up to this was:
--------------------------
|Nur in konsole/fonts: 9x15.pcf.gz.
|Nur in konsole/fonts: console8x16.pcf.gz.
|diff -urp konsole.bak/konsole/konsole.cpp konsole/konsole/konsole.cpp
|--- konsole.bak/konsole/konsole.cpp 2006-11-05 15:47:21.000000000 +0100
|+++ konsole/konsole/konsole.cpp 2006-11-05 16:53:51.000000000 +0100
--------------------------
File to patch:
//
and requires a way...(((((
Report
tamasrepus
13 years ago
konsole --real-transparency
You still need this patch however to remove the 1 px border.
Report
midorigin
13 years ago
Report
Ellohir
13 years ago
Other thing, I think it would me a good idea to put the .deb an user posted as comment, for many of us that makes the installations rather simple.
Anyway, nice work!
Report
M3741
13 years ago
This works great on my system (Gentoo + Xorg + AIGLX + Radeon Open Source Drivers + KDE 3.5.5).
It worked right out of the box on my machine.
Report
Jagson
14 years ago
http://i12.tinypic.com/4hc6i40.png
Report
Jagson
14 years ago
Report
iPaqTux
14 years ago
Quote:konsole_part.cpp: In member function 'virtual KParts::Part* konsoleFactory::createPartObject(QWidget*, const char*, QObject*, const char*, const char*, const QStringList&)':
konsole_part.cpp:83: error: cannot allocate an object of abstract type 'konsolePart'
konsole_part.h:70: note: because the following virtual functions are pure within 'konsolePart':
/usr/include/kde/kde_terminal_interface.h:167: note: virtual bool ExtTerminalInterface::setPtyFd(int)
Report
Kovach
13 years ago
I got the same error.
I managed to fix it (dont know if its the proper way of doing things, but)...
Edit the file:
/usr/include/kde/kde_terminal_interface.h
at the end of the file you have line (line number 167):
virtual bool setPtyFd(int master_pty) = 0;
Comment that line, compile konsole app, install it and then uncomment that line, couse I have no idea if other source requires that line.
Report
eriolloan
13 years ago
tried to compile both sources from kdebase-3.5.7 and 3.5.5 with the same error...
Report
mishik
13 years ago
Report
jodok
14 years ago
on kubuntu feisty
Report
axis
14 years ago
Report
bajtek
14 years ago
Report
BeteNoire
14 years ago
Report
arthur-kalm
14 years ago
Report
jojoesyoyo
14 years ago
Nice hack. I haven't got the time to compile it but someday i'll give it a try. Is there something similar for yakuake?
Report
ptitmain
14 years ago
Works great !
package kdebase-dev is needed to succeed with ./configure...
Report
nitro82282
14 years ago
I'm sure I've installed all packages for building konsole, and that the verison of kdebase is 3.5.5
Report
MxCl
14 years ago
Report
docf
14 years ago
Report
warriorness
14 years ago
And another thing: where are these changes applied? It seems to me from the instructions that these changes are applied in /var/kde/whatever... Could I do it instead in /home/warriorness/.kde/whatever ? It seems to me that the changes would be overwritten with the next KDE update, and I'd like to keep them in ~/ anyway for consistency.
Report
warriorness
14 years ago
1) Don't be using the monolithic kdebase (kdebase-meta is fine) - as long as you can 'emerge -p konsole" without any blocks, you're good to go.
2) Install layman.
3) Add the 'xeffects-experimental' overlay.
# layman -a xeffects-experimental
4) Emerge konsole with USE="transparency".
# echo "kde-base/konsole transparency" >> /etc/portage/package.use
# emerge -av konsole
Alternatively, you could create your own overlay and patch the ebuild:
1) Make the overlay, and put the patch in the files/ directory.
# mkdir /usr/local/portage
# mkdir /usr/local/portage/kde-base
# cp -r /usr/portage/kde-base/konsole /usr/local/portage/kde-base
# cp /path/to/file/konsole-3.5.5-trans.patch /usr/local/portage/kde-base/konsole/files
2) Open the 3.5.5 ebuild with your editor of choice, and add to the end:
src_unpack()
{
kde-meta_src_unpack
cd "${S}"
epatch "${FILESDIR}/konsole-3.5.5-trans.patch"
}
3) Re-emerge konsole.
# emerge -av konsole
Report
trevi55
14 years ago
http://3v1n0.tuxfamily.org/pool/edgy/beryl-svn/konsole_3.5.5-0ubuntu3-3v1ubuntu0_i386.deb
^_^
Report
kekko
14 years ago
Report