Topic: [ python / transset-df ] allow opacity to follow the focused window

### UPDATE ###

Video : http://www.youtube.com/watch?v=RYj6dwECjoQ

source : http://www.ad-comp.be/public/projets/tr … .2.tar.bz2

deb : http://www.ad-comp.be/public/projets/tr … .2-all.deb

Install deb with gdebi , and add this entry to your openbox menu ( ~/.config/openbox/menu.xml )

<menu execute="ob-trans-follow" id="trans-follow" label="Trans-Follow" />

if you want to launch trans-follow with openbox , simply add one of this entry in your autostart.sh :

trans-follow &

or

ob-trans-follow --startstop &

### UPDATE ###


@bientot

Last edited by ADcomp (2009-08-17 20:05:16)

~$ whoami
ADcomp

Re: [ python / transset-df ] allow opacity to follow the focused window

^
big_smile

deel de geheimen van het opzetten van het?

Diaspora    identi.ca     Jamendo
God never ends anything on a negative; God always ends on a positive. -- Edwin Louis Cole --

Re: [ python / transset-df ] allow opacity to follow the focused window

WOW Adcomp this is cool Thanks!!! big_smile cool

Re: [ python / transset-df ] allow opacity to follow the focused window

What a cool script!

Re: [ python / transset-df ] allow opacity to follow the focused window

nice, you always come up with good stuff adcomp

I say never be complete, I say stop being perfect, I say lets evolve, let the chips fall where they may.

Re: [ python / transset-df ] allow opacity to follow the focused window

Hi guys .. Thanks for comments  smile

source : http://www.ad-comp.be/public/projets/tr … -follow.py

deb : http://www.ad-comp.be/public/projets/tr … .1-all.deb

little "HowTo" : Install deb package with gdebi and add this entry in your autostart.sh :

## use transset-df to allow opacity to follow the focused window
trans-follow &

Enjoy  wink

~$ whoami
ADcomp

Re: [ python / transset-df ] allow opacity to follow the focused window

I have been playing with this today and it works great. Nice work ADcomp! smile

Re: [ python / transset-df ] allow opacity to follow the focused window

Amazing work on this. Slipshot sent me the link and I couldnt let this slip through.

Sigs do it better

Re: [ python / transset-df ] allow opacity to follow the focused window

thanks again for your work dav'comp'box wink

iggykoopa wrote:

nice, you always come up with good stuff adcomp

+5 wink

Re: [ python / transset-df ] allow opacity to follow the focused window

Hello ..

Thank you all for your comments .. cool

Little update .. include a pipemenu for openbox , improve 'follow focus' and add a clean exit ( transset 1 to all window on exit )

Video : http://www.youtube.com/watch?v=RYj6dwECjoQ

source : http://www.ad-comp.be/public/projets/tr … .2.tar.bz2

deb : http://www.ad-comp.be/public/projets/tr … .2-all.deb

Install deb with gdebi , and add this entry to your openbox menu ( ~/.config/openbox/menu.xml )

<menu execute="ob-trans-follow" id="trans-follow" label="Trans-Follow" />

Only tested on my desktop .. so maybe it's buggy ? Someone for testing ?

@bientot ..

~$ whoami
ADcomp

Re: [ python / transset-df ] allow opacity to follow the focused window

how would i add this to my autostart.sh?

ob-trans-follow &

just thought i would ask......

Re: [ python / transset-df ] allow opacity to follow the focused window

slipshot wrote:

how would i add this to my autostart.sh?

sorry .. I forget this   sad

if you want to launch trans-follow with openbox , simply add one of this entry in your autostart.sh :

trans-follow &

or

ob-trans-follow --startstop &

Maybe first one is better choice  wink

~$ whoami
ADcomp

Re: [ python / transset-df ] allow opacity to follow the focused window

Little question: Is there a way to change the delay until the transset change we see in the video? I'm in general a sworn enemy of delays >50ms big_smile

I'm so meta, even this acronym

Re: [ python / transset-df ] allow opacity to follow the focused window

@ Awebb :  I set a delay ( 30ms ) to avoid some buggy 'follow' focus on active window ( i.e.  with firefox or pcman  dialog/popup )
But you can change this value in /usr/bin/trans-follow  , ~ line 31 :

TEMPO = 30

Maybe you can set to 15 , if you don't have problem with 'follow' active window ..

TEMPO = 15

work fine for me ..

Edit  : Did you try before  ? because recording desktop add some latency, too ..

Last edited by ADcomp (2009-08-17 22:20:16)

~$ whoami
ADcomp

Re: [ python / transset-df ] allow opacity to follow the focused window

