You are not logged in.

#1 2014-08-17 16:10:06

DarkSpiritAK47
Member
From: Grand Rapids, MI, USA
Registered: 2014-08-17
Posts: 39

[Solved] network info not showing up on my conky configuration

okay so this is my first time posting on the archlinux forum. i love the os but i ran into a little trouble with one of my conky configurations and was hoping someone might be able to help.

here is my conky configuration:

######################
# - Conky settings - #
######################
update_interval 1
total_run_times 0
net_avg_samples 1
cpu_avg_samples 1

imlib_cache_size 0
double_buffer yes
no_buffers yes

#####################
# - Text settings - #
#####################
use_xft yes
xftfont Ubuntu:size=8
override_utf8_locale yes
text_buffer_size 2048

#############################
# - Window specifications - #
#############################
own_window_class Conky
own_window yes
own_window_type desktop
own_window_argb_visual yes
own_window_argb_value 00000000
own_window_transparent no
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

alignment top_right
gap_x 25
gap_y 40
minimum_size 182 0
maximum_width 182

default_bar_size 60 8

#########################
# - Graphics settings - #
#########################
draw_shades no

default_color cccccc

color0 white
color1 E07A1F
color2 white


TEXT
SYSTEM ${hr 2}
${goto 6}${voffset 6}${font conkycolorslogos:size=32}a${font}${goto 55}${voffset -25}$machine
${goto 55}Kernel: ${kernel} 

${hr 2}

CPU Freq ${hr 2}
${goto 6}${voffset 4}${font conkycolors:size=16}E${font}${voffset -4}${goto 32}Frequency: ${alignr}${freq_g (1)} GHz


#CPU Usage ${hr 2}
#${goto 6}${font conkycolors:size=16}A${font}${voffset -4}${goto 32}CPU1: ${cpu cpu0}% ${alignr}${cpubar cpu0 8,60}
#${goto 6}${voffset 4}${font conkycolors:size=16}c${font}${voffset -4}${goto 32}CPU1: ${cpu cpu1}% ${alignr}${cpubar cpu1 8,60} 
#${goto 6}${voffset 4}${font conkycolors:size=16}c${font}${voffset -4}${goto 32}CPU2: ${cpu cpu2}% ${alignr}${cpubar cpu2 8,60}
#${goto 6}${voffset 4}${font conkycolors:size=16}c${font}${voffset -4}${goto 32}CPU3: ${cpu cpu3}% ${alignr}${cpubar cpu3 8,60}
#${goto 6}${voffset 4}${font conkycolors:size=16}c${font}${voffset -4}${goto 32}CPU4: ${cpu cpu4}% ${alignr}${cpubar cpu4 8,60}
#${goto 6}${voffset 4}${font conkycolors:size=16}c${font}${voffset -4}${goto 32}CPU5: ${cpu cpu5}% ${alignr}${cpubar cpu5 8,60}
#${goto 6}${voffset 4}${font conkycolors:size=16}c${font}${voffset -4}${goto 32}CPU6: ${cpu cpu6}% ${alignr}${cpubar cpu6 8,60}
#${goto 6}${voffset 4}${font conkycolors:size=16}c${font}${voffset -4}${goto 32}CPU7: ${cpu cpu7}% ${alignr}${cpubar cpu7 8,60}
#${goto 6}${voffset 4}${font conkycolors:size=16}c${font}${voffset -4}${goto 32}CPU8: ${cpu cpu8}% ${alignr}${cpubar cpu8 8,60}
CPU Usage ${hr 2}
${goto 6}${voffset 4}${font conkycolors:size=16}c${font}${voffset -4}${goto 32}CPU1: ${cpu cpu1}%${alignr}CPU2: ${cpu cpu2}%
${goto 6}${voffset 4}${font conkycolors:size=16}c${font}${voffset -4}${goto 32}CPU3: ${cpu cpu3}%${alignr}CPU4: ${cpu cpu4}%
${goto 6}${voffset 4}${font conkycolors:size=16}c${font}${voffset -4}${goto 32}CPU5: ${cpu cpu5}%${alignr}CPU6: ${cpu cpu6}%
${goto 6}${voffset 4}${font conkycolors:size=16}c${font}${voffset -4}${goto 32}CPU7: ${cpu cpu7}%${alignr}CPU8: ${cpu cpu8}%

