On Fri, Dec 27, 2019 at 09:55:56AM -0800, J A wrote:
> Sorry to spam the list. Still working my head around qtile development. 
> 
> I would like to use the NET widget to show IP address on my title bar. But 
> instead of using something as mundane as eth0 I'd like to have it 
> dynamically added for the tun0 interface so that when I connect It appears 
> and when I disconnect it disappears. 
> 
> I've done this in python before with a library but not sure where to plug 
> this into the qtile framework. I suppose that I could have an external 
> custom vpn connect and disconnect command that calls into qtile to make the 
> necessary changes. But I'd love it to be a bit more dynamic and passive. 
> 
> So, I was thinking of mimicking the background changer with feh that I have 
> where I start up a new thread that polls every 5 minutes. If i did it this 
> way I could do a search for the tun0 interface once a minute and if it's 
> there add widget and if it isn't remove the widget. 

The easiest thing might be to just render the text in the widget as
"". Without a border or anything, the widget should take up zero
space, even if it is present in the list.

Cheers,

Tycho

-- 
You received this message because you are subscribed to the Google Groups 
"qtile-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qtile-dev/20191227204816.GF15663%40cisco.

Reply via email to