Auteur Sujet: Conky Scripts + Photos  (Lu 9101 fois)

0 Membres et 2 Invités sur ce sujet

Hors ligne konaexpress

  • Membre Senior
  • ****
  • Messages: 284
Conky Scripts + Photos
« le: 18 mars 2013 à 16:26:29 »
Well..........

Someone had to start this thread.

Here is a plain and simple one that I got from Crunchbang and changed.

   # conky configuration
#
# The list of variables has been removed from this file in favour
# of keeping the documentation more maintainable.
# Check http://conky.sf.net for an up-to-date-list.
#

# Enjoy! :)
##############################################
# Settings
##############################################
background yes
use_xft yes
xftfont Liberation Sans:size=9
xftalpha 1
update_interval 1.0
total_run_times 0
own_window yes
own_window_transparent yes
own_window_type desktop
#own_window_argb_visual yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 200 200
maximum_width 240
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
default_color #FFFFFF
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
S Y S T E M    I N F O
${hr}
Host:$alignr$nodename
Uptime:$alignr$uptime
RAM:$alignr$mem/$memmax
Swap usage:$alignr$swap/$swapmax
Disk usage:$alignr${fs_used /}/${fs_size /}
CPU usage:$alignr${cpu cpu0}%



Screen shot 2013-03-18 at 8.58.44 AM by The Kona Express, on Flickr 

@ Taco.22, do you have a copy of that conky script that shows time zones in it.
« Modifié: 18 mars 2013 à 23:29:43 par konaexpress »

Hors ligne melodie

  • Administrateur
  • Membre Héroïque
  • *****
  • Messages: 1681
    • Citrotux
Re : Conky Scripts
« Réponse #1 le: 18 mars 2013 à 20:15:19 »
Very nice, simple and lean! But how come the cpu is 0% use in there ? That seems strange.

Good leaders being scarce, following yourself is allowed.

Hors ligne konaexpress

  • Membre Senior
  • ****
  • Messages: 284
Re : Re : Conky Scripts
« Réponse #2 le: 18 mars 2013 à 20:29:07 »
But how come the cpu is 0% use in there ? That seems strange.



hhhhhmmmmmmm...................don't know.

Hors ligne melodie

  • Administrateur
  • Membre Héroïque
  • *****
  • Messages: 1681
    • Citrotux
Re : Conky Scripts
« Réponse #3 le: 18 mars 2013 à 20:34:48 »
You could check what "htop" returns, and you could try having a look in ~/.xsession-errors where maybe some information about conky behavior may be available.

Good leaders being scarce, following yourself is allowed.

djohnston

  • Invité
Re : Re : Conky Scripts
« Réponse #4 le: 18 mars 2013 à 21:12:49 »
But how come the cpu is 0% use in there ? That seems strange.

The conkyrc is correct. On something as lean and mean as Crunchbang, the CPU will alternate between 0 and 1% at rest. That is normal. His screenshot just caught it at the 0% mark.


djohnston

  • Invité
Re : Conky Scripts
« Réponse #5 le: 18 mars 2013 à 21:23:55 »
Here's the conkyrc used for DebWeb. It was based on one Taco.22 created with time zone displays. I changed some colors and added ZRAM usage display.

# set to yes if you want Conky to be forked in the background
background yes
use_xft yes
xftfont sans:size=10
xftalpha 0.5
update_interval 1.0
total_run_times 0
own_window yes
own_window_type desktop
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 500 5
maximum_width 242
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders yes
   
default_color Gold
default_shade_color black
default_outline_color white

alignment top_right
gap_x 4
gap_y 2
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale no

