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

0
Score 50.0%
Description:

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

12 years ago

KDE 3.5.5 - not working!!!!(((((((((((
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

12 years ago

On Kubuntu 7.04, you can get ARGB transparency with Konsole when running a compositing window manager using:

konsole --real-transparency

You still need this patch however to remove the 1 px border.

Report

midorigin

12 years ago

Are there any changes that need to be made for this to work properly on an amd64 system?

Report

Ellohir

12 years ago

Congratulations, I love this idea.

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

12 years ago

First of all congratulations on writing such a nice improvement for KDE!
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

12 years ago

Everything works great except now my menu options get screwed up once i hover over or use one of them. Does anyone have any idea about how to go about fixing this? Below is a link to a screen shot.

http://i12.tinypic.com/4hc6i40.png

Report

Jagson

12 years ago

Forgot to mention... i'm running Kubuntu 6.10 in KDE 3.5.5

Report

iPaqTux

12 years ago

Here's the error I get when doing make:

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

12 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

12 years ago

same here on kubuntu feisty.
tried to compile both sources from kdebase-3.5.7 and 3.5.5 with the same error...

Report

mishik

12 years ago

However the same here ... :( I have KDE 3.5.6, but I think it should works ... Does anybody know what's the problem ? :)

Report

jodok

12 years ago

same here

on kubuntu feisty

Report

axis

12 years ago

Worked for me using KDE 3.5.6. Downloaded the 3.5.6 source and it worked flawlessly. :)

Report

bajtek

12 years ago

worked with my kde 3.5.5 on gentoo, doesn't work with kde 3.5.6

Report

BeteNoire

12 years ago

Works for me. KDE 3.5.6. Konsole compiled with ebuild program.

Report

arthur-kalm

12 years ago

Hi, I was wondering how you make konsole borderless? I looked around at all the options and couldn't find it. Thanks for your help.

Report

jojoesyoyo

12 years ago

just click on the konsole icon in the window title or Do Alt+Space when you are on konsole, and in the menu that appears select Advanced > No Border :)
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

12 years ago


Works great !

package kdebase-dev is needed to succeed with ./configure...

Report

nitro82282

12 years ago

I've tried your patch, but if I move with the mouse on the konsole menu, I get the word "session overlapped to the normal text of other menu.

I'm sure I've installed all packages for building konsole, and that the verison of kdebase is 3.5.5

Report

MxCl

12 years ago

Good job, works perfectly :)

Report

docf

12 years ago

Hi! Nice idea! I have a fresh install of kubuntu 6.10 and I'm really keen on a borderless, transparent konsole. I downloaded the deb file you provided. My new konsole is now borderless, but unfortunately the transparency doesn't work any more :( Any ideas?

Report

warriorness

13 years ago

I love this feature, but I run Gentoo, and the instructions seem to be intended for Apt users. What changes to the commands would I have to make to get it to work in Gentoo? Or, would it be possible to make an ebuild?

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

13 years ago

Never mind that last comment, I got it all worked out. Here's how you do it, fellow Gentoo users:

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

13 years ago

Here you are a patched konsole package for kubuntu:
http://3v1n0.tuxfamily.org/pool/edgy/beryl-svn/konsole_3.5.5-0ubuntu3-3v1ubuntu0_i386.deb

^_^

Report

kekko

13 years ago

Thank u trevi for your deb! you r a great person

Report

12345678910
product-maker Base: 4 x 5.0 Ratings
Be the first to comment
File (click to download) Version Description PackagetypeArchitecture Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
version
updated Nov 05 2006
added Nov 05 2006
downloads 24h
0
mediaviews 24h 0
pageviews 24h 5