MEPIS Community Forum

A Linux operating system based on Debian Stable
View unanswered posts | View unsolved topics | View active topics |



Reply to topic  [ 143 posts ]  Go to page Previous  1 ... 10, 11, 12, 13, 14, 15  Next
Conky setup thread 
Author Message
Post # 265494
Post Re: Conky setup thread
http://i51.tinypic.com/2m4d0nb.jpg

http://i56.tinypic.com/14183lt.jpg

Gotta keep things to a minimum on this old IBM a22m Laptop. Notice ram available and ram usage.

Code:
#avoid flicker
double_buffer yes

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

#borders
draw_borders no
border_margin 3

#shades
draw_shades no

#position
gap_x 0
gap_y 4
alignment top_left

#behaviour
update_interval 1

#colour
default_color 8f8f8f
#default_shade_color 000000
own_window_colour 262729

#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 1024 0

#mpd
#mpd_host localhost
#mpd_port 6600
#e0e0e0 color
TEXT
${alignc}Date: ${color 8f8f8f}${time %d/%m/%y}${color}  Time: ${color 8f8f8f}${time %H:%M}${color}  |  Kernel: ${color 8f8f8f}$kernel${color}  Uptime: ${color 8f8f8f}${uptime_short}${color}  |  Cpu: ${color 8f8f8f}${cpu}%${color}  Ram: ${color 8f8f8f}${memperc}%${color}  Swap: ${color 8f8f8f}${swapperc}%${color}  Disk: ${color 8f8f8f}${fs_used_perc /}%${color} Home: ${color 8f8f8f}${fs_used_perc /home}%${color} | Cpu: ${color 8f8f8f}${acpitemp}°C${color}  Disk: ${color 8f8f8f}${acpitemp}°C${color}  |  ${if_existing /proc/net/route wlan0}Signal: ${color 8f8f8f}${wireless_link_qual wlan0}%${color}  Up: ${color 8f8f8f}${upspeed wlan0} kb/s${color}  Down: ${color 8f8f8f}${downspeed wlan0} kb/s${color}${else}${if_existing /proc/net/route eth0}Up: ${color 8f8f8f}${upspeed eth0} kb/s${color}  Down: ${color 8f8f8f}${downspeed eth0} kb/s${color}${endif}${else}Network Unavailable${endif}${alignc}


Simple keeps the ram usage down.


Mon Mar 14, 2011 12:26 am
MEPIS Guide
MEPIS Guide
User avatar

Joined: Tue Feb 06, 2007 11:47 pm
Posts: 1772
Location: Cranbrook, BC
Has thanked: 224 times
Have thanks: 95 times
Post # 268577
Post Re: Conky setup thread
I came across these sports conkys that created with python. I seem to be only getting some of the information and just wonder what I might be missing. Any help appreciated.

baseball.py
Quote:
#!/usr/bin/env python

import os

filename = "http://scores.espn.go.com/mlb/standings | egrep -A17 'American League'"
cmd = os.popen("lynx -nonumbers -dump %s" % filename)

output = cmd.read()
cmd.close()
print output


Conky file
Quote:
# --- Window Layout & Options --- #
own_window yes
own_window_colour brown
own_window_transparent yes
own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
use_xft yes
alignment bottom_right
gap_x 14
gap_y 350
# --- Window Layout & Options --- #
own_window yes
own_window_colour brown
own_window_transparent yes
own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
use_xft yes
alignment bottom_right
gap_x 14
gap_y 350
# --- Colours, Sizes, Fonts & Margins --- #
update_interval 1
maximum_width 350
stippled_borders 3
border_inner_margin 9
border_width 9
default_color grey

# --- Text --- #
draw_outline no
draw_borders no
font Monospace:size=8:weight=bold
uppercase no
draw_shades no

TEXT
${texeci 3600 feh --bg-scale "/usr/share/wallpapers/MEPIS11.0-wallpaper.jpg"}


${color lightblue}NHL ${hr 2}$color
${font freemono:size=10}${color white}${execi 30 python ~/.conky/conkyparts/hockey.py}


You do not have the required permissions to view the files attached to this post.

_________________
There is no "Ctrl+Z" in life!
Asus P8Z68-V Pro, Intel i5 2500 Quad, Intel, DWA-552, 2-640 GB, Mepis 11 4.8.4/Win 8
HP DV4-1118 Mepis 12 4.8.4 & Win 8.1
HP P1005/CP1215 Printers
Linux User# 4523410
BB Z10 is here, now we need Linux syncing


Sat Apr 09, 2011 1:43 am
Profile
MEPIS Enthusiast
MEPIS Enthusiast
User avatar

Joined: Fri Dec 15, 2006 8:07 pm
Posts: 8136
Location: Skullcrusher Mountain, Santee, CA USA
Has thanked: 477 times
Have thanks: 1668 times
Post # 268647
Post Re: Conky setup thread
Where's the origin of these conky files? I see that the python file needs at least the "lynx" browser installed, probably other python-modules also.


Sat Apr 09, 2011 5:02 pm
Profile
MEPIS Guide
MEPIS Guide
User avatar

Joined: Tue Feb 06, 2007 11:47 pm
Posts: 1772
Location: Cranbrook, BC
Has thanked: 224 times
Have thanks: 95 times
Post # 268654
Post Re: Conky setup thread
The "py" file is located in /.conky/conkyparts/. The actual conky file is in /home. as .conkyrc1

I have installed lynx.

I got the info from the Ubuntu forums and the image that was displayed with the file info, exactly the same as mine, showed all of the teams in the eastern division. Mine only shows a portion of them.

I tried the same layout for the NHL and again only got the first couple of lines in the standings.

_________________
There is no "Ctrl+Z" in life!
Asus P8Z68-V Pro, Intel i5 2500 Quad, Intel, DWA-552, 2-640 GB, Mepis 11 4.8.4/Win 8
HP DV4-1118 Mepis 12 4.8.4 & Win 8.1
HP P1005/CP1215 Printers
Linux User# 4523410
BB Z10 is here, now we need Linux syncing


Sat Apr 09, 2011 5:19 pm
Profile
MEPIS Enthusiast
MEPIS Enthusiast
User avatar

Joined: Fri Dec 15, 2006 8:07 pm
Posts: 8136
Location: Skullcrusher Mountain, Santee, CA USA
Has thanked: 477 times
Have thanks: 1668 times
Post # 268663
Post Re: Conky setup thread
smilliken wrote:
The "py" file is located in /.conky/conkyparts/. The actual conky file is in /home. as .conkyrc1

I have installed lynx.

I got the info from the Ubuntu forums and the image that was displayed with the file info, exactly the same as mine, showed all of the teams in the eastern division. Mine only shows a portion of them.

I tried the same layout for the NHL and again only got the first couple of lines in the standings.



Try running your python file on the command line:

python baseball.py

If you get the correct display, then it's something in the conky window settings.


Sat Apr 09, 2011 6:26 pm
Profile
MEPIS Guide
MEPIS Guide
User avatar

Joined: Tue Feb 06, 2007 11:47 pm
Posts: 1772
Location: Cranbrook, BC
Has thanked: 224 times
Have thanks: 95 times
Post # 268697
Post Re: Conky setup thread
Stevo wrote:
smilliken wrote:
The "py" file is located in /.conky/conkyparts/. The actual conky file is in /home. as .conkyrc1

I have installed lynx.

I got the info from the Ubuntu forums and the image that was displayed with the file info, exactly the same as mine, showed all of the teams in the eastern division. Mine only shows a portion of them.

I tried the same layout for the NHL and again only got the first couple of lines in the standings.



Try running your python file on the command line:

python baseball.py

If you get the correct display, then it's something in the conky window settings.


Yup, that works just as it should. Must be the conky file.

Edit: don't see anything in the file to stop it from displaying everything.

_________________
There is no "Ctrl+Z" in life!
Asus P8Z68-V Pro, Intel i5 2500 Quad, Intel, DWA-552, 2-640 GB, Mepis 11 4.8.4/Win 8
HP DV4-1118 Mepis 12 4.8.4 & Win 8.1
HP P1005/CP1215 Printers
Linux User# 4523410
BB Z10 is here, now we need Linux syncing


Sat Apr 09, 2011 11:25 pm
Profile

Joined: Wed Oct 24, 2007 2:04 am
Posts: 133
Has thanked: 7 times
Have thanks: 5 times
Post # 268936
Post Re: Conky setup thread
Just what I was looking for, that baseball script looks nifty. I haven't worked with python at all, is there anyone out there that could modify it to not only show standings, but display a team's scoreboard too? for the MN twins in the american league central division.

I'd also like the same thing in an nfl flavor. NFC north, mn vikings.

Stevo was nice enough to find this link: http://ubuntuforums.org/showthread.php? ... b&t=765763
What would be ideal would be to have the teams in the division & their records above a simple scoreboard that showed points scored each inning/quarter. Like this (roughly, delete 'INN' and replace with whitespace):

KC 3-1
CWS 2-1
MIN 1-3
CLE 1-2
DET 1-2
INN 1 2 3 4 5 6 7 8 9 R H E
MIN 0 0 1 0 2 0 0 0 1 4 10 2
TOR 0 0 0 1 0 1 0 0 1 3 8 2

But anything close to that would be nice. If anyone could build this or point me in the right direction to make this up myself, I'd appreciate it. I would do it myself but I haven't dealt with python or inserting this kind of thing into conky.


Tue Apr 12, 2011 2:10 am

Kent88 thanked by: smilliken
Profile
MEPIS Guide
MEPIS Guide
User avatar

Joined: Tue Feb 06, 2007 11:47 pm
Posts: 1772
Location: Cranbrook, BC
Has thanked: 224 times
Have thanks: 95 times
Post # 269028
Post Re: Conky setup thread
I copied the lines into a new conky I'm working and it work perfectly.

Yes, the Unbuntu forums have a ton of posts with conky info. There are some very elaborate scripts and wild looking conky's. Sky seems to be the limit.

_________________
There is no "Ctrl+Z" in life!
Asus P8Z68-V Pro, Intel i5 2500 Quad, Intel, DWA-552, 2-640 GB, Mepis 11 4.8.4/Win 8
HP DV4-1118 Mepis 12 4.8.4 & Win 8.1
HP P1005/CP1215 Printers
Linux User# 4523410
BB Z10 is here, now we need Linux syncing


Tue Apr 12, 2011 3:06 pm
Profile
MEPIS Guide
MEPIS Guide
User avatar

Joined: Tue Feb 06, 2007 11:47 pm
Posts: 1772
Location: Cranbrook, BC
Has thanked: 224 times
Have thanks: 95 times
Post # 289897
Post Re: Conky setup thread
Looking for some help with the temp of the CPU's in conky. It was working, did some changes and now it just shows 0 degrees Celsius. lm-sensors is installed and has been run:
Code:
Scott@Mepis11:~$ sensors
radeon-pci-0100
Adapter: PCI adapter
temp1:       +51.5°C                                   

atk0110-acpi-0
Adapter: ACPI interface
Vcore Voltage:      +1.08 V  (min =  +0.80 V, max =  +1.60 V)
 +3.3 Voltage:      +3.36 V  (min =  +2.97 V, max =  +3.63 V)
 +5 Voltage:        +5.09 V  (min =  +4.50 V, max =  +5.50 V)
 +12 Voltage:      +12.32 V  (min = +10.20 V, max = +13.80 V)
CPU FAN Speed:      907 RPM  (min =  600 RPM)
CHASSIS1 FAN Speed:   0 RPM  (min =  600 RPM)
POWER FAN Speed:      0 RPM  (min =  600 RPM)
CPU Temperature:    +21.0°C  (high = +60.0°C, crit = +95.0°C) 
MB Temperature:     +29.0°C  (high = +45.0°C, crit = +95.0°C) 

coretemp-isa-0000
Adapter: ISA adapter
Core 0:      +28.0°C  (high = +74.0°C, crit = +100.0°C) 
Core 1:      +34.0°C  (high = +74.0°C, crit = +100.0°C) 
Core 2:      +35.0°C  (high = +74.0°C, crit = +100.0°C) 
Core 3:      +35.0°C  (high = +74.0°C, crit = +100.0°C) 

