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

0 Members and 2 Guests are viewing this topic.

Offline LCJr

  • Held Mitglied
  • *****
  • Posts: 639
  • Skill: Novice
Re: Conky thread, show your work!
« Reply #15 on: 09. April 2013, 14:11:07 »
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.

I'm just learning this stuff myself but I'll try to help.

For temps look at the hwmon conky.pitstop tutorial I linked to in my post. 

Here's an example of adding an image:
Code: [Select]
${image ~/.conky/icons/ManjaroArch2.png -p 44,0 -s 90x110}Obviously the first part is the location of the image you want to use.  The 44,0 is xy coordinates if you're trying to put the image in a specific location.  Not sure how much you'd need that with your setup.  The 90x110 is the size in pixels the image will be displayed at.  In this case I had a logo that was 90 pixels wide x 110 high.

For bigger I believe just changing the font size will do it.  Change the 7 to a larger number.
Code: [Select]
xftfont sans:size=7
Hope that helps.

Offline Marz0

  • Vollwertiges Mitglied
  • ***
  • Posts: 101
  • Branch: Stable
  • Desktop: Cinnamon 2.6.13
  • GPU Card: ASUS Strix GeForce GTX 970
  • GPU driver: Non-free (NVIDIA 355.11)
  • Kernel: 4.2.1-1-MANJARO x86_64 (64 bit)
  • Skill: Intermediate
Re: Conky thread, show your work!
« Reply #16 on: 09. April 2013, 15:06:12 »
See my config above in the posts.  I have added more to mine since I last posted including the GPU Temp.  Below is the line I used in my config to display the GPU temp.

Code: [Select]
GPU Temp: ${alignr}${exec inxi -s | grep -i gpu | tail -c5 | head -c2}°C
--------------------------------------------------------------------------------

You may need to adjust the tail and head values until yours displays the temp for you correctly.
OS: Manjaro Linux 64Bit Cinnamon
Motherboard: ASUS X99 Deluxe
Ram: 16GB, CPU Core i7 5930
Graphics: ASUS Strix (nVidia) GeForce 970
2 x 240GB KINGSTON SSDs, 1 x 128GB KINGSTON SSD.

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 #17 on: 09. April 2013, 15:08:53 »
So i added just processor temperature and ip adress, removed network up/down and changed some colors  8)


Thank you all for help :)
« Last Edit: 09. April 2013, 15:11:09 by poker98face »

PC: Windows 7 Notebook: Arch

Offline Marz0

  • Vollwertiges Mitglied
  • ***
  • Posts: 101
  • Branch: Stable
  • Desktop: Cinnamon 2.6.13
  • GPU Card: ASUS Strix GeForce GTX 970
  • GPU driver: Non-free (NVIDIA 355.11)
  • Kernel: 4.2.1-1-MANJARO x86_64 (64 bit)
  • Skill: Intermediate
Re: Conky thread, show your work!
« Reply #18 on: 09. April 2013, 15:12:42 »
Your Welcome  :)
OS: Manjaro Linux 64Bit Cinnamon
Motherboard: ASUS X99 Deluxe
Ram: 16GB, CPU Core i7 5930
Graphics: ASUS Strix (nVidia) GeForce 970
2 x 240GB KINGSTON SSDs, 1 x 128GB KINGSTON SSD.

Offline Matthias19281

  • Vollwertiges Mitglied
  • ***
  • Posts: 166
  • Branch: unstable
  • Desktop: Openbox
  • GPU Card: Intel (Laptop)/Nvidia (PC)
  • GPU driver: free
  • Kernel: Kernel 3.14 (Laptop) /Kernel 3.13 (PC)
  • Skill: Advanced
Re: Conky thread, show your work!
« Reply #19 on: 16. April 2013, 22:29:30 »
I played arroud a little bit - thats the result

And here's the modified code:
Code: [Select]
# Manjaro Openbox-Lite Conky Configuration Script
#
# Written by Carl Duff of the Manjaro Team
# Email: carl[at]manjaro[dot]org - Website: www.manjaro.org - Forum: http://forum.manjaro.org/
#
# Feel free to alter, distribute, etc., this config file as you wish.
#

#  Basic Settings

