hopla
January 26th, 2009, 05:11 PM
I got yeahconsole working, with true transparency!
http://ubuntuforums.org/attachment.php?attachmentid=101136&stc=1&d=1233002749
Screenshot of upper left corner of my screen, running yeahconsole, with standard xterm, zsh shell and top. Showing two gnome terminals underneath.
Since tilda (in repos) doens't work anymore for me in Intrepid, I needed to find a different FPS style terminal. So I found yeahconsole, which is just as slim as tilda (no fuzz) and doesn't seem to have the annoying key-focus bug tilda had. Hooray!
One thing that it doesn't have however is true transparency. If you use a terminal that supports transparency (not the standard xterm, but e.g. rxvt) you can get some fake kinda looking transparency like in the old days where you see the background, but not any windows between the app and the background.
After a long and windy road in search for True Transparency, I finally found a solution. I'm just gonna give it to you straight. If you would also like to know why and how this works and why I didn't do it with XYZ, please ask below.
The only thing you need to have installed from repos is yeahconsole (apt-get install yeahconsole).
Create an executable script (I named it yeahconsole_transparent) somewhere in your home directory containing:
#!/bin/sh
# start yeahconsole
yeahconsole &
# wait a little until all the windows are created
sleep 1
# get yeahconsole window id
id=$(xwininfo -root -tree | grep yeahconsole -B 2 | head -1 | perl -p -e 's/^ *(0x.*?) .*$/$1/g')
# make transparent!
# value is between 0 (invisible) and 2^32 (fully opaque)
xprop -id "$id" -f _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY 3221225472
You can know run yeahconsole_transparent and you will get a transparent yeahconsole! Yeah!
Now, how to get this at login. Go to System > Preferences > Sessions. Click add and fill in a name (YeahConsole Transparent) and a description if you want. As the command enter:
sh -c 'sleep 15 && /path/to/yeahconsole_transparent'
The sleep thingy is necessary, else the script might fail if Gnome is not yet fully started.
Click Save and Close. Logout and log back in and check out your new transparent yeahconsole!
Remarks:
* Notice that everthing in the console is transparent. Even the characters, so it's no gnome-terminal transparency, but if you keep the console relatively opaque (high OPACITY value in the script), it shouldn't bother you to much.
* I'm running Gnome with Compiz, I did not yet try this with Compiz disabled or on KDE, but I think it should work with any compositing window manager (and thus also with any desktop manager)...
* Tell me if it works for you too, not just if it doesn't, thanks :)
* These are my yeahconsole settings in .Xresources:
(twosuperior is the key under ESC on some/most azerty keyboards, handleWidth 0 gets rid of the ugly grey resize handle (you can still resize with Ctrl++ or Ctrl+-))
yeahconsole*restart: 1
yeahconsole*toggleKey: None+twosuperior
yeahconsole*consoleHeight: 20
yeahconsole*aniDelay: 10
yeahconsole*faceName: Monospace
yeahconsole*faceSize: 8
yeahconsole*handleWidth: 0
http://ubuntuforums.org/attachment.php?attachmentid=101136&stc=1&d=1233002749
Screenshot of upper left corner of my screen, running yeahconsole, with standard xterm, zsh shell and top. Showing two gnome terminals underneath.
Since tilda (in repos) doens't work anymore for me in Intrepid, I needed to find a different FPS style terminal. So I found yeahconsole, which is just as slim as tilda (no fuzz) and doesn't seem to have the annoying key-focus bug tilda had. Hooray!
One thing that it doesn't have however is true transparency. If you use a terminal that supports transparency (not the standard xterm, but e.g. rxvt) you can get some fake kinda looking transparency like in the old days where you see the background, but not any windows between the app and the background.
After a long and windy road in search for True Transparency, I finally found a solution. I'm just gonna give it to you straight. If you would also like to know why and how this works and why I didn't do it with XYZ, please ask below.
The only thing you need to have installed from repos is yeahconsole (apt-get install yeahconsole).
Create an executable script (I named it yeahconsole_transparent) somewhere in your home directory containing:
#!/bin/sh
# start yeahconsole
yeahconsole &
# wait a little until all the windows are created
sleep 1
# get yeahconsole window id
id=$(xwininfo -root -tree | grep yeahconsole -B 2 | head -1 | perl -p -e 's/^ *(0x.*?) .*$/$1/g')
# make transparent!
# value is between 0 (invisible) and 2^32 (fully opaque)
xprop -id "$id" -f _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY 3221225472
You can know run yeahconsole_transparent and you will get a transparent yeahconsole! Yeah!
Now, how to get this at login. Go to System > Preferences > Sessions. Click add and fill in a name (YeahConsole Transparent) and a description if you want. As the command enter:
sh -c 'sleep 15 && /path/to/yeahconsole_transparent'
The sleep thingy is necessary, else the script might fail if Gnome is not yet fully started.
Click Save and Close. Logout and log back in and check out your new transparent yeahconsole!
Remarks:
* Notice that everthing in the console is transparent. Even the characters, so it's no gnome-terminal transparency, but if you keep the console relatively opaque (high OPACITY value in the script), it shouldn't bother you to much.
* I'm running Gnome with Compiz, I did not yet try this with Compiz disabled or on KDE, but I think it should work with any compositing window manager (and thus also with any desktop manager)...
* Tell me if it works for you too, not just if it doesn't, thanks :)
* These are my yeahconsole settings in .Xresources:
(twosuperior is the key under ESC on some/most azerty keyboards, handleWidth 0 gets rid of the ugly grey resize handle (you can still resize with Ctrl++ or Ctrl+-))
yeahconsole*restart: 1
yeahconsole*toggleKey: None+twosuperior
yeahconsole*consoleHeight: 20
yeahconsole*aniDelay: 10
yeahconsole*faceName: Monospace
yeahconsole*faceSize: 8
yeahconsole*handleWidth: 0