SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2009-08-16 00:21:28

ADcomp
Python Script Master
From: Belgium
Registered: 2008-12-22
Posts: 598
Website

[ 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)


David [aka] ADcomp

Offline

Be excellent to each other!

#2 2009-08-16 01:12:33

illumin8
#! Junkie
From: Seattle
Registered: 2009-05-30
Posts: 395
Website

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

^
big_smile

deel de geheimen van het opzetten van het?


Website    500px     DeviantArt
God never ends anything on a negative; God always ends on a positive. -- Edwin Louis Cole --

Offline

#3 2009-08-16 02:10:10

slipshot
#! CrunchBanger
Registered: 2009-05-13
Posts: 171

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

WOW Adcomp this is cool Thanks!!! big_smile cool

Offline

#4 2009-08-16 03:47:58

sirphobos
#! Member
Registered: 2009-07-23
Posts: 52

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

What a cool script!

Offline

#5 2009-08-16 12:03:01

iggykoopa
Script Master
Registered: 2008-12-13
Posts: 1,480

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.

Offline

#6 2009-08-16 13:31:26

ADcomp
Python Script Master
From: Belgium
Registered: 2008-12-22
Posts: 598
Website

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


David [aka] ADcomp

Offline

#7 2009-08-16 13:40:15

corenominal
root
From: Lincoln, UK
Registered: 2008-11-20
Posts: 4,886
Website

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

Offline

#8 2009-08-16 17:05:14

sircrazy
#! Member
From: Florida
Registered: 2009-07-17
Posts: 85

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

Offline

#9 2009-08-16 18:02:08

arpinux
#! Die Hard
From: Montréal, France
Registered: 2009-01-15
Posts: 685
Website

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

Offline

#10 2009-08-17 19:33:17

ADcomp
Python Script Master
From: Belgium
Registered: 2008-12-22
Posts: 598
Website

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 ..


David [aka] ADcomp

Offline

#11 2009-08-17 19:52:57

slipshot
#! CrunchBanger
Registered: 2009-05-13
Posts: 171

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......

Offline

#12 2009-08-17 20:00:49

ADcomp
Python Script Master
From: Belgium
Registered: 2008-12-22
Posts: 598
Website

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


David [aka] ADcomp

Offline

#13 2009-08-17 21:02:03

Awebb
The Singularity
Registered: 2009-07-23
Posts: 2,812

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

Offline

#14 2009-08-17 22:04:56

ADcomp
Python Script Master
From: Belgium
Registered: 2008-12-22
Posts: 598
Website

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)


David [aka] ADcomp

Offline

#15 2009-08-18 02:10:24

sirphobos
#! Member
Registered: 2009-07-23
Posts: 52

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.)

ENNWul.png eVb5il.png

Offline

#16 2009-08-18 08:46:28

ADcomp
Python Script Master
From: Belgium
Registered: 2008-12-22
Posts: 598
Website

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)


David [aka] ADcomp

Offline

#17 2009-08-18 11:43:41

sirphobos
#! Member
Registered: 2009-07-23
Posts: 52

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.

Offline

#18 2009-08-18 12:57:10

Awebb
The Singularity
Registered: 2009-07-23
Posts: 2,812

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

Offline

#19 2010-02-20 11:39:36

~HP
#! CrunchBanger
From: Elsaß (fr_FR)
Registered: 2010-01-01
Posts: 187
Website

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

Amazing! I'm loving it! big_smile

Offline

#20 2010-02-20 13:04:26

Istvan
#! CrunchBanger
From: Budapest, Hungary
Registered: 2010-02-20
Posts: 147

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ó.

Online

#21 2010-02-20 22:56:32

tawan
#! Junkie
Registered: 2009-01-30
Posts: 385
Website

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

Offline

#22 2010-02-20 23:19:54

anonymous
The Mystery Member
From: Arch Linux Forums
Registered: 2008-11-29
Posts: 8,900

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.

Offline

#23 2010-02-20 23:25:03

ADcomp
Python Script Master
From: Belgium
Registered: 2008-12-22
Posts: 598
Website

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)


David [aka] ADcomp

Offline

#24 2010-02-21 00:13:08

tawan
#! Junkie
Registered: 2009-01-30
Posts: 385
Website

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

Offline

Be excellent to each other!

#25 2010-02-22 10:02:19

tawan
#! Junkie
Registered: 2009-01-30
Posts: 385
Website

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

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo