You are not logged in.

#1 2017-03-17 01:17:10

Anexthesy
Member
Registered: 2017-03-17
Posts: 9

Dynamic network interface with Conky config

Hello,

Here's my problem: I have two PCs with the wireless interfaces wlp3s0 and wlp7s0 and I have to create two seperate conky config files for my computers for a piece of code that looks like this:

${if_up wlp3s0}${exec iwgetid -r}${else}*${endif} ${color1}]${color0}

I tried ${exec echo wlp3s0} or ${exec ls /sys/class/net | grep wlp} but none of them work (the condition returns false).

Is there a way to do this without the use of any bash/lua/python script? Thank you in advance

Offline

#2 2017-03-17 01:30:19

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Dynamic network interface with Conky config

So, you want the same conky config to work on both machines? Is that the goal?

It would be easier to use a udev rule to change the names of the interfaces...



Moving to NC...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2017-03-17 02:53:32

Anexthesy
Member
Registered: 2017-03-17
Posts: 9

Re: Dynamic network interface with Conky config

I think I'll just do that, thanks for the reply!

Offline

Board footer

Powered by FluxBB