background yes
use_xft yes
xftfont sans:size=11
xftalpha 1
update_interval 1.0
total_run_times 0
own_window yes
own_window_transparent yes
own_window_type override #desktop
own_window_hints below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 450 1
maximum_width 600
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders yes
default_color Black
default_shade_color 000000
default_outline_color d9d7d6
alignment tr
gap_x 5
gap_y 55
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale yes

# Fancy Conky display

TEXT
${image /home/matthias/Bilder/93_thermometer.png -p 25,35 -s 70x70}
${font sans:size=70}${alignr}${color #696969}${time %H:%M}${voffset -27}${voffset -45}
${font sans:size=25}${execi 300 lynx -source http://www.wetter.com/wetter_aktuell/aktuelles_wetter/deutschland/zweibruecken/DE0012021.html | grep °C | head -n1 | sed 's/ //g'}${alignr}${time %a %d %B %Y}${voffset -15}
${font sans:bold:size=9}${alignr}${color #006400}CPU ${color #696969}${cpu cpu0}% / ${freq}MHz - ${color #006400}RAM ${color #696969}$memperc%/$mem - ${color #006400}SWAP ${color #696969}$swap - ${color #006400}UP ${color #696969}$uptime_short
${hr 1}${voffset 5}6
${font sans:bold:size=9}${color #696969}${image /usr/share/icons/Faenza/status/48/nm-signal-75.png -p 0,182 -s 35x35}${offset 76}${color #006400}${wireless_bitrate wlp8s0}${color #696969}${font}
${font sans:bold:size=9}${color #696969}${offset 76}${color #006400}${wireless_link_qual wlp8s0}%${color #696969}${font}

${font sans:bold:size=9}Up: ${offset 50}${color #006400}${upspeed wlp8s0}${font} ${alignr}${upspeedgraph wlp8s0 9, 270}${color #696969}
${font sans:bold:size=9}Gesamt: ${offset 16}${color #006400}${totalup wlp8s0}${font} ${color #696969}
${font sans:bold:size=9}Down: ${offset 30}${color #006400}${downspeed wlp8s0}${font} ${alignr}${downspeedgraph wlp8s0 9, 270}${color #696969}
${font sans:bold:size=9}Gesamt: ${offset 16}${color #006400}${totaldown wlan0}${font} ${color #696969}
${font}${hr 1}${voffset 5}
${font sans:bold:size=9}${image /usr/share/icons/Faenza/status/48/gpm-primary-080.png -p 0,353 -s 35x35}${offset 76}${color #006400}${battery_percent}% ${font}${alignr}${battery_bar 9, 270}
${font sans:bold:size=9}${color #696969}${offset 76}${color #006400}${battery_time}${color #696969}${font}
${hr 1}${voffset 5}
${font}${font sans:bold:size=9}${image /usr/share/icons/Sanguine/48x48/devices/gnome-dev-harddisk.png -p 0,413 -s 35x35}${offset 76}${voffset 7}${color #006400}${fs_used}/${fs_size}${font} ${alignr}${fs_bar 9, 270 /}${color #696969}
${font}${font sans:bold:size=9}${image /usr/share/icons/Sanguine/48x48/places/user-home.png -p 0,453 -s 35x35}${offset 76}${voffset 19}${color #006400}${fs_used /home}/${fs_size /home}${font} ${alignr}${fs_bar 9, 270 /home}${color #696969}
${voffset 5}${hr 1}${voffset 5}
${font sans:bold:size=9}CPU Verbrauch $alignr ${color #006400}CPU% MEM%${color #696969}${voffset 5}
${color #B22222}${top name 1}$alignr${top cpu 1}${top mem 1}${color #696969}
${color #B22222}${top name 2}$alignr${top cpu 2}${top mem 2}${color #696969}
${top name 3}${color #006400}$alignr${color #006400}${top cpu 3}${top mem 3}${color #696969}
${top name 4}${color #006400}$alignr${color #006400}${top cpu 4}${top mem 4}${color #696969}
${top name 5}${color #006400}$alignr${color #006400}${top cpu 5}${top mem 5}${color #696969}

RAM Verbrauch $alignr ${color #006400}CPU% MEM%${color #696969}${voffset 5}
${color #B22222}${top_mem name 1}$alignr${top_mem cpu 1}${top_mem mem 1}${color #696969}
${color #B22222}${top_mem name 2}$alignr${top_mem cpu 2}${top_mem mem 2}${color #696969}
${top_mem name 3}${color #006400}$alignr${color #006400}${top_mem cpu 3}${top_mem mem 3}${color #696969}
${top_mem name 4}${color #006400}$alignr${color #006400}${top_mem cpu 4}${top_mem mem 4}${color #696969}
${top_mem name 5}${color #006400}$alignr${color #006400}${top_mem cpu 5}${top_mem mem 5}${color #696969}

Info: lynx is needed for the Temperatur (Weather) and satanic-icon-theme from the AUR for the icons /home and /

Offline dRo07

  • Neuling
  • *
  • Posts: 6
  • Branch: stable
  • Desktop: Xfce
  • GPU Card: Intel GMA 4500MHD
  • Kernel: 3.8 X86_64
Re: Conky thread, show your work!
« Reply #20 on: 29. April 2013, 21:42:32 »
A classical one with dmesg output



First one
Code: [Select]
#~/.conkyrc1
background no
own_window yes
own_window_class Conky
own_window_type normal
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager 
own_window_transparent yes

use_xft yes
xftfont Bitstream Vera Sans Mono Roman:size=7
xftalpha 1
update_interval 2.0
total_run_times 0

double_buffer yes
minimum_size 220
maximum_width 220
draw_shades yes
draw_outline no
draw_borders no
draw_graph_borders yes
default_color 00BBEE
default_shade_color 000000
default_outline_color 828282
alignment top_left
gap_x 12
gap_y 56
no_buffers yes
uppercase no
cpu_avg_samples 4
override_utf8_locale no

##############################################
#  Output
##############################################
TEXT
S Y S T E M    I N F O
${hr}
$alignc${exec cat /etc/sabayon-edition}
Kernel:$alignr${exec uname -r}
Uptime:$alignr$uptime
Batterie:$alignr$battery_short / $battery_time

D I S K
${hr}
Disk used (/home):
${fs_bar /home}
Disk used (/):
${fs_bar /}
Disk read: $alignr${diskio_read}
#${diskiograph_read -l -t}
Disk write: $alignr${diskio_write}
#${diskiograph_write -l -t}

P R O C E S S E S
${hr}
CPU processes: $alignr${running_processes}/${processes}
CPU threads: $alignr[${running_threads}]
CPU usage:$alignr${cpu cpu1}%/${freq cpu1}MHz
${cpugraph cpu1 OOBBEE FFFFFF -t}
CPU usage:$alignr${cpu cpu2}%/${freq cpu1}MHz
${cpugraph cpu2 OOBBEE FFFFFF -t}

By CPU $alignr   PID    CPU
$hr
${top name 1} $alignr ${top pid 1} ${top cpu 1}
${top name 2} $alignr ${top pid 2} ${top cpu 2}
${top name 3} $alignr ${top pid 3} ${top cpu 3}
${top name 4} $alignr ${top pid 4} ${top cpu 4}
${top name 5} $alignr ${top pid 5} ${top cpu 5}
${top name 6} $alignr ${top pid 6} ${top cpu 6}
${top name 7} $alignr ${top pid 7} ${top cpu 7}
${top name 8} $alignr ${top pid 8} ${top cpu 8}
${top name 9} $alignr ${top pid 9} ${top cpu 9}
${top name 10} $alignr ${top pid 10} ${top cpu 10}

By MEM $alignr   PID   MEM
$hr
${top_mem name 1} $alignr ${top_mem pid 1} ${top_mem mem 1}
${top_mem name 2} $alignr ${top_mem pid 2} ${top_mem mem 2}
${top_mem name 3} $alignr ${top_mem pid 3} ${top_mem mem 3}
${top_mem name 4} $alignr ${top_mem pid 4} ${top_mem mem 4}
${top_mem name 5} $alignr ${top_mem pid 5} ${top_mem mem 5}

MEM free:$alignr$memfree/$memmax
${membar}

D M E S G
$hr
${exec dmesg | tail -5  | fold -w44}
$hr


Second one with psad code commented because useless on latop
Code: [Select]
background no
own_window yes
own_window_class Conky
own_window_type normal
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager 
own_window_transparent yes

use_xft yes
xftfont Bitstream Vera Sans Mono Roman:size=7
xftalpha 1
update_interval 1.0
total_run_times 0

double_buffer yes
minimum_size 220 180
maximum_width 220
draw_shades yes
draw_outline no
draw_borders no
draw_graph_borders yes
default_color 00BBEE
default_shade_color 000000
default_outline_color 828282
alignment top_right
gap_x 12
gap_y 56
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale no

##############################################
#  Output
##############################################
TEXT
N E T W O R K
${hr}
Ext IP $alignr ${exec curl http://ipecho.net/plain; echo}

Wlan IP $alignr ${addr wlp3s0}
ESSID $alignr ${wireless_essid wlp3s0}
Quality $alignr ${wireless_link_qual_perc wlp3s0}%
Inbound $alignr ${downspeed wlp3s0}/s
${downspeedgraph  wlp3s0 00BBEE FFFFFF -t}
Outbound $alignr ${upspeed wlp3s0}/s
${upspeedgraph wlp3s0 00BBEE FFFFFF -t}

Wwan0 IP $alignr ${addr wwp0s29f7u4i7}
Inbound $alignr ${downspeed wwp0s29f7u4i7}/s
${downspeedgraph  wwp0s29f7u4i7 00BBEE FFFFFF -t}
Outbound $alignr ${upspeed wwp0s29f7u4i7}/s
${upspeedgraph wwp0s29f7u4i7 00BBEE FFFFFF -t}

Eth0 $alignr ${addr enp0s25}
Inbound $alignr ${downspeed enp0s25}/s
${downspeedgraph enp0s25 00BBEE FFFFFF -t}
Outbound $alignr ${upspeed enp0s25}/s
${upspeedgraph enp0s25 00BBEE FFFFFF  -t}

Open ports: ${alignr}[${tcp_portmon 1 65535 count}]
IP${alignr}DPORT
${tcp_portmon 1 65535 rip  0}${alignr 1}${tcp_portmon 1 65535 rport  0}
${tcp_portmon 1 65535 rip  1}${alignr 1}${tcp_portmon 1 65535 rport  1}
${tcp_portmon 1 65535 rip  2}${alignr 1}${tcp_portmon 1 65535 rport  2}
${tcp_portmon 1 65535 rip  3}${alignr 1}${tcp_portmon 1 65535 rport  3}
${tcp_portmon 1 65535 rip  4}${alignr 1}${tcp_portmon 1 65535 rport  4}
${tcp_portmon 1 65535 rip  5}${alignr 1}${tcp_portmon 1 65535 rport  5}
${tcp_portmon 1 65535 rip  6}${alignr 1}${tcp_portmon 1 65535 rport  6}
${tcp_portmon 1 65535 rip  7}${alignr 1}${tcp_portmon 1 65535 rport  7}
${tcp_portmon 1 65535 rip  8}${alignr 1}${tcp_portmon 1 65535 rport  8}
${tcp_portmon 1 65535 rip  9}${alignr 1}${tcp_portmon 1 65535 rport  9}
${tcp_portmon 1 65535 rip 10}${alignr 1}${tcp_portmon 1 65535 rport 10}
${tcp_portmon 1 65535 rip 11}${alignr 1}${tcp_portmon 1 65535 rport 11}
${tcp_portmon 1 65535 rip 12}${alignr 1}${tcp_portmon 1 65535 rport 12}
${tcp_portmon 1 65535 rip 13}${alignr 1}${tcp_portmon 1 65535 rport 13}
${tcp_portmon 1 65535 rip 14}${alignr 1}${tcp_portmon 1 65535 rport 14}

#Last attackers:
#${execi 60 echo $(awk 'NR==4, NF && !/#/ {print $1}' "/var/log/psad/top_attackers")}
#${execi 60 echo $(awk 'NR==6, NF && !/#/ {print $1}' "/var/log/psad/top_attackers")}
#${execi 60 echo $(awk 'NR==8, NF && !/#/ {print $1}' "/var/log/psad/top_attackers")}


startup script / rerun script
Code: [Select]
#!/bin/bash

if pgrep -f "conky -c $1"
then
killall conky
(sleep 2s && conky -c ~/.conkyrc1) &
(sleep 2s && conky -c ~/.conkyrc2) &
exit
else
(sleep 2s && conky -c ~/.conkyrc1) &
(sleep 2s && conky -c ~/.conkyrc2) &
exit
fi
exit

If i've time to waste i'll try to add powertop output (to see that conky is the first energy consummer behind my laptop fan…)
« Last Edit: 29. April 2013, 21:50:05 by dRo07 »
Manjaro single boot
Xfce4 | Compiz
Lenovo ThinkPad X200 7459 X4T (wwan/gps)

Offline diggingman

  • Vollwertiges Mitglied
  • ***
  • Posts: 125
    • Trevor W Martin Photography
  • Branch: Stable
  • Desktop: Openbox
  • GPU Card: Nvidia GTX 460
  • GPU driver: non-free
  • Kernel: linux317_x64
  • Skill: Intermediate
Re: Conky thread, show your work!
« Reply #21 on: 02. May 2013, 17:34:44 »


My first Conky, based on a few I found online, I still have a few tweaks I'd like to do.

.conkyrc
Code: [Select]
#  Basic Settings

background no
use_xft yes
xftfont 123:size=10
xftalpha 0.1
update_interval 1
total_run_times 0
own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
 
maximum_size 1680 1050
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
default_color lightgray
default_shade_color red
default_outline_color green
alignment top_right
gap_x 24
 
no_buffers yes
uppercase no
cpu_avg_samples 2
net_avg_samples 2
override_utf8_locale yes
use_spacer none
 
TEXT
$color${font}${font Open Sans:size=26}$alignr${time %I:%M %P}$font
${color sienna}${font Open Sans:Bold:size=11}Date${hr 2}$color$font
$color${font Open Sans:size=12}$alignr${time %a}, ${time %d %b %Y}$font$color
 
# SYS
${font Open Sans:Bold:size=11}${color sienna}SYSTEM${hr 2}$color${font}
$sysname $kernel $alignr $machine
Uptime $alignr $uptime
MB Temperature $alignr ${execi 30 sensors | grep 'SYSTIN:' | cut -c17-18}°C
GPU Temperature $alignr ${execi 60 nvidia-settings -query GPUCoreTemp | perl -ne 'print $1 if /GPUCoreTemp.*?: (\d+)./;'}°C
 
# CPU
${font Open Sans:Bold:size=11}${color sienna}CPU${hr 2}
$color${font}Intel i5 2500k $alignr ${freq_g cpu0}GHz
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
${font}Core 0 ${color sienna}${execi 30 sensors | grep 'Core 0:' | cut -c18-19}°C${color} @ ${cpu cpu1} % $alignc ${cpubar cpu1}${color}
${font}Core 1 ${color sienna}${execi 30 sensors | grep 'Core 1:' | cut -c18-19}°C${color} @ ${cpu cpu2} % $alignc ${cpubar cpu2}${color}
${font}Core 2 ${color sienna}${execi 30 sensors | grep 'Core 2:' | cut -c18-19}°C${color} @ ${cpu cpu3} % $alignc ${cpubar cpu3}${color}
${font}Core 3 ${color sienna}${execi 30 sensors | grep 'Core 3:' | cut -c18-19}°C${color} @ ${cpu cpu4} % $alignc ${cpubar cpu4}${color}

 
# TOP
${font Open Sans:Bold:size=11}${color sienna}TOP${hr 2}
$color${font}${font Open Sans:bold:size=8.5}PROCESS $alignr CPU USAGE$font
${top name 1}${alignr}${top cpu 1} %
${top name 2}${alignr}${top cpu 2} %
${top name 3}${alignr}${top cpu 3} %
${top name 4}${alignr}${top cpu 4} %
${top name 5}${alignr}${top cpu 5} %
 
# MEMORY
${font Open Sans:Bold:size=11}${color sienna}MEMORY${hr 2}
$color${font}${font Open Sans:bold:size=8.5}RAM$font
$mem / $memmax $alignr $memperc %
$membar
 
${font Open Sans:bold:size=8.5}SWAP$font
$swap / $swapmax $alignr $swapperc
${swapbar};
 
# NETWORK
${font Open Sans:Bold:size=10}${color sienna}Network${hr 2}
$color${font Open Sans:bold:size=10}External IP ${font}${alignr}${execi 3600 wget -O - http://ip.tupeux.com | tail}$font
SSID: $alignr ${wireless_essid wlp8s0}
${font Open Sans:bold:size=8.5}IP $font$alignr ${addr wlp8s0}
down $alignr ${downspeedf wlp8s0} kb/s
up $alignr ${upspeedf wlp8s0} kb/s
down total ${totaldown wlp8s0} $alignr up total ${totalup eth0}

Connection Quality: $alignr ${wireless_link_qual_perc wlp8s0}%
 
# HDD
${font Open Sans:Bold:size=10}${color sienna}Disks${hr 2}
 
${font Open Sans:bold:size=8.5}HOME $font$alignr ${fs_type /home}
${fs_used /home} / ${fs_size /home} ${color white}$alignr ${fs_used_perc /home} %
${fs_bar /home}

${font Open Sans:bold:size=8.5}Linux Storage $font$alignr ${fs_type /home/trevor/Storage}
${fs_used /home/trevor/Storage} / ${fs_size /home/trevor/Storage} $alignr ${fs_used_perc /home/trevor/Storage} %
${fs_bar /home/trevor/Storage}

# gmail
${font Open Sans:Bold:size=11}${color sienna}GMAIL ${hr 2}$color
${font Open Sans:Bold:size=11}${execpi 200 python ~/Scripts/gmail.py}

# weather
${font Open Sans:Bold:size=11}${color sienna}Weather ${hr 2}$color
${execi 1200 /home/trevor/Scripts/weather2.py enterzipcodehere}

#shortcuts
${font Open Sans:Bold:size=11}${color sienna}Shortcuts ${hr 2}$color
${font Open Sans:bold:size=8.5}Super f     File manager
${font Open Sans:bold:size=8.5}Super b     Browser
${font Open Sans:bold:size=8.5}Super f     Terminal
${font Open Sans:bold:size=8.5}Super e     Leafpad
${font Open Sans:bold:size=8.5}Super n     Nvidia Settings
${font Open Sans:bold:size=8.5}Super v     Virtualbox
${font Open Sans:bold:size=8.5}Super x     Logout


gmail.py
Code: [Select]
#!/usr/bin/env python
# -*- coding: UTF-8 -*-

import sys, imaplib

port = 993
server = 'imap.gmail.com'

username = 'enternamehere'
passwd = 'enterpasswordhere'

imap_server = imaplib.IMAP4_SSL(server, port)
try:
imap_server.login(username, passwd)
except:
print('?? New messages')
sys.exit( 1 )

typ, data = imap_server.select ('Inbox', True)
if typ == 'OK':
total = int(data[0])
typ, data = imap_server.search (None, 'SEEN')
if typ == 'OK':
seen = len(data[0].split())
print('{}/{} new'.format(total, total - seen))

if typ != 'OK':
print('?? New messages')

imap_server.logout()

weather.py
Code: [Select]
# !/usr/bin/bash
METRIC=0 #Should be 0 or 1; 0 for F, 1 for C
if [ -z $1 ]; then
    echo "USAGE: weather.sh <locationcode>"
    exit 0;
fi

wget -q http://rss.accuweather.com/rss/liveweather_rss.asp\?metric\=${METRIC}\&locCode\=$1 -O - | awk \
'/Currently:/ {CurWeather=$0}
/[0-9] Forecast<\/title>/ {nr=NR+5}
NR==nr    {postIndx[++x]=$0}
# x>2    {exit}
END{
    split(CurWeather,tmp,"Currently: ")
    split(tmp[2],tmp1,"<")
    CurWeather=sprintf("%s",tmp1[1])
    sub(":",",",CurWeather)
    for(x in postIndx){
    split(postIndx[x],tmp,";|&")
    split(tmp[1],tmp,">")
    split(tmp[2],statement," F ") # substitute C for F if metric differs
    split(tmp[2],temp)
    forecast[++y]=sprintf("%d-%dF %-15s",temp[5],temp[2],statement[3])
    }
    printf("WEATHER:\nNow: %s\nToday: %s\nTomorrow: %s",CurWeather,forecast[1],forecast[2])
}'
-Trevor-
Quote
“Google has great customer service. Problem is, you’re not the customer” -Bruce Schneier
My little classic camera site

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 #22 on: 07. May 2013, 08:10:46 »
I can't help you with your questions, but i have a link for you: http://conky.sourceforge.net/config_settings.html

And one thing to the conky code:

Code: [Select]
#######################################################################################
###  Conky by http://gnome-look.org/content/show.php/conky+gray?content=155967     ####
###  Modified by:http:www.NoobsLab.com and poker98face :)  ###                                           
#######################################################################################

This can't be right, because we used this conky config 2011 when we started Manjaro. I don't know who was the creator (maybe Roland himself), but i know that it was me who modified and enhanced it.
But it doesn't matter now who and when it was, just for your information. ;)

why did you guys stop using this script?  it works good  :D 

Offline eskaini

  • Security Team
  • *****
  • Posts: 10842
  • I eat deleted accounts
  • Skill: Novice
Re: Conky thread, show your work!
« Reply #23 on: 07. May 2013, 10:24:29 »
I don't know, maybe someone thought there are better ones.

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 #24 on: 07. May 2013, 21:47:15 »
Code: [Select]
${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}
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.

Offline StealthPenguin

  • Sr. Mitglied
  • ****
  • Posts: 296
  • When the student is ready, the master appears.
  • Branch: Stable
  • Desktop: Xfce
  • GPU Card: GTX 970
  • GPU driver: Proprietary
  • Kernel: Latest - x86
  • Skill: Advanced
Re: Conky thread, show your work!
« Reply #25 on: 07. May 2013, 21:54:51 »
http://www.noobslab.com/2012/12/conky-bar-for-ubuntulinux.html I downloaded it from here 
Great, thanks for the link.  Ill try to mess with it tomorrow. 


So i added just processor temperature and ip adress, removed network up/down and changed some colors 


Thank you all for help
Could you please post the config file?
« Last Edit: 07. May 2013, 21:58:22 by StealthPenguin »

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 #26 on: 08. May 2013, 00:30:32 »
does anyone have the conky from manjaro 2011?

Offline eskaini

  • Security Team
  • *****
  • Posts: 10842
  • I eat deleted accounts
  • Skill: Novice
Re: Conky thread, show your work!
« Reply #27 on: 08. May 2013, 00:32:48 »
Yes, i have it. I will post it tomorrow.

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 #28 on: 08. May 2013, 00:35:29 »
cool thanks!  :)

Offline eskaini

  • Security Team
  • *****
  • Posts: 10842
  • I eat deleted accounts
  • Skill: Novice
Re: Conky thread, show your work!
« Reply #29 on: 08. May 2013, 11:04:24 »
Here it is (from my VBox from 2011, never updated  ;D )

Code: [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 67db6d}${time %d.%m.%y}${color}  Time: ${color 67db6d}${time %H:%M}${color}  |  Kernel: ${color 67db6d}$kernel${color}  Arch: ${color 67db6d}$machine${color}  Up: ${color 67db6d}${uptime_short}${color}  |  Cpu: ${color 67db6d}${cpu}% ${cpugraph 5,50 ffffff 67db6d}${color}  Ram: ${color 67db6d}${memperc}% ${membar 5,50}${color}  Swap: ${color 67db6d}${swapperc}%${color}  Disk: ${color 67db6d}${fs_used_perc /}% ${fs_free /} ${fs_bar 5,20 /}${color}  |  IP: ${color 67db6d}${execpi 300 curl www.whatismyip.org}${color}  ${if_existing /proc/net/route eth0}Up: ${color 67db6d}${upspeed eth0} ${upspeedgraph eth0 5,30 ffffff 67db6d 150} ${totalup eth0}${color}  Down: ${color 67db6d}${downspeed eth0} ${downspeedgraph eth0 5,30 ffffff 67db6d 18} ${totaldown eth0}${color}${else}Network Unavailable${endif}${alignc}