I do have a problem though, I had this script running, and it ran great for a while, but then something went wrong somewhere, and windows started staying transparent instead of going back opaque, most frequently firefox and pidgin im.

So I disabled the script from running, and now I get things like what I have pictured in the screenshot. And when I bring pidgin back into focus from being minimized, the convo is blank till i click on the actual box.

This is annoying, and ideas on how to fix it? I do not have compositing, and I have an old Intel integrated graphics chipset on this laptop. Like 910/915gms I think.  (First screenshot is when I first open a text file, second is after I have to highlight the whole file to see it.)

http://imgur.com/ENNWul.png http://imgur.com/eVb5il.png

Re: [ python / transset-df ] allow opacity to follow the focused window

sirphobos wrote:

So I disabled the script from running, and now I get things like what I have pictured in the screenshot. And when I bring pidgin back into focus from being minimized, the convo is blank till i click on the actual box.

Never had this problem .. But it' seem like  'xcompmgr' problem , not script ...
So maybe check if xcompmgr  is running fine , and try if you can set transparency ( i.e.  with openbox menu )

sirphobos wrote:

This is annoying, and ideas on how to fix it? I do not have compositing [..]

What do you mean ? If you don't have compositing ,  you can't have transparency .. ( I am wrong, perhaps? )

So I can't help you .. Try to launch script from terminal and look for  errors on output ?

Last edited by ADcomp (2009-08-18 08:57:23)

~$ whoami
ADcomp

Re: [ python / transset-df ] allow opacity to follow the focused window

Well, I should have said I dont USE compositing tongue

I'll poke around some more and see what I can come up with.

Re: [ python / transset-df ] allow opacity to follow the focused window

ADcomp wrote:

Edit  : Did you try before  ? because recording desktop add some latency, too ..

Nope I did not try beforehand. Let's say it was a requirement for even trying wink

I'll give it a try tonight.

I'm so meta, even this acronym

19

Re: [ python / transset-df ] allow opacity to follow the focused window

Amazing! I'm loving it! big_smile

Re: [ python / transset-df ] allow opacity to follow the focused window

Stupid me...
I found this app just today, after struggling some days with focustran.pl described in an other topic.
What can I say ? It just works.
Big thx, ADcomp.
Merci beaucoup copain !

Last edited by Istvan (2010-02-20 13:05:17)

Ha ezt el tudod olvasni, biztosan nem vagy rövidlátó.

Re: [ python / transset-df ] allow opacity to follow the focused window

How different is this to focustran.pl ? The video makes it look very similar.

focustran is working well for me. I'd love to try this ADComp script but I have an unsatisfiable dependency 'python-gnome2-desktop'. I'm on debian not ubuntu base.

Synaptic offers me python-gnome2-desktop-dev but it comes with the longest set of dependencies I have ever seen hmm

I blog too much....       geek stuff LinuxMintDebian | linux noob stuff LinuxMintNoob | spiritual stuff Daily Cup of Tao

Re: [ python / transset-df ] allow opacity to follow the focused window

Are you using testing? "python-gnome2-desktop" can be found in stable and unstable.

http://packages.debian.org/lenny/python-gnome2-desktop
http://packages.debian.org/sid/python-gnome2-desktop

Note: ** Please read before posting **

BTW if you wish to contact me, send me an e-mail instead of a PM.

Re: [ python / transset-df ] allow opacity to follow the focused window

@Istvan / ~HP  : you're welcome  smile

@tawan : don't really need "python-gnome2-desktop" .. if you are on debian , install "python-wnck" .. and 'override' unsatisfiable dependency

Last edited by ADcomp (2010-02-20 23:25:36)

~$ whoami
ADcomp

Re: [ python / transset-df ] allow opacity to follow the focused window

Well, call me Frankenstein.. I just copied the code from the python script over the old perl script and it works a charm.

EDIT: It uses MUCH less CPU than the perl script big_smile

Last edited by tawan (2010-02-21 00:25:14)

I blog too much....       geek stuff LinuxMintDebian | linux noob stuff LinuxMintNoob | spiritual stuff Daily Cup of Tao

Re: [ python / transset-df ] allow opacity to follow the focused window

@ADcomp

regarding the line "if not window.is_skip_tasklist():"

Can we instead have a function that looked in a list and skipped the contents of that list?

The user could add things to the list and these things would be skipped by the script.

e.g. I would add gimp, vlc, any and full screen applications.

Man I wrote that twice and it is still not clear, I hope you understand it smile

I blog too much....       geek stuff LinuxMintDebian | linux noob stuff LinuxMintNoob | spiritual stuff Daily Cup of Tao