TEXT
${color orange}${hr 2}
${color}${alignc}System
${color orange}${hr 2}   
${color}$sysname $kernel
${time %A %b %d, %Y %I:%M %p %Z}
Uptime: $uptime
Processes: $processes ${alignr}Running:$running_processes
${color orange}${hr 2}
${color}CPU: ${alignr}${cpu}%
${color green}${cpubar 6 cpu1}
${color}RAM: $mem of $memmax  ${alignr}$memperc%
${color green}${membar 6}
${color}SWAP: $swap of $swapmax  ${alignr}$swapperc%
${color green}${swapbar 6}
${color}Root: ${fs_used} of ${fs_free}${alignr}${fs_used_perc /}%
${color green}${fs_bar 6 /}
${color}${goto 50}AVAILABLE${goto 150}USED
ZRAM: ${exec cat /proc/swaps |grep zram |cut -f 2}KB         ${goto 150}${exec cat /proc/swaps |grep zram |cut -f 3}KB
${color orange}${hr 2}
${color}${alignc}Network
${color orange}${hr 2}
${color}${alignc}  eth0 ${addr eth0}
Inbound $alignr ${downspeed eth0} kb/s
${downspeedgraph eth0 00ff00 00ff00}
Outbound $alignr ${upspeed eth0} kb/s
${upspeedgraph eth0 00ff00 00ff00}
${color orange}${hr 2}
${color}${alignc}Timezones:
${color orange}${hr 2}
${color}London ${alignr}${tztime Europe/London %-I:%M %p}
Paris ${alignr}${tztime Europe/Paris %-I:%M %p}
Calcutta ${alignr}${tztime Asia/Kolkata %-I:%M %p}
Tokyo ${alignr}${tztime Asia/Tokyo %-I:%M %p}
Sydney ${alignr}${tztime Australia/Sydney %-I:%M %p}
Honolulu ${alignr}${tztime US/Hawaii %-I:%M %p}
Los Angeles ${alignr}${tztime America/Los_Angeles %-I:%M %p}
New York ${alignr}${tztime America/New_York %-I:%M %p}
${color orange}${hr 2}




Hors ligne konaexpress

  • Membre Senior
  • ****
  • Messages: 284
Re : Re : Conky Scripts
« Réponse #6 le: 18 mars 2013 à 21:45:13 »
Here's the conkyrc used for DebWeb. It was based on one Taco.22 created with time zone displays. I changed some colors and added ZRAM usage display.




Thats a nice one.

Hors ligne konaexpress

  • Membre Senior
  • ****
  • Messages: 284
Re : Re : Re : Conky Scripts
« Réponse #7 le: 18 mars 2013 à 21:48:03 »
The conkyrc is correct. On something as lean and mean as Crunchbang, the CPU will alternate between 0 and 1% at rest. That is normal. His screenshot just caught it at the 0% mark.

I will have to take a look at this, she maybe correct as I am using my small Bobcat distro and not CB at the moment of this screen capture. It is based off of Madbox so I would think it should use more ram and CPU.

djohnston

  • Invité
Re : Conky Scripts
« Réponse #8 le: 18 mars 2013 à 21:57:30 »
After a second look, she is right. You left out a set of curly braces. Here's mine:

${color}CPU: ${alignr}${cpu}%

Here's yours:

CPU usage:$alignr${cpu cpu0}%

Yours should be:

CPU usage:${alignr}${cpu cpu0}%

See if that works. If not, try:

CPU usage:${alignr}${cpu0 cpu1}%

I can't remember the syntax for displaying more than one CPU.

Hors ligne konaexpress

  • Membre Senior
  • ****
  • Messages: 284
Re : Conky Scripts
« Réponse #9 le: 18 mars 2013 à 22:14:48 »
Nope, it is working as you can tell by this screenshot.


Screen shot 2013-03-18 at 2.10.17 PM by The Kona Express, on Flickr

I just can't do the 3 finger shuffle fast enough to get the screen shot before the CPU dumps down.

djohnston

  • Invité
Re : Conky Scripts
« Réponse #10 le: 18 mars 2013 à 22:35:52 »
Okay. So, you made no changes? It was already working?

Hors ligne konaexpress

  • Membre Senior
  • ****
  • Messages: 284
Re : Re : Conky Scripts
« Réponse #11 le: 18 mars 2013 à 23:02:48 »
Okay. So, you made no changes? It was already working?

Yea, no changes. I was playing with my Conky Manager so I could edit the file to what you had when I noticed that the CPU meter was moving. It spiked at about  6% and dropped like a rock, I think it is the Gambas runtime doing that.

Hors ligne melodie

  • Administrateur
  • Membre Héroïque
  • *****
  • Messages: 1681
    • Citrotux
Re : Conky Scripts + Photos
« Réponse #12 le: 19 mars 2013 à 00:52:41 »
Well done!

I would like to have a conky with the content of djohnston's, and the transparency as the one kona has done (to put into the next OB Bento to come, and for my own use in Arch as well). Do you think it possible ?

Good leaders being scarce, following yourself is allowed.

djohnston

  • Invité
Re : Conky Scripts + Photos
« Réponse #13 le: 19 mars 2013 à 07:21:14 »
Both have transparency. It's the following line that does it:

own_window_transparent yes


Hors ligne patrick013

  • Membre Senior
  • ****
  • Messages: 252
Re : Conky Scripts + Photos
« Réponse #14 le: 23 mars 2013 à 04:18:55 »
SCORPIO





Couldn't get HD temp to work, it's on a flash drive.     But on a HD it would.
Have to clean up the script if anyone wants it.