Author Topic: Conky thread, show your work!  (Read 116350 times)

0 Members and 2 Guests are viewing this topic.

Offline eskaini

  • Security Team
  • *****
  • Posts: 10842
  • I eat deleted accounts
  • Skill: Novice
Re: Conky thread, show your work!
« Reply #30 on: 08. May 2013, 11:22:33 »
This one is the real original from 07.08.2011:

Code: [Select]
#avoid flicker
double_buffer yes

#own window to run simultanious 2 or more conkys
own_window  yes
own_window_transparent yes
own_window_type panel
own_window_argb_visual
own_window_hints undecorate,sticky,skip_taskbar,skip_pager

#borders
draw_borders no
border_margin 3

#shades
draw_shades no
v
#position
gap_x 0
gap_y 4
alignment top_middle

#behaviour
update_interval 1

#colour
default_color  e0e0e0
#default_shade_color 000000
own_window_colour 4c4c4c

#font
use_xft yes
xftfont sans:size=7

# Force UTF8? note that UTF8 support required XFT
override_utf8_locale yes

#to prevent window from moving
use_spacer none
minimum_size 5000 0
maximum_size 5000 0

#mpd
#mpd_host localhost
#mpd_port 6600

TEXT
${alignc}Date: ${color 02d2f7}${time %d.%m.%y}${color}  Time: ${color 02d2f7}${time %H:%M}${color}  |  Kernel: ${color 02d2f7}$kernel${color}  Architecture: ${color 02d2f7}$machine${color}  Uptime: ${color 02d2f7}${uptime_short}${color}  |  Cpu: ${color 02d2f7}${cpu}%${color}  Ram: ${color 02d2f7}${memperc}%${color}  Swap: ${color 02d2f7}${swapperc}%${color}  Disk: ${color 02d2f7}${fs_used_perc /}%${color}  |  IP: ${color 02d2f7}${addr}${color}  ${if_existing /proc/net/route wlan0}Signal: ${color 02d2f7}${wireless_link_qual wlan0}%${color}  Up: ${color 02d2f7}${upspeed wlan0} kb/s${color}  Down: ${color 02d2f7}${downspeed wlan0} kb/s${color}${else}${if_existing /proc/net/route eth0}Up: ${color 02d2f7}${upspeed eth0} kb/s${color}  Down: ${color 02d2f7}${downspeed eth0} kb/s${color}${endif}${else}Network Unavailable${endif}${alignc}

Offline eskaini

  • Security Team
  • *****
  • Posts: 10842
  • I eat deleted accounts
  • Skill: Novice
Re: Conky thread, show your work!
« Reply #31 on: 08. May 2013, 12:11:25 »
Here's my modified version with working IP, Up- and Downlad stats and how much traffic i used this month (atm it is May, next month i will see June of course). The monthly traffic is realised with vnstat, so you need to install and configure it. If you another device as enp2s0 please replace it with your device.

Code: (bash) [Select]
#avoid flicker
double_buffer yes


#own window to run simultanious 2 or more conkys
own_window yes
own_window_type panel
own_window_transparent no
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

#own window to run simultanious 2 or more conkys
#own_window  yes
#own_window_transparent yes
#own_window_type panel
#own_window_argb_visual
#own_window_hints undecorate,sticky,skip_taskbar,skip_pager

#borders
draw_borders no

#shades
draw_shades no

#position
gap_x 0
gap_y 4
alignment top_middle

#behaviour
update_interval 1

#colour
default_color  ffffff
#default_shade_color ffffff
#own_window_colour 262729
own_window_colour 2c2c2c

#font
use_xft yes
xftfont DejaVu Sans:size=7

# Force UTF8? note that UTF8 support required XFT
override_utf8_locale yes

#to prevent window from moving
use_spacer none
minimum_size 5000 0
maximum_size 5000 0

#mpd
#mpd_host localhost
#mpd_port 6600