CPU Temperatures ${hr 2}
${goto 6}${voffset 4}${font conkycolors:size=16}c${font}${voffset -4}${goto 32}Core0:${alignr}${color #FCAF3E}${execi 30 sensors | grep 'Core 0' | awk '{print $3}' | sed 's/+//' | sed 's/\.0//g'} °F$color
${goto 6}${voffset 4}${font conkycolors:size=16}c${font}${voffset -4}${goto 32}Core1:${alignr}${color #FCAF3E}${execi 30 sensors | grep 'Core 1' | awk '{print $3}' | sed 's/+//' | sed 's/\.0//g'} °F$color
${goto 6}${voffset 4}${font conkycolors:size=16}c${font}${voffset -4}${goto 32}Core2:${alignr}${color #FCAF3E}${execi 30 sensors | grep 'Core 2' | awk '{print $3}' | sed 's/+//' | sed 's/\.0//g'} °F$color
${goto 6}${voffset 4}${font conkycolors:size=16}c${font}${voffset -4}${goto 32}Core3:${alignr}${color #FCAF3E}${execi 30 sensors | grep 'Core 3' | awk '{print $3}' | sed 's/+//' | sed 's/\.0//g'} °F$color

Misc Info ${hr 2}
${goto 6}${voffset 4}${font conkycolors:size=16}d${font}${voffset -4}${goto 32}GPU Temp: ${alignr}${color #FCAF3E}${hwmon 0 temp 1}°F$color
${goto 6}${voffset 4}${font conkycolors:size=16}g${font}${voffset -4}${goto 32}Memory: ${mem} ${alignr}${membar 8,60}
${goto 6}${voffset 4}${font conkycolors:size=16}i${font}${voffset -4}${goto 32}Disk: ${diskio}${alignr}${diskiograph 8,60 F57900 FCAF3E}
${goto 6}${voffset 4}${font conkycolors:size=16}i${font}${voffset -4}${goto 32}Swap: $swapperc% ${alignr}${swapbar 8,60}
${goto 6}${voffset 4}${font conkycolors:size=16}o${font}${voffset -4}${goto 32}Uptime: ${alignr}${uptime}
${goto 6}${voffset 4}${font conkycolors:size=16}C${font}${voffset -4}${goto 32}Processes: ${alignr}$processes ($running_processes running)
${goto 7.5}${voffset 4}${font Poky:size=15}a${font}${goto 32}${voffset -10}Highest: ${alignr 13}CPU${alignr}RAM
${goto 32}${voffset -5.5}${hr 1}
${voffset -1}${goto 32}${top name 1} ${goto 124}${top cpu 1}${alignr }${top mem 1}
${voffset -1}${goto 32}${top name 2} ${goto 124}${top cpu 2}${alignr }${top mem 2}
${voffset -1}${goto 32}${top name 3} ${goto 124}${top cpu 3}${alignr }${top mem 3}
${voffset -1}${goto 32}${top name 4} ${goto 124}${top cpu 4}${alignr }${top mem 4}

#Time & Date ${hr 2}
#${font Arial Black:size=26}${alignc}${time %H:%M}${font}
#${alignc}${time %A, %B %d, %Y}

HDD ${hr 2}
#${font conkycolors:size=15}i${font}${voffset -5}${goto 32}HDD temperature:${alignr}${color #FCAF3E}${exec hddtemp /dev/sda -n --unit=F} °F$color
${font conkycolors:size=16}i${font} ${voffset -5}File System
${voffset 4}${fs_free /}/${fs_size /} ${alignr}${fs_bar 8,60 /}
${font conkycolors:size=16}i${font} ${voffset -5}Home
${voffset 4}${fs_free /home}/${fs_size /home} ${alignr}${fs_bar 8,60 /home}
#${font conkycolors:size=16}i${font} ${voffset -5}Windows 7
#${voffset 4}${fs_free /media/windows7}/${fs_size /media/windows7} ${alignr}${fs_bar 8,60 /media/windows7}

Battery: ${alignr}${battery}
${battery_bar BAT1}

Network ${hr 2}
${if_up wlp4s0}
${font conkycolors:size=14}k${font}${goto 32}${voffset -8}SSID: ${wireless_essid wlp4s0}
${goto 32}Signal: ${wireless_link_qual wlp4s0}% ${alignr}${wireless_link_bar 8,60 wlp4s0}
${voffset 4}${font conkycolors:size=14}x${font}${goto 32}${voffset -6}Up: ${upspeed wlp4s0}${font} ${alignr}${upspeedgraph wlp4s0 8,60 F57900 FCAF3E}
${goto 32}Total: ${totalup wlp4s0}
${voffset 4}${font conkycolors:size=14}u${font}${goto 32}${voffset -6}Down: ${downspeed wlp4s0}${font} ${alignr}${downspeedgraph wlp4s0 8,60 F57900 FCAF3E}
${goto 32}Total: ${totaldown wlp4s0}
${voffset 4}${font conkycolors:size=13}A${font}${goto 32}${voffset -8}Local IP: ${alignr}${addr wlp4s0}

# |--enp3s0f0
${else}${if_up enp3s0f0}
${voffset -13}${font conkycolors:size=14}x${font}${goto 32}${voffset -6}Up: ${upspeed enp3s0f0}${font} ${alignr}${upspeedgraph enp3s0f0 8,60 F57900 FCAF3E}
${goto 32}Total: ${totalup enp3s0f0}
${voffset -2}${font conkycolors:size=14}u${font}${goto 32}${voffset -6}Down: ${downspeed enp3s0f0}${font} ${alignr}${downspeedgraph enp3s0f0 8,60 F57900 FCAF3E}
${goto 32}Total: ${totaldown enp3s0f0}
${voffset -2}${font conkycolors:size=13}A${font}${goto 32}${voffset -4}Local IP: ${alignr}${addr enp3s0f0}

# |--PPP0
${endif}${else}${if_up ppp0}
${voffset -13}${font conkycolors Solid:size=14}q${font}${goto 32}${voffset -6}Up: ${upspeed ppp0}${font} ${alignr}${upspeedgraph ppp0 8,60 F57900 FCAF3E}
${goto 32}Total: ${totalup ppp0}
${voffset -2}${font conkycolors Solid:size=14}Q${font}${goto 32}${voffset -6}Down: ${downspeed ppp0}${font} ${alignr}${downspeedgraph ppp0 8,60 F57900 FCAF3E}

${goto 32}Total: ${totaldown ppp0}
${voffset -2}${font Poky:size=13}w${font}${goto 32}${voffset -4}Local IP: ${alignr}${addr ppp0}
${endif}${else}${voffset 4}${font PizzaDude Bullets:size=12}4${font}${goto 32}Network Unavailable${endif}${endif}
${hr 2}

now it is specifically the part after Network that is not showing up for me (on my desktop once the configuration is applied). i did not actually create this configuration and already made a few small tweaks to it. it came from this website http://randomsyntax.net/blog/2014/05/ and i would just really enjoy being able to see my network information. i am not super good with computers. in fact i used to use pantheon debian but i paid someone 20 dollars to install arch for me. so just to let you know, i am no expert. any help would be sincerely appreciated.

thankx in advance! hopefully i get some feedback...

Last edited by DarkSpiritAK47 (2014-08-19 06:09:11)

Offline

#2 2014-08-17 16:19:40

Asmir
Member
From: BiH
Registered: 2011-10-06
Posts: 67

Re: [Solved] network info not showing up on my conky configuration

Welcome to the forums.

Under network section, note wlp4s0 and enp3s0f0, those are network interfaces, wireless and etheret. You need to change them to match network interfaces present on your machine.
You can list your network interfaces with command:

$ ip link

Ignore network interface lo.

Offline

#3 2014-08-17 17:05:34

DarkSpiritAK47
Member
From: Grand Rapids, MI, USA
Registered: 2014-08-17
Posts: 39

Re: [Solved] network info not showing up on my conky configuration

THANKX 4 THE REPLY/HELP

okay i am sorry... i actually did not do a very good articulating exactly what the problem was. see the thing is it would be easier if i could show you...

https://lh3.googleusercontent.com/-1aBs … hot139.png

so i don't think it is a matter of actually getting the correct wireless and etheret information (though mine may have been incorrect), rather that whole section of the conky fails to show up what so ever.

oh and BTW the terminal command you provided me with gave back this information:

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default 
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp7s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN mode DEFAULT group default qlen 1000
    link/ether d4:be:d9:35:c7:34 brd ff:ff:ff:ff:ff:ff
3: wlp8s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DORMANT group default qlen 1000
    link/ether 68:17:29:1c:36:ee brd ff:ff:ff:ff:ff:ff

so i am pretty sure mine is correct in that department if i am reading it correctly. i am pretty sure mine is wlp8s0 for wireless at least...

i am not quite sure if i need to replace enp3s0f0 (the etheret i am assuming) with enp7s0 that.

though that is really not so important right now as the entire network section of the conky does not show up.

i don't know maybe it is because i have that information in wrong somehow it is causing it to not show up entirely?

i don't know... i assume even if the information i put in there was wrong for the wireless and etheret... that the network section should still show up...

OH BTW the network section should show up right below the battery (in my image i provided). Obviously it is not there though...

THANK YOU for your help though your effort was appreciated. i still hope i can get to the bottom of this.



-- mod edit: read the Forum Etiquette and only post thumbnails http://wiki.archlinux.org/index.php/For … s_and_Code [jwr] --

Last edited by DarkSpiritAK47 (2014-08-18 15:18:08)

Offline

#4 2014-08-17 17:08:18

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

Re: [Solved] network info not showing up on my conky configuration

Please use code tags when pasting to the boards https://wiki.archlinux.org/index.php/Fo … s_and_Code

and reread Asmir's post.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2014-08-17 17:09:36

DarkSpiritAK47
Member
From: Grand Rapids, MI, USA
Registered: 2014-08-17
Posts: 39

Re: [Solved] network info not showing up on my conky configuration

okay thankx

Offline

#6 2014-08-17 17:11:48

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: [Solved] network info not showing up on my conky configuration

I think the $if_up needs a $endif at the end of the section:

man conky wrote:

       if_up (interface)
              if INTERFACE exists and is up, display everything between $if_up and the matching $endif

Also, yes you do have to change "enp3s0f0" to "enp7s0" (and "wlp4s0" with "wlp8s0")...


Jin, Jîyan, Azadî

Offline

#7 2014-08-17 17:55:12

DarkSpiritAK47
Member
From: Grand Rapids, MI, USA
Registered: 2014-08-17
Posts: 39

Re: [Solved] network info not showing up on my conky configuration

THANK YOU - i gotta go take the gf to do something. I shall let you know if there is any success after that! thankx again!

Offline

#8 2014-08-17 19:21:51

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,742

Re: [Solved] network info not showing up on my conky configuration

DarkSpiritAK47 wrote:

i gotta go take the gf to do something. I shall let you know if there is any success ...

Dude, way too much information.

But in all seriousness, please fix your posts by adding BBCode code tags.  He did not state it explicitly, but Jasonwyran probably would like you to have gone back and edited your posts,  in addition to using tags for future posts.

Thanks


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#9 2014-08-18 01:02:04

DarkSpiritAK47
Member
From: Grand Rapids, MI, USA
Registered: 2014-08-17
Posts: 39

Re: [Solved] network info not showing up on my conky configuration

alright i shall look into those bbcode tags. as of right now i don't know how to use them (and if you haven't noticed by now i am not exactly a super quick learner) but i will look at the link you provided. btw thankx to head on a stick for specifically spelling out exactly what i needed to do... i solved my problem!!! i would mark this as solved but i am unaware of how to do that right now as well. i shall figure it out though. thankx again to all those in the arch community. you guys rock!

Last edited by DarkSpiritAK47 (2014-08-18 01:19:51)

Offline

#10 2014-08-18 01:18:42

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

Re: [Solved] network info not showing up on my conky configuration

You can mark your thread as [Solved] by editing your first post and prepending it to the title.

Under the text box to compose a new post are four links, click the BBCode one...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#11 2014-08-22 14:23:26

gaweph
Member
From: Swansea
Registered: 2014-02-09
Posts: 7
Website

Re: [Solved] network info not showing up on my conky configuration

Thanks for identifying this.  I will amend the original config as required.

In my defense, the article states:

"wlp4s0 and enp3s0f0 are the network device IDS, so you will need to substitute your own".

Offline

Board footer

Powered by FluxBB