w83667hg-isa-0290
Adapter: ISA adapter
Vcore:       +1.09 V  (min =  +0.00 V, max =  +1.74 V)   
in1:         +1.76 V  (min =  +0.19 V, max =  +0.28 V)   ALARM
AVCC:        +3.38 V  (min =  +2.98 V, max =  +3.63 V)   
+3.3V:       +3.36 V  (min =  +2.98 V, max =  +3.63 V)   
in4:         +1.70 V  (min =  +0.04 V, max =  +1.15 V)   ALARM
in5:         +2.04 V  (min =  +0.02 V, max =  +0.58 V)   ALARM
3VSB:        +3.38 V  (min =  +2.98 V, max =  +3.63 V)   
Vbat:        +3.26 V  (min =  +2.70 V, max =  +3.30 V)   
fan1:          0 RPM  (min = 21093 RPM, div = 64)  ALARM
fan2:        907 RPM  (min = 21093 RPM, div = 16)  ALARM
fan3:          0 RPM  (min = 21093 RPM, div = 64)  ALARM                                                                                 
fan4:          0 RPM  (min = 42187 RPM, div = 32)  ALARM                                                                                 
fan5:          0 RPM  (min = 42187 RPM, div = 32)  ALARM
temp1:       +29.0°C  (high = +48.0°C, hyst = +100.0°C)  sensor = thermistor
temp2:       +21.0°C  (high = +80.0°C, hyst = +75.0°C)  sensor = diode
temp3:       +26.5°C  (high = +80.0°C, hyst = +75.0°C)  sensor = thermistor
cpu0_vid:   +3.100 V


Conky command:
Code:
${voffset 4}${font DroidSans:bold:size=8.5}${color4}CPU${offset 8}${color8}${voffset -2}${hr 2}${font}
#
${font Arial:bold:size=8.25}${color #1676B1}${execi 99999 cat /proc/cpuinfo | grep "model name" -m1 | cut -d":" -f2 | cut -d" " -f2- | sed 's#Processor ##'}${font}
${color white}Freq:$color ${freq_g 2}GHz Cpu:${color white}${cpu}% ${color white}Pro's:$color $running_processes/ $processes
${color4}CPU1:
${color4}${cpubar cpu0 3,300} ${color #cc0033}$color
${color}CPU Temp: ${color #FFFF00}${acpitemp}${color}Celsius
${color4}CPU2:
${color4}${cpubar cpu1 3,300} ${color #cc0033}$color
${color}CPU Temp: ${color #FFFF00}${acpitemp}${color}Celsius
${color4}CPU3:
${color4}${cpubar cpu2 3,300} ${color #cc0033}$color
${color}CPU Temp: ${color #FFFF00}${acpitemp}${color}Celsius
${color4}CPU4:
${color4}${cpubar cpu3 3,300} ${color #cc0033}$color
${color}CPU Temp: ${color #FFFF00}${acpitemp}${color}Celsius


Any help much appreciated.

_________________
There is no "Ctrl+Z" in life!
Asus P8Z68-V Pro, Intel i5 2500 Quad, Intel, DWA-552, 2-640 GB, Mepis 11 4.8.4/Win 8
HP DV4-1118 Mepis 12 4.8.4 & Win 8.1
HP P1005/CP1215 Printers
Linux User# 4523410
BB Z10 is here, now we need Linux syncing


Sat Dec 03, 2011 4:13 pm
Profile
Post # 289902
Post Re: Conky setup thread
Try

Code:
${execpi 3 sensors | grep "Core 0" | awk '{print $3}' | cut -c2-3}


for cpu temp. It works for me when acpi fails in newer kernels.

Attachment:
conky 1.jpg


Mine is a pentium 4 single core processor. Edit the "Core 0" part to fit your multi processors like "Core 1", "Core 2", etc......

Just another one you can try also that I use in case the above does not work for you.

Code:
${color}Temp: ${color} ${hwmon temp 1}C


You do not have the required permissions to view the files attached to this post.


Sat Dec 03, 2011 5:05 pm
Display posts from previous:  Sort by  
Reply to topic   [ 143 posts ]  Go to page Previous  1 ... 10, 11, 12, 13, 14, 15  Next

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.