TEXT
${alignc}Date: ${color 33b5e5}${time %d.%m.%y}${color}  Time: ${color 33b5e5}${time %H:%M}${color}  |  Kernel: ${color 33b5e5}$kernel${color}  Arch: ${color 33b5e5}$machine${color}  Up: ${color 33b5e5}${uptime_short}${color}  |  Cpu: ${color 33b5e5}${cpu}% ${cpugraph 5,50 ffffff 33b5e5}${color}  Ram: ${color 33b5e5}${memperc}% ${membar 5,50}${color}  Swap: ${color 33b5e5}${swapperc}%${color}  Disk: ${color 33b5e5}${fs_used_perc /}% ${fs_free /} ${fs_bar 5,20 /}${color}  |  IP: ${color 33b5e5}${execi 7200 wget http://v4.ipv6-test.com/api/myip.php -q -O -}${color}  ${if_existing /proc/net/route enp2s0}Up: ${color 33b5e5}${upspeed enp2s0} ${upspeedgraph enp2s0 5,30 ffffff 33b5e5 150} ${totalup enp2s0}${color}  Down: ${color 33b5e5}${downspeed enp2s0} ${downspeedgraph enp2s0 5,30 ffffff 33b5e5 18} ${totaldown enp2s0}${color}${else}Network Unavailable${endif} Traffic ${color 33b5e5}${time %B}: ${execi 300 vnstat -m | grep "`LC_ALL=C date +"%b '%y"`" | awk '{print $9 $10}'}${color}${alignc}

If you need your net stats for WLAN i can give it to you.

And if you want it as autostart you have to run this command in your terminal (it is for KDE)

Code: (bash) [Select]
ln -s /usr/bin/conky ~/.kde4/Autostart/conkylink
« Last Edit: 08. May 2013, 12:14:05 by Parmaster »

Offline runpc2deth

  • Held Mitglied
  • *****
  • Posts: 507
  • Branch: testing
  • Desktop: ManjaroBox
  • GPU Card: AMD A10-5800K - amd radeon hd 7660d
  • GPU driver: free or non free whatever is working :)
  • Kernel: Linux314-X64
  • Skill: Intermediate
Re: Conky thread, show your work!
« Reply #32 on: 10. May 2013, 01:43:32 »
i couldn't get all 3 of those conkys to work  :-\  nothing appears and my tint2 panels loses its transparency also.  the only thing i change in the code is change top_middle to bottom_middle.  since i like having my tint panel on top.  any ideas?   im using openbox.

Offline eskaini

  • Security Team
  • *****
  • Posts: 10842
  • I eat deleted accounts
  • Skill: Novice
Re: Conky thread, show your work!
« Reply #33 on: 10. May 2013, 01:53:00 »
And what is error message you get?

Offline runpc2deth

  • Held Mitglied
  • *****
  • Posts: 507
  • Branch: testing
  • Desktop: ManjaroBox
  • GPU Card: AMD A10-5800K - amd radeon hd 7660d
  • GPU driver: free or non free whatever is working :)
  • Kernel: Linux314-X64
  • Skill: Intermediate
Re: Conky thread, show your work!
« Reply #34 on: 10. May 2013, 01:57:26 »
i dont see any error messages appear.  i enabled the border and it appeared on top even though i have it set at bottom_middle
« Last Edit: 10. May 2013, 02:01:36 by runpc2deth »

Offline eskaini

  • Security Team
  • *****
  • Posts: 10842
  • I eat deleted accounts
  • Skill: Novice
Re: Conky thread, show your work!
« Reply #35 on: 10. May 2013, 02:03:47 »
So conky is behind your panel, right?

Can you please start conky from terminal with "conky &" and post the message you get.

Offline runpc2deth

  • Held Mitglied
  • *****
  • Posts: 507
  • Branch: testing
  • Desktop: ManjaroBox
  • GPU Card: AMD A10-5800K - amd radeon hd 7660d
  • GPU driver: free or non free whatever is working :)
  • Kernel: Linux314-X64
  • Skill: Intermediate
Re: Conky thread, show your work!
« Reply #36 on: 10. May 2013, 02:06:01 »
yes it appears its behind my tint2 panel

here is the output.

Code: [Select]
[brett@manjaro ~]$ conky &
[1] 1923
[brett@manjaro ~]$ Conky: /home/brett/.conkyrc: 13: no such configuration: 'border_margin'
Conky: /home/brett/.conkyrc: 17: no such configuration: 'v'
Conky: /home/brett/.conkyrc: 41: no such configuration: 'maximum_size'
Conky: one or more $endif's are missing
Conky: desktop window (b7) is root window
Conky: window type - panel
Conky: drawing to created window (0x3400002)
Conky: drawing to double buffer
Conky: defining struts
[brett@manjaro ~]$

