Page 2 of 2
Posted: Tue 18 May 2010, 14:44
by stu90
Code: Select all
${alignc}${voffset -1}CPU: ${color e0e0e0}${font}${cpu cpu1}% ${color} CPU1: ${color e0e0e0}${font}${cpu cpu2}% ${color} | ${alignc} ${voffset -1} Mem: ${color e0e0e0}${font}${memperc}% ${color} | ${color} Uptime: ${color e0e0e0}${font}${uptime_short}${color} | ${color} Down: ${color} ${totaldown wlan0} | Up: ${totalup wlan0} | ${color}Root: ${color e0e0e0}${font}${fs_free /} ${color} | ${color0}CPU Temp: ${color e0e0e0}${acpitemp}
Posted: Wed 19 May 2010, 14:00
by aragon
jakfish wrote:What a great thread. I'm almost there, have everything working, but would like to know: how do I display my pupsave file in mbs rather than kbs?
bebebop, I'm using:
${color2}Pupsave free/:${color2}${alignr}${execi 5 ~/conky/calcfreespace.sh}
Though my calcfreespace.sh is in /usr/sbin. Are you using a modified calcfreespace.sh to display your pupsave in mbs?
Thanks for any advice,
Jake
You may try to simple
aragon
Posted: Wed 19 May 2010, 14:20
by jakfish
aragon--
That's it! Many thanks. For reference, this is the command (with yellow and gray color output):
${color yellow}pupsave:${color2} ${execi 5 cat /tmp/pup_event_sizefreem}MiB ${color grey} free
Much obliged,
Jake
Puppy Dingo
Posted: Wed 19 May 2010, 17:04
by rokytnji
Code: Select all
# set to yes if you want Conky to be forked in the background
background yes
cpu_avg_samples 2
net_avg_samples 2
#out_to_console no
# X font when Xft is disabled, you can pick one with program xfontsel
#font 7x12
#font 6x10
#font 7x13
font 8x12
#font 7x12
#font *mintsmild.se*
#font -*-*-*-*-*-*-34-*-*-*-*-*-*-*
#font -artwiz-snap-normal-r-normal-*-*-100-*-*-p-*-iso8859-1
# Use Xft?
use_xft yes
# Xft font when Xft is enabled
xftfont DejaVu Sans:size=10
own_window_transparent yes
own_window_colour black
# Text alpha when using Xft
xftalpha 0.8
#on_bottom no
# mail spool
mail_spool $MAIL
# Update interval in seconds
update_interval 1
# Create own window instead of using desktop (required in nautilus)
own_window yes
# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes
# Minimum size of text area
minimum_size 200 5
maximum_width 200
# Draw shades?
draw_shades yes
# Draw outlines?
draw_outline no
# Draw borders around text
draw_borders no
# Stippled borders?
stippled_borders 0
# border margins
border_margin 15
# border width
border_width 1
# Default colors and also border colors
default_color 000000
default_shade_color black
default_outline_color green
# Text alignment, other possible values are commented
#alignment top_left
alignment middle_right
#alignment bottom_left
#alignment bottom_right
# Gap between borders of screen and text
gap_x 30
gap_y 15
# Add spaces to keep things from moving about? This only affects certain objects.
use_spacer right
# Subtract file system buffers from used memory?
no_buffers yes
# set to yes if you want all text to be in uppercase
uppercase no
# boinc (seti) dir
# seti_dir /opt/seti
# Possible variables to be used:
#
# Variable Arguments Description
# acpiacadapter ACPI ac adapter state.
# acpifan ACPI fan state
# acpitemp ACPI temperature.
# adt746xcpu CPU temperature from therm_adt746x
# adt746xfan Fan speed from therm_adt746x
# battery (num) Remaining capasity in ACPI or APM
# battery. ACPI battery number can be
# given as argument (default is BAT0).
# buffers Amount of memory buffered
# cached Amount of memory cached
# color (color) Change drawing color to color
# cpu CPU usage in percents
# cpubar (height) Bar that shows CPU usage, height is
# bar's height in pixels
# downspeed net Download speed in kilobytes
# downspeedf net Download speed in kilobytes with one
# decimal
# exec shell command Executes a shell command and displays
# the output in torsmo. warning: this
# takes a lot more resources than other
# variables. I'd recommend coding wanted
# behaviour in C and posting a patch :-).
# execi interval, shell Same as exec but with specific interval.
# command Interval can't be less than
# update_interval in configuration.
# fs_bar (height), (fs) Bar that shows how much space is used on
# a file system. height is the height in
# pixels. fs is any file on that file
# system.
# fs_free (fs) Free space on a file system available
# for users.
# fs_free_perc (fs) Free percentage of space on a file
# system available for users.
# fs_size (fs) File system size
# fs_used (fs) File system used space
# hr (height) Horizontal line, height is the height in
# pixels
# i2c (dev), type, n I2C sensor from sysfs (Linux 2.6). dev
# may be omitted if you have only one I2C
# device. type is either in (or vol)
# meaning voltage, fan meaning fan or temp
# meaning temperature. n is number of the
# sensor. See /sys/bus/i2c/devices/ on
# your local computer.
# kernel Kernel version
# loadavg (1), (2), (3) System load average, 1 is for past 1
# minute, 2 for past 5 minutes and 3 for
# past 15 minutes.
# machine Machine, i686 for example
# mails Mail count in mail spool. You can use
# program like fetchmail to get mails from
# some server using your favourite
# protocol. See also new_mails.
# mem Amount of memory in use
# membar (height) Bar that shows amount of memory in use
# memmax Total amount of memory
# memperc Percentage of memory in use
# new_mails Unread mail count in mail spool.
# nodename Hostname
# outlinecolor (color) Change outline color
# pre_exec shell command Executes a shell command one time before
# torsmo displays anything and puts output
# as text.
# processes Total processes (sleeping and running)
# running_processes Running processes (not sleeping),
# requires Linux 2.6
# shadecolor (color) Change shading color
# stippled_hr (space), Stippled (dashed) horizontal line
# (height)
# swapbar (height) Bar that shows amount of swap in use
# swap Amount of swap in use
# swapmax Total amount of swap
# swapperc Percentage of swap in use
# sysname System name, Linux for example
# time (format) Local time, see man strftime to get more
# information about format
# totaldown net Total download, overflows at 4 GB on
# Linux with 32-bit arch and there doesn't
# seem to be a way to know how many times
# it has already done that before torsmo
# has started.
# totalup net Total upload, this one too, may overflow
# updates Number of updates (for debugging)
# upspeed net Upload speed in kilobytes
# upspeedf net Upload speed in kilobytes with one
# decimal
# uptime Uptime
# uptime_short Uptime in a shorter format
#
# seti_prog Seti@home current progress
# seti_progbar (height) Seti@home current progress bar
# seti_credit Seti@hoome total user credit
## antiX additives examples. Add below Text##
##${color cccccc}battery: ${color cccccc}$acpiacadapter, ${battery_percent BAT1}%
##${color white}battery:${color white} ${battery}
##Witeless example##
#${color cccccc}Wireless:
#${color cccccc}essid: ${wireless_essid wlan0}
#${color cccccc}IP:${color cccccc} ${addr wlan0}
#${color cccccc}speed: ${color cccccc} ${wireless_bitrate wlan0}
#${color cccccc}link strength: ${color cccccc} ${wireless_link_bar 7,50 wlan0}
# stuff after 'TEXT' will be formatted on screen
TEXT
${shadecolor a53d10}${font Swift:size=20}${color e6be6b}BIKER$font
${color e6be6b}${hr 2}$shadecolor
${font DejaVu Sans:size=14}${color ddd652}Puppy Dingo$font
${color fdb341}$sysname $kernel
${color fdb341}Uptime: ${color green}$uptime
${color 000000}${hr 2}
${color red}CPU ${color ffffff}Usage: ${color red}$cpu%
${shadecolor 6B0000}${color black}${cpugraph 30,200 0000f4 f10a0a}$shadecolor
${color ffffff}Frequency: ${color gold}$freq ${color gold}MHz
${color 7091c1}RAM ${color ffffff}Usage: ${color 7091c1}$memperc%
${shadecolor 6B0000}${color black}${memgraph 30,200 f10a0a 7091c1}$shadecolor
${color 7091c1}$mem${color ffffff}/${color ffffff}$memmax
${color 7091c1}$buffers ${color 54f729} Buffered
${color 7091c1}$cached ${color d58e2b} Cached
${color orange}Swap ${color ffffff}Usage:
${color orange}$swap${color ffffff}/${color ffffff}$swapmax ${color ffffff}- ${color ffffff}$swapperc%
${color orange}$swapbar
${color ffffff}Free Space:
${color b555b2}/root:${color b555b2} ${fs_free /} ${color ffffff}= ${fs_free_perc /}%
${color ffffff}Networking:
Up:${color 14f3ff}${upspeed wlan0} ${color ffffff} - Down:${color green}${downspeed wlan0}
${font DejaVuSansMono:size=8}${color ffffff}Running processes: ${color ffffff}$running_processes$font
${font DejaVuSansMono:size=8}${color ffffff}Name ${color red}CPU% ${color 7091c1}MEM%$font
${font DejaVuSansMono:size=8}${color ffffff} ${top name 1} ${color red}${top cpu 1} ${color 7091c1}${top mem 1}$font
${font DejaVuSansMono:size=8}${color ffffff} ${top name 2} ${color red}${top cpu 2} ${color 7091c1}${top mem 2}$font
${font DejaVuSansMono:size=8}${color ffffff} ${top name 3} ${color red}${top cpu 3} ${color 7091c1}${top mem 3}$font
${color ffffff}link strength: ${color ffffff} ${wireless_link_bar 7,50 wlan0}
${color ffffff}Battery: ${color red}$acpiacadapter, ${battery_bar BAT0}
${color ffffff}Battery:${color red} ${battery}
${color ffffff}${time %a %d %b %l:%M:%S%p}
${font Penguin Attack}${color b5550b}Conky ${color b5550b}$conky_version$font
Posted: Thu 20 May 2010, 12:59
by bebebop
Abushcrafter - I'm running Browserpup431 & K9-005 from a usb stick.
Jakfish - I'm using the standard calcfreespace script, interestingly when I used the script in Boxpup the result was in bytes.
conky in Browserpup
Posted: Thu 20 May 2010, 13:08
by bebebop
I've adapted Stu90's code to stop the text moving with the ${goto} parameter.
Code: Select all
# Conky configuration [2010-05-01]
#COLORS
color0 FFFFFF #white
color1 999999 #60%
color2 666666 #40%
color3 333333 #20%
alignment top_left
background no
border_width 1
cpu_avg_samples 2
default_color white
default_outline_color black
default_shade_color grey
draw_borders no
draw_graph_borders yes
draw_outline no
draw_shades no
use_xft yes
xftfont Century Gothic:size=10
xftalpha .5
gap_x 180
gap_y 10
minimum_size 680 5
net_avg_samples 2
no_buffers no
double_buffer yes
out_to_console no
out_to_stderr no
extra_newline no
own_window yes
own_window_class Conky
own_window_type override
own_window_transparent yes
stippled_borders 0
update_interval 1.0
uppercase no
use_spacer none
show_graph_scale no
show_graph_range no
TEXT
${color1}CPU1: ${color0}${cpu cpu1}% ${color1} ${goto 68}CPU2: ${color0}${cpu cpu2}% ${color0} ${goto 130}| ${color1} Mem: ${color0}${memperc}% ${color0} | ${goto 220}${color1} Down: ${color0}${totaldown eth0} ${goto 310}| ${color1}Up: ${color0}${totalup eth0} ${goto 390}| ${color1}Psave: ${color0}${execi 5 ~/calcfreespace.sh} ${color0} | ${color1}Temp: ${color0}${acpitemp}${color0} ${goto 570}| ${color1} Uptime: ${color0}${uptime_short}
${goto 250}${font Century Gothic:size=40}${time %H:%M:%S}
Posted: Sun 23 May 2010, 12:28
by abushcrafter
@bebebop I have made a new thread for nc10 stuff here:
http://www.murga-linux.com/puppy/viewto ... 180#420180 so if the is anything else post it there please.
Posted: Tue 10 Jan 2012, 04:58
by banger0250
This is my current on racy-5.2.2 for functionality, with wbar to the right. I disabled the ROX-puppy-pin. I did this in two seperate .conky files.
Code: Select all
# Use Xft?
use_xft yes
xftfont Trebuchet MS:size=8
xftalpha 0.8
text_buffer_size 2048
# Update interval in seconds
update_interval 1
# This is the number of times Conky will update before quitting.
# Set to zero to run forever.
total_run_times 0
# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_transparent yes
own_window_type desktop
own_window_hints undecorated,sticky,skip_taskbar,skip_pager
#below
# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes
# Minimum size of text area
minimum_size 200 0
# Draw shades?
draw_shades yes
# Draw outlines?
draw_outline no
# Draw borders around text
draw_borders no
# Stippled borders?
stippled_borders 0
# border width
border_width 1
# Default colors and also border colors
default_color white
own_window_colour white
# Text alignment, other possible values are commented
alignment top_right
# Gap between borders of screen and text
# same thing as passing -x at command line
gap_x 50
gap_y 60
# Subtract file system buffers from used memory?
no_buffers yes
# set to yes if you want all text to be in uppercase
uppercase no
# number of cpu samples to average
# set to 1 to disable averaging
cpu_avg_samples 2
# number of net samples to average
# set to 1 to disable averaging
net_avg_samples 2
# Force UTF8? note that UTF8 support required XFT
override_utf8_locale yes
# Add spaces to keep things from moving about? This only affects certain objects.
use_spacer true
lua_load /root/my-applications/bin/lua_load_script
#
TEXT
${alignc 2}${font DejaVu Sans:size=40}${lua_parse datey -30 150 1.5}${time %k:%M}${color}
${alignc -2}${font Trebuchet MS:size=12}${time %a %d %b %Y}${font}
HDD ${hr 2}
Root $alignc ${fs_used /} / ${fs_size /} $alignr ${fs_free_perc /}%
${fs_bar /}
Swap $alignc $swap / $swapmax $alignr $swapperc%
${swapbar}
TOP ${hr 2}
$alignc $processes processes ($running_processes running)
${alignr}PID CPU% MEM%
${lua_parse top_cpu_colour 1}
${lua_parse top_cpu_colour 2}
${lua_parse top_cpu_colour 3}
${lua_parse top_cpu_colour 4}
${alignc 30}${color}Mem
${lua_parse top_mem_colour 1}
${lua_parse top_mem_colour 2}
${lua_parse top_mem_colour 3}
WIRELESS ${addr wlan0} ${hr 2}
ETH1 ${addr eth1} ${hr 2}
ETH0 ${addr eth0} ${hr 2}
Inbound $alignc ${downspeed eth1} kb/s $alignr${totaldown eth1}
${downspeedgraph eth1}
Outbound $alignc ${upspeed eth1} kb/s $alignr${totalup eth1}
${upspeedgraph eth1}
TORRENT PEERS ${tcp_portmon 51400 51415 count} ${hr 2}
AND
Code: Select all
# Use Xft?
use_xft yes
xftfont Trebuchet MS:size=8
xftalpha 0.8
text_buffer_size 2048
# Update interval in seconds
update_interval 1
# This is the number of times Conky will update before quitting.
# Set to zero to run forever.
total_run_times 0
# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_transparent yes
own_window_type desktop
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes
# Minimum size of text area
minimum_size 200 0
# Draw shades?
draw_shades yes
# Draw outlines?
draw_outline no
# Draw borders around text
draw_borders no
# Stippled borders?
stippled_borders 0
# border width
border_width 1
# Default colors and also border colors
default_color white
own_window_colour white
# Text alignment, other possible values are commented
alignment bottom_right
# Gap between borders of screen and text
# same thing as passing -x at command line
gap_x 50
gap_y 60
# Subtract file system buffers from used memory?
no_buffers yes
# set to yes if you want all text to be in uppercase
uppercase no
# number of cpu samples to average
# set to 1 to disable averaging
cpu_avg_samples 2
# number of net samples to average
# set to 1 to disable averaging
net_avg_samples 2
# Force UTF8? note that UTF8 support required XFT
override_utf8_locale yes
# Add spaces to keep things from moving about? This only affects certain objects.
use_spacer none
#
TEXT
SYSTEM ${hr 2}
Kernel: ${alignr}${kernel}
Athlon: X2 @ ${freq}MHz ${alignr}$machine
Uptime: ${alignr}${uptime}
CPU0 ${hr 2}
${cpu cpu0}%
${alignc}${cpugauge cpu0 50,50}
CPU1 ${hr 2}
${cpu cpu1}%
${alignc}${cpugauge cpu0 50,50}
RAM ${hr 2}
$memperc%
${alignc}${memgauge 50,50}
#
OR
http://i207.photobucket.com/albums/bb18 ... screen.png