Offline eskaini

  • Security Team
  • *****
  • Posts: 10842
  • I eat deleted accounts
  • Skill: Novice
Re: Conky thread, show your work!
« Reply #37 on: 10. May 2013, 02:10:48 »
I will test it tomorrow.

But can you please test my latest conkyrc?

AFAIK i had this problem too 2 years ago, but i don't know how i solved it.

Offline poker98face

  • Held Mitglied
  • *****
  • Posts: 1586
  • Open your Source, Open your Mind
  • Branch: stable Arch
  • Desktop: KDE
  • GPU Card: ATI 5470
  • GPU driver: free
  • Kernel: 3.15 Arch
  • Skill: Intermediate
Re: Conky thread, show your work!
« Reply #38 on: 10. May 2013, 02:14:03 »
Great, thanks for the link.  Ill try to mess with it tomorrow. 

Could you please post the config file?

${goto 5}Date: ${color e0e0e0}${font sans:size=8}${time %d/%m/%y}${color}${font}  Time: ${color e0e0e0}${font sans:size=8}${time %r}${color}${font}  |  Kernel: ${color e0e0e0}${font sans:size=8}$kernel${color}${font}  Uptime: ${color e0e0e0}${font sans:size=8}${uptime_short}${color}${font}  |  Cpu: ${color e0e0e0}${font sans:size=8}${cpu}%${color}${font}  Ram: ${color e0e0e0}${font sans:size=8}${memperc}%${color}${font}  Swap: ${color e0e0e0}${font sans:size=8}${swapperc}%${color}${font}    |   ${color e0e0e0}${font sans:size=8}Root${color}${font} ${fs_used_perc /}% ${fs_used /} / ${fs_size /}|   ${color e0e0e0}${font sans:size=8}Dane${color}${font} ${fs_used_perc /mnt/Dane}% ${fs_used /mnt/Dane} / ${fs_size /mnt/Dane}    |  ${color} ${if_existing /proc/net/route enp1s0}Network: ${color 82BA00}Up :${color} ${color e0e0e0}${upspeed enp1s0} kb/s${color}  ${color 82BA00}Down :${color} ${color e0e0e0}${downspeed enpls0} kb/s${color} ${color 82BA00}Total :${color} ${color e0e0e0}${totaldown enp1s0}${color}${else}${if_existing /proc/net/route enpls0}${color 82BA00}${font sans:size=9}Up :${color}${font} ${color e0e0e0}${upspeed enp1s0} kb/s${color}  ${color 82BA00}${font sans:size=9}Down :${color}${font} ${color e0e0e0}${downspeed enp1s0} kb/s${color} ${color 82BA00}${font sans:size=9}Total down :${color}${font} ${color e0e0e0}${totaldown enp1s0}${color}${endif}${else}Network Unavailable${endif}

But remove the red line and change enpls0 to wlan0 or eth0  ;)


what is dane?  also for some reason the upload speed shows but not download speeds?  i really like this though because it doesnt take up much space and its in view all the time unlike the default conky.  its nice to take a peak on things and not have to change windows.
Dane mean files in polish and this is name of my /dev/sda2 partition with all my files (music, videos, icons and themes etc)  :) Try to change enpls0 to wlan0 or eth0  ;)




PC: Windows 7 Notebook: Arch

Offline runpc2deth

  • Held Mitglied
  • *****
  • Posts: 507
  • Branch: testing
  • Desktop: ManjaroBox
  • GPU Card: AMD A10-5800K - amd radeon hd 7660d
  • GPU driver: free or non free whatever is working :)
  • Kernel: Linux314-X64
  • Skill: Intermediate
Re: Conky thread, show your work!
« Reply #39 on: 10. May 2013, 02:30:21 »
@poker98face

ill try changing to wlan0 or eth0.  thanks

Offline runpc2deth

  • Held Mitglied
  • *****
  • Posts: 507
  • Branch: testing
  • Desktop: ManjaroBox
  • GPU Card: AMD A10-5800K - amd radeon hd 7660d
  • GPU driver: free or non free whatever is working :)
  • Kernel: Linux314-X64
  • Skill: Intermediate
Re: Conky thread, show your work!
« Reply #40 on: 10. May 2013, 02:39:48 »
I will test it tomorrow.

But can you please test my latest conkyrc?

AFAIK i had this problem too 2 years ago, but i don't know how i solved it.

i tested your latest conky and i got that one running.  for some reason it doesnt want to move to the bottom of the screen  ;D 


Offline runpc2deth

  • Held Mitglied
  • *****
  • Posts: 507
  • Branch: testing
  • Desktop: ManjaroBox
  • GPU Card: AMD A10-5800K - amd radeon hd 7660d
  • GPU driver: free or non free whatever is working :)
  • Kernel: Linux314-X64
  • Skill: Intermediate
Re: Conky thread, show your work!
« Reply #41 on: 10. May 2013, 02:46:46 »
Here is my new conky  :)


But i need help, i wanna add processor/video card temperature, add manjaro logo and make it bigger but i don't know how to do this.
Code: [Select]
#######################################################################################
###  Conky by http://gnome-look.org/content/show.php/conky+gray?content=155967     ####
###  Modified by:http:www.NoobsLab.com and poker98face :)  ###                                           
#######################################################################################

double_buffer yes
own_window_class conky
own_window yes
own_window_type conky
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_argb_visual yes
draw_borders no
draw_graph_borders no
border_margin 3
draw_shades yes
gap_x 0
gap_y 5
alignment top_left
update_interval 1
default_color  8f8f8f
own_window_colour 2d2d2d
use_xft yes
xftfont sans:size=7
override_utf8_locale yes
use_spacer none
minimum_size 1920 0
TEXT
${goto 5}Date: ${color e0e0e0}${font sans:size=7}${time %d/%m/%y}${color}${font}  Time: ${color e0e0e0}${font sans:size=7}${time %H:%M}${color}${font}  |  Kernel: ${color e0e0e0}${font sans:size=7}$kernel${color}${font}  Uptime: ${color e0e0e0}${font sans:size=7}${uptime_short}${color}${font}  |  Cpu: ${color e0e0e0}${font sans:size=7}${cpu}%${color}${font}  Ram: ${color e0e0e0}${font sans:size=7}${memperc}%${color}${font}  Swap: ${color e0e0e0}${font sans:size=7}${swapperc}%${color}${font}    |   ${color e0e0e0}${font sans:size=7}Root${color}${font} ${fs_used_perc /}% ${fs_used /} / ${fs_size /}|   ${color e0e0e0}${font sans:size=7}Dane${color}${font} ${fs_used_perc /mnt/Dane}% ${fs_used /mnt/Dane} / ${fs_size /mnt/Dane}    |  ${color} ${if_existing /proc/net/route wlp2s0}Network: ${color 82BA00}Up :${color} ${color e0e0e0}${upspeed wlp2s0} kb/s${color}  ${color 82BA00}Down :${color} ${color e0e0e0}${downspeed } kb/s${color} ${color 82BA00}Total :${color} ${color e0e0e0}${totaldown wlp2s0}${color}${else}${if_existing /proc/net/route wlp2s0}${color 82BA00}${font sans:size=7}Up :${color}${font} ${color e0e0e0}${upspeed wlp2s0} kb/s${color}  ${color 82BA00}${font sans:size=7}Down :${color}${font} ${color e0e0e0}${downspeed wlp2s0} kb/s${color} ${color 82BA00}${font sans:size=7}Total down :${color}${font} ${color e0e0e0}${totaldown wlp2s0}${color}${endif}${else}Network Unavailable${endif}

this version of it worked good.  i was able to move to the bottom.  how do you make it so the windows won't cover it? i want the conky on top at all times.

Offline eskaini

  • Security Team
  • *****
  • Posts: 10842
  • I eat deleted accounts
  • Skill: Novice
Re: Conky thread, show your work!
« Reply #42 on: 22. May 2013, 02:38:26 »
This is my newest conky. It isn't ready because i have still have some issues with the text and the icons from the weather.


Offline eskaini

  • Security Team
  • *****
  • Posts: 10842
  • I eat deleted accounts
  • Skill: Novice
Re: Conky thread, show your work!
« Reply #43 on: 22. May 2013, 16:29:43 »
I finally got it working, now it's correct.

EDIT: changed it again, i think now i'm finished.

« Last Edit: 22. May 2013, 18:34:49 by Parmaster »

Offline eskaini

  • Security Team
  • *****
  • Posts: 10842
  • I eat deleted accounts
  • Skill: Novice
Re: Conky thread, show your work!
« Reply #44 on: 23. May 2013, 17:00:27 »
Ok, changed it again  ;D