You are not logged in.
Feels like I'm hijacking this thread, yet another config change. Discovered that the xfce4-panel has a plugin called 'Icon box' which meant I could finally get rid if the task bar as it were. This made me be able to move the Conky output where the bar was previously.
Screenshot is rather long, so it will just be a link this time; http://web.telia.com/~u85920559/conky/c … 071220.png.
# ~/.conkyrc
background no
use_xft no
xftfont Bitstream Vera Sans Mono:size=8
xftalpha 0.8
override_utf8_locale no
update_interval 1.0
total_run_times 0
own_window no
own_window_type normal
own_window_transparent yes
own_window_colour hotpink
double_buffer yes
draw_shades yes
draw_outline no
draw_borders no
draw_graph_borders yes
stippled_borders 0
border_margin 10
border_width 1
default_color white
default_shade_color black
default_outline_color black
alignment bottom_left
minimum_size 530
gap_x 5
gap_y 2
no_buffers yes
uppercase no
cpu_avg_samples 2
net_avg_samples 2
use_spacer no
##
# Custom colors
##
color0 707070 # "header"
color1 bebebe # values
color2 666666 # delimiters (slashes, paranthesises etc.)
# stuff after 'TEXT' will be formatted on screen
TEXT
${color1}${sysname} ${kernel} ${color2}(${color1}${machine}${color2})${color1} ${color0}Load:${color1} ${loadavg 1} ${loadavg 2} ${loadavg 3} ${color0}Processes:${color1} ${running_processes}${color2}/${color1}${processes} ${color0}CPU:${color1} ${hwmon 1 temp 2}°C ${color0}GPU:${color1} ${texeci 10 ~/Program/Skript/conky_gputemp.sh}.0°C ${color0}Case:${color1} ${hwmon 1 temp 1}°C ${color0}NB:${color1} ${hwmon 1 temp 3}°C ${color0}Up:${color1} ${upspeed eth0}kB/s ${color2}(${color1}${totalup eth0}${color2})${color1} ${color0}Down:${color1} ${downspeed eth0}kB/s ${color2}(${color1}${totaldown eth0}${color2})${color1}
${color0}CPU:${color1} ${freq_dyn}MHz ${color2}(${color1}${cpu}%${color2})${color1} ${color0}RAM:${color1} ${mem}${color2}/${color1}${memmax} ${color2}(${color1}${memperc}%${color2})${color1} ${color0}Swap:${color1} ${swap}${color2}/${color1}${swapmax} ${color2}(${color1}${swapperc}%${color2})${color1} ${color0}/${color1} ${fs_free /}${color2}/${color1}${fs_size /} ${color2}(${color1}${fs_free_perc /}%${color2})${color1} ${color0}/home${color1} ${fs_free /home}${color2}/${color1}${fs_size /home} ${color2}(${color1}${fs_free_perc /home}%${color2})${color1} ${color0}/tmp${color1} ${fs_free /tmp}${color2}/${color1}${fs_size /tmp} ${color2}(${color1}${fs_free_perc}%${color2})${color1}
PC: Antec P182B | Asus P8Z77-V PRO | Intel i5 3570k | 16GB DDR3 | GeForce 450GTS | 4TB HDD | Pioneer BDR-207D | Asus Xonar DX | Altec Lansing CS21 | Eizo EV2736W-BK | Arch Linux x86_64
HTPC: Antec NSK2480 | ASUS M3A78-EM (AMD 780G) | AMD Athlon X3 425 | 8GB DDR2 | GeForce G210 | 2TB HDD | Arch Linux x86_64
Server: Raspberry Pi (model B) | 512MB RAM | 750GB HDD | Arch Linux ARM
Offline
here's mine (link), and the text part of the .conkyrc:
TEXT
$nodename :: ${color #99ccaa}Arch $sysname $kernel ${color #cccccc}${time %a. %b. %d} ${alignr}${color #668866}${time %l:%M %P}
$color$stippled_hr
${color #aaddcc}Uptime:$color $uptime ${color #aaddcc} Load:$color $loadavg
${color #aaddcc}${freq_dyn}$color MHz ${color #aaddcc}CPU: $color ${execi 1 sensors |grep "Core0" |cut -c15-18}C System: ${execi 1 sensors |grep M/B |cut -c15-18}C
${color white}CPU Usage:${color #99ccaa} $cpu% ${cpubar}
${color 99bbaa}${cpugraph 18, ffffff 777777}
${color lightgrey}RAM Usage:$color $mem/$memmax - $memperc% ${color #aaddbb}${membar}
${color lightgrey}Swap Usage:$color $swap/$swapmax - $swapperc% ${color lightgrey}${swapbar}
${color lightgrey}Processes:$color $processes ${color grey}Running:$color $running_processes
$color$stippled_hr
${color lightgrey}Networking:
Down:${color #ccddcc} ${downspeed eth0} k/s${color #ffffff} ${offset 90}Up:${color #668877} ${upspeed eth0} k/s
${color #cccccc}${downspeedgraph eth0 20,159 cccccc 559966} ${color #cccccc}${upspeedgraph eth0 20,159 333333 999999}
${color #cccccc}File systems: ${fs_free_perc}% free
${color #cccccc}/ ${color #99ccaa}${fs_used /}/${fs_size /} ${color 99ccaa}${fs_bar /}
${color #cccccc}/home ${color #99ccaa}${fs_used /home}/${fs_size /home} ${color #cccccc}${fs_bar /home}
${color #cccccc}media ${color #99ccaa}${fs_used /mnt/media}/${fs_size /mnt/media} ${color #aabbdd}${fs_bar /mnt/media}
${color #cccccc}multi ${color #99ccaa}${fs_used /mnt/seagate/multi}/${fs_size /mnt/seagate/multi} ${color #667789}${fs_bar /mnt/seagate/multi}
${color #cccccc}video ${color #99ccaa}${fs_used /mnt/seagate/video}/${fs_size /mnt/seagate/video} ${color #998855}${fs_bar /mnt/seagate/video}
${color #cccccc}backup ${color #99ccaa}${fs_used /mnt/seagate/backup}/${fs_size /mnt/seagate/backup} ${color #999999}${fs_bar /mnt/seagate/backup}
${color #cccccc}torrents ${color #99ccaa}${fs_used /mnt/torrents}/${fs_size /mnt/torrents} ${color #99aa77}${fs_bar /mnt/torrents}
${color #ffffff}MPD: artist: $mpd_artist ${color #aaddcc}title: $color $mpd_title
${color #aaddcc}bitrate: $color$mpd_bitrate ${color #aaddcc}length: ${color #cccccc}$mpd_length ${color #aaddcc}time: $mpd_elapsed
${color #aaddcc}status: $color$mpd_status
${color #aaaaaa}$mpd_bar
${color}Name PID CPU% MEM%
${color #aaddcc} ${top name 1}$color ${alignr} ${top pid 1} ${top cpu 1} ${top mem 1}
${color #aaddcc} ${top name 2}$color ${alignr} ${top pid 2} ${top cpu 2} ${top mem 2}
${color #aaddcc} ${top name 3}$color ${alignr} ${top pid 3} ${top cpu 3} ${top mem 3}
${color #aaddcc} ${top name 4}$color ${alignr} ${top pid 4} ${top cpu 4} ${top mem 4}
${color #aaddcc} ${top name 5}$color ${alignr} ${top pid 5} ${top cpu 5} ${top mem 5}
${color}Mem usage
${color #aaddcc}${top_mem name 1} ${color #cccccc}${alignr} ${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1}
${color #aaddcc}${top_mem name 2} ${color #cccccc}${alignr} ${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2}
${color #aaddcc}${top_mem name 3}${color #cccccc}${alignr} ${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3}
$stippled_hr
${color #99ccaa}Port(s)${alignr}#Connections
$color ALL: ${alignr}$color ${tcp_portmon 1 65535 count}
$color sshd: ${alignr}$color ${tcp_portmon 49444 49444 count}
$color torrent: ${alignr}$color ${tcp_portmon 6881 6999 count}
${color #99ccaa}Remote Address ${alignr} Local Service/Port$color
${tcp_portmon 1 65535 rhost 0} ${alignr} ${tcp_portmon 1 65535 lservice 0}
${tcp_portmon 1 65535 rhost 1} ${alignr} ${tcp_portmon 1 65535 lservice 1}
${tcp_portmon 1 65535 rhost 2} ${alignr} ${tcp_portmon 1 65535 lservice 2}
${tcp_portmon 1 65535 rhost 3} ${alignr} ${tcp_portmon 1 65535 lservice 3}
${tcp_portmon 1 65535 rhost 4} ${alignr} ${tcp_portmon 1 65535 lservice 4}
${tcp_portmon 1 65535 rhost 5} ${alignr} ${tcp_portmon 1 65535 lservice 5}
${tcp_portmon 1 65535 rhost 6} ${alignr} ${tcp_portmon 1 65535 lservice 6}
${tcp_portmon 1 65535 rhost 7} ${alignr} ${tcp_portmon 1 65535 lservice 7}
>>edit: can anyone point me to instructions on how to get mail notification (from POP3/gmail?)? I can't find that anywhere.
Last edited by slackhack (2007-12-21 18:59:11)
Offline
the mail notification is from a script whose output is being displayed via conky (the archlinux package notifications are also a script)
You can find the script....http://conky.sourceforge.net/gmail.pl there. The code for conky is in my config listed earlier.
"Unix is basically a simple operating system, but you have to be a genius to understand the simplicity." (Dennis Ritchie)
Offline
excellent, thanks.
Offline
OK. Here we go ...
The UPS status and the E-Mail Message Display are two pieces of software I wrote.
R.
# THIS CONFIG RELIES ON 2 SCRIPTS, CPUSPEED AND CPUTEMP
# YOUR SYSTEM MAY NOT REQUIRE THEM, REPLACE AS DESIRED
# maintain spacing between certain elements
use_spacer yes
# set to yes if you want tormo to be forked in the background
background no
use_xft yes
# Xft font when Xft is enabled
xftfont Monospace-9
#xftfont Bitstream Vera Sans Mono-10
#xftfont Andale Mono-9
#xftfont Clean-8
#xftfont cubicfive10:pixelsize=8
#xftfont squaredance10:pixelsize=14
#xftfont swf!t_v02:pixelsize=10
# Text alpha when using Xft
xftalpha 1
mail_spool $MAIL
# Update interval in seconds
update_interval 4.0
# Create own window instead of using desktop (required in nautilus)
own_window no
# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes
# Minimum size of text area
minimum_size 280 5
# Draw shades?
draw_shades yes
# Draw outlines?
draw_outline no # amplifies text
# Draw borders around text
draw_borders no
# Stippled borders?
stippled_borders 0
# border margins (used to be 20)
border_margin 0
# border width
border_width 1
# Default colors and also border colors, grey90 == #e5e5e5
default_color grey90
default_shade_color black
default_outline_color DarkGrey
# Text alignment, other possible values are commented
alignment top_left
#alignment top_right
#alignment bottom_left
#alignment bottom_right
# Gap between borders of screen and text
gap_x 5
gap_y 10
# Subtract file system buffers from used memory?
no_buffers yes
# set to yes if you want all text to be in uppercase
uppercase no
# stuff after 'TEXT' will be formatted on screen
TEXT
${color #ffcb48}$nodename$color ${color #828282}$sysname $kernel on $machine $color
${color #98c2c7}NAME PID CPU% MEM%
${color #ffffff} (sorted by CPU usage)
${color #e5e5e5}${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${color #c4c4c4}${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${color #a3a3a3}${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
${color #828282}${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}
${color #98c2c7}NAME PID CPU% MEM%
${color #ffffff} (sorted by MEM usage)
${color #e5e5e5}${top_mem name 1} ${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1}
${color #c4c4c4}${top_mem name 2} ${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2}
${color #a3a3a3}${top_mem name 3} ${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3}
${color #828282}${top_mem name 4} ${top_mem pid 4} ${top_mem cpu 4} ${top_mem mem 4}
${color #828282}${top_mem name 5} ${top_mem pid 5} ${top_mem cpu 5} ${top_mem mem 5}
${color #828282}${top_mem name 6} ${top_mem pid 6} ${top_mem cpu 6} ${top_mem mem 6}
${color #828282}${top_mem name 7} ${top_mem pid 7} ${top_mem cpu 7} ${top_mem mem 7}
${color #ffcb48}UPS Status
${font Arial-9}
${color #c4c4c4} ${execi 8 python /home/ralvez/bin/ups.py}
${font}
${color #ffcb48}DATA$color
${color #98c2c7}RAM:$color $memperc% ${color #78af78} ${membar 6}${color}
${color #98c2c7}Swap:$color $swapperc% ${swapmax} ${color #78af78} ${swapbar 6}$color
${color #98c2c7}/:$color ${fs_free_perc /}% ${fs_size /} ${color #78af78} ${fs_bar 6 /}$color
${color #98c2c7}/home:$color ${fs_free_perc /home}% ${fs_size /home} ${color #78af78} ${fs_bar 6 /}$color
${color #98c2c7}data1:$color ${fs_free_perc /data1}% ${fs_size /data1} ${color #78af78}${fs_bar 6 /data1}$color
${color #98c2c7}VMWare:$color ${fs_free_perc /vrm}% ${fs_size /vrm} ${color #78af78} ${fs_bar 6 /vrm}$color
${color #98c2c7}Upload: $color${upspeed eth0} Kb/s
${color #98c2c7}Download:$color${downspeed eth0}Kb/s
${color #98c2c7}Eth0: ${color #c4c4c4}${addr eth0}
${color #ffcb48}E-Mail Message Display
${font Arial-9}${color #c4c4c4}
${execi 600 python ~/bin/CheckMail/run_checkmail.py}
${font}
Offline
i love this new lifestyle with fluxbox.
one question though, how do i make conky appear without a window. just to be in the background. on the desktop.
cheers
Offline
the mail notification is from a script whose output is being displayed via conky (the archlinux package notifications are also a script)
You can find the script....http://conky.sourceforge.net/gmail.pl there. The code for conky is in my config listed earlier.
i never managed to get this script working...
[deus@laptop scripts]$ perl gmail.pl
Can't locate Mail/POP3Client.pm in @INC (@INC contains: /usr/lib/perl5/5.8.8/i686-linux-thread-multi /usr/lib/perl5/5.8.8 /usr/lib/perl5/site_perl/5.8.8/i686-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7/i686-linux-thread-multi /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.6/i686-linux-thread-multi /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5/i686-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4/i686-linux-thread-multi /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.3/i686-linux-thread-multi /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2/i686-linux-thread-multi /usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl/5.8.1/i686-linux-thread-multi /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0/i686-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl .) at gmail.pl line 31.
BEGIN failed--compilation aborted at gmail.pl line 31.
the line refers to
use Mail::POP3Client;
use IO::Socket::SSL;
am i missing any dependencies?
Offline
# 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
# Use Xft?
use_xft yes
# Xft font when Xft is enabled
#xftfont Bitstream Vera Sans Mono:size=7
xftfont Bitstream Vera Sans Mono:size=8
# Create own window instead of drawing to desktop.
own_window yes
own_window_transparent yes
own_window_colour navyblue
# own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_type override
# Text alpha when using Xft
xftalpha 0.8
#deprecated -- use 'own_window_hints below'
#on_bottom yes
wm_class_name Conky
# mail spool
# mail_spool $MAIL
# Update interval in seconds
update_interval 2
# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes
# Minimum size of text area
minimum_size 330 10
maximum_width 330
# Draw shades?
draw_shades no
# Draw outlines?
draw_outline no
# Draw borders around text
draw_borders no
# Stippled borders?
stippled_borders 2
# border margins
#border_margin 4
# border width
border_width 1
# Default colors and also border colors
#default_color lightblue
default_color lightslategrey
default_shade_color white
default_outline_color white
# Text alignment, other possible values are commented
#minimum_size 10 10
gap_x 10
gap_y 44
#alignment top_left
#alignment top_right
#alignment bottom_left
alignment bottom_right
# Gap between borders of screen and text
# Add spaces to keep things from moving about? This only affects certain objects.
use_spacer yes
# Subtract file system buffers from used memory?
no_buffers yes
# set to yes if you want all text to be in uppercase
uppercase no
# drawn 1 pixel border around graphs or not
draw_graph_borders no
# Allow for the creation of at least this number of port monitors (if 0 or not set, default is 16)
# min_port_monitors 8
# Allow each port monitor to track at least this many connections (if 0 or not set, default is 256)
# min_port_monitor_connections 64
# none, xmms, bmp, audacious, infopipe (default is none)
# xmms_player audacious
# With explanation
# ${color #0077ff}File systems: free/total % used
TEXT
${color #0077ff}$nodename ${alignc}$sysname $kernel ${alignr}$color${time %H:%M}
${color #0077ff}Uptime:$color $uptime ${color #0077ff} Load:$color $loadavg
${color #0077ff}CPU Usage:$color ${cpu 0}% ${color #0077ff}${cpubar}
${color black}${cpugraph 0 32, 350 104E8B 0077ff}
${color #0077ff}RAM Usage:$color $mem/$memmax - $memperc% ${color #0077ff}$membar
${color #0077ff}Swap Usage:$color $swap/$swapmax - $swapperc% ${color #0077ff}${swapbar}
${color #0077ff}Net Down:$color ${downspeed eth0} k/s${color #0077ff} ${offset 62}Net Up:$color ${upspeed eth0} k/s
${color black}${downspeedgraph eth0 32,150 104E8B 0077ff} $alignr${color black}${upspeedgraph eth0 32,150 104E8B 0077ff}
${color #0077ff}File systems:
${color #0077ff}/ $color${fs_free /}/${fs_size /}${alignr}${color #0077ff}${fs_bar 5,170 /}
${color #0077ff}/mnt/1 $color${fs_free /mnt/1}/${fs_size /mnt/1}${alignr}${color #0077ff}${fs_bar 5,170 /mnt/1}
${color #0077ff}/mnt/2 $color${fs_free /mnt/2}/${fs_size /mnt/2}${alignr}${color #0077ff}${fs_bar 5,170 /mnt/2}
${color #0077ff}/mnt/3 $color${fs_free /mnt/3}/${fs_size /mnt/3}${alignr}${color #0077ff}${fs_bar 5,170 /mnt/3}
${color #0077ff}/mnt/4 $color${fs_free /mnt/4}/${fs_size /mnt/4}${alignr}${color #0077ff}${fs_bar 5,170 /mnt/4}
${color #0077ff}Top Processes:
${color #0077ff}Name PID CPU% MEM%
$color ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
$color ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
$color ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
${color #0077ff}Mem usage
$color ${top_mem name 1} ${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1}
$color ${top_mem name 2} ${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2}
$color ${top_mem name 3} ${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3}
${color #0077ff}Connections:
$color In: ${tcp_portmon 1 32767 count} Out: ${tcp_portmon 32768 61000 count}${alignr}
Offline
In the right top corner of this dwm screeshot, conky sends some data to dwm standard input. It is conky compiled without X11 support (--disable-x11), as in the conky-cli package in the AUR.
The following is my ~/.conkyrc:
background no
out_to_console yes
total_run_times 0
no_buffers yes
uppercase no
update_interval 2
TEXT
CPU $cpu% @ ${acpitemp}C° @ ${freq_dyn}/${freq}MHz | RAM $memperc% ($swapperc%) | U ${upspeed eth1}k/s D ${downspeed eth1}k/s W ${wireless_link_qual_perc eth1} | AC ${acpiacadapter} ${battery_percent BAT1}% | ${time %a %d/%m/%Y, %k:%M}
Yes, I could write complicate scripts to get the same result, but conky compiled in this way is much much lighter and faster than any script, ans satisfies my laziness.
Mortuus in anima, curam gero cutis
Offline
Just a really simple config that I hacked together after being fussy about the way the mpd variables act. I've used $if_empty statements to swap between "artist - album - track - title" and "stopped", depending on mpd's status. It still acts up with the mpd variables not emptying instantly though, but anyway...
background yes
use_xft yes
xftfont Bitstream Vera Sans:size=7
xftalpha 0.8
mpd_host localhost
mpd_port 6600
update_interval 0.5
total_run_times 0
own_window yes
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
draw_shades no
draw_outline yes
draw_borders no
draw_graph_borders no
border_margin 1
border_width 1
default_color white
default_shade_color black
default_outline_color black
alignment bottom_right
gap_x 2
gap_y 18
use_spacer no
TEXT
${alignr}${color white}mpd${color #b0bfcf}:${color white} ${if_empty $mpd_artist}stopped$else${color white}$mpd_artist - $mpd_album - $mpd_track - $mpd_title$endif
Offline
synorgy wrote:the mail notification is from a script whose output is being displayed via conky (the archlinux package notifications are also a script)
You can find the script....http://conky.sourceforge.net/gmail.pl there. The code for conky is in my config listed earlier.
i never managed to get this script working...
[deus@laptop scripts]$ perl gmail.pl
Can't locate Mail/POP3Client.pm in @INC (@INC contains: /usr/lib/perl5/5.8.8/i686-linux-thread-multi /usr/lib/perl5/5.8.8 /usr/lib/perl5/site_perl/5.8.8/i686-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7/i686-linux-thread-multi /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.6/i686-linux-thread-multi /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5/i686-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4/i686-linux-thread-multi /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.3/i686-linux-thread-multi /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2/i686-linux-thread-multi /usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl/5.8.1/i686-linux-thread-multi /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0/i686-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl .) at gmail.pl line 31.
BEGIN failed--compilation aborted at gmail.pl line 31.the line refers to
use Mail::POP3Client;
use IO::Socket::SSL;am i missing any dependencies?
I am having the same error as xdeusx. I can't run the script.
Offline
Could anyone look at this and tell me how to align the line at the bottom that says "1 package." I can't get that one line right aligned for some reason, I guess it's because the script prints out more than one line, and on conky it's only the exec line. Here's the screenshot:
http://oak.cobaltpointe.com/~watson/images/screenie.png
Here's my .conkyrc:
# Conky sample 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.
# set to yes if you want Conky to be forked in the background
background yes
# X font when Xft is disabled, you can pick one with program xfontsel
#font 5x7
#font 6x10
#font 7x13
#font 8x13
#font 9x15
#font *mintsmild.se*
#font -*-*-*-*-*-*-34-*-*-*-*-*-*-*
# Use Xft?
use_xft yes
# Xft font when Xft is enabled
xftfont Terminus:size=10
# Text alpha when using Xft
xftalpha 0.8
# Print everything to stdout?
# out_to_console no
# MPD host/port
# mpd_host localhost
# mpd_port 6600
# mpd_password tinker_bell
# Print everything to console?
# out_to_console no
# mail spool
mail_spool $MAIL
# Update interval in seconds
update_interval 2.0
# 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
# If own_window is yes, you may use type normal, desktop or override
own_window_type desktop
# Use pseudo transparency with own_window?
own_window_transparent yes
# If own_window_transparent is set to no, you can set the background colour here
#own_window_colour hotpink
# If own_window is yes, these window manager hints may be used
#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 385 200
# Draw shades?
draw_shades no
# Draw outlines?
draw_outline no
# Draw borders around text
draw_borders no
# Draw borders around graphs
draw_graph_borders yes
# Stippled borders?
stippled_borders 8
# border margins
border_margin 4
# border width
border_width 1
# Default colors and also border colors
default_color white
default_shade_color black
default_outline_color black
# Text alignment, other possible values are commented
#alignment top_left
alignment top_right
#alignment bottom_left
#alignment bottom_right
#alignment none
# Gap between borders of screen and text
# same thing as passing -x at command line
gap_x 5
gap_y 18
# 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 no
# Allow each port monitor to track at most this many connections (if 0 or not set, default is 256)
#max_port_monitor_connections 256
# Maximum number of special things, e.g. fonts, offsets, aligns, etc.
#max_specials 512
# Maximum size of buffer for user text, i.e. below TEXT line.
#max_user_text 16384
# Timing interval for music player thread, e.g. mpd, audacious
#music_player_interval (update_interval is default)
# variable is given either in format $variable or in ${variable}. Latter
# allows characters right after the variable and must be used in network
# stuff because of an argument
# stuff after 'TEXT' will be formatted on screen
TEXT
${font Terminus:size=14}${alignr}${time %A, %B %e, %G }| ${time %H:%M}
${font}${alignr}$nodename - $sysname $kernel | Uptime:$color $uptime_short
${alignr}CPU:$color $cpu% (${running_processes}) | Ram:$color $memperc% (${mem}) | Swap:$color $swap/$swapmax
${alignr}Root(${fs_free_perc /}%): $color${fs_bar 7, 40 /} | Flies(${fs_free_perc /mnt/Flies}%): $color${fs_bar 7, 40 /mnt/Flies}
${alignr}Extra(${fs_free_perc /mnt/Extra}%): $color${fs_bar 7, 40 /mnt/Extra} | Largo(${fs_free_perc /mnt/Largo}%): $color${fs_bar 7, 40 /mnt/Largo}
${alignr}Down:${downspeed eth0} k/s (${totaldown eth0}) - Up:${upspeed eth0} k/s (${totalup eth0})
${alignr}MPD: $mpd_status (${mpd_percent})
${alignr}${mpd_smart}
${alignr}${texeci 3600 python ~/scripts/pacman.py}
Offline
Here is a nice gmail-script, that actually works
http://ubuntuforums.org/showthread.php?t=680265
Offline
How can I post a screenie of just my conky's? in return, my .conkyrc files
# conky configuration
# edited by darcon@gmail.com
# set to yes if you want Conky to be forked in the background
background no
# X font when Xft is disabled, you can pick one with program xfontsel
#font 5x7
#font 6x10
#font 7x13
#font 8x13
#font 9x15
#font *mintsmild.se*
#font -*-*-*-*-*-*-34-*-*-*-*-*-*-*
# Use Xft?
use_xft yes
# Xft font when Xft is enabled
#xftfont Bitstream Vera Sans Mono:size=8
xftfont Terminus:size=8
# Text alpha when using Xft
xftalpha 0.8
# Print everything to console?
# out_to_console no
# mail spool
#mail_spool $MAIL
# Update interval in seconds
update_interval 2.0
# 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 no
# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes
# Minimum size of text area
minimum_size 1000 5
# Draw shades?
draw_shades yes
# Draw outlines?
draw_outline no
# Draw borders around text
draw_borders no
# Stippled borders?
stippled_borders 8
# border margins
border_margin 4
# border width
border_width 1
# Default colors and also border colors
default_color white
default_shade_color black
default_outline_color white
# Text alignment, other possible values are commented
alignment top_left
#alignment top_right
#alignment bottom_left
#alignment bottom_right
# Gap between borders of screen and text
# same thing as passing -x at command line
gap_x 875
gap_y 4
# 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 no
# Add spaces to keep things from moving about? This only affects certain objects.
use_spacer yes
#Note: doesn't work in conky 1.2 =(
# mldonkey_hostname Hostname for mldonkey stuff, defaults to localhost
# mldonkey_port Mldonkey port, 4001 default
# mldonkey_login Mldonkey login, default none
# mldonkey_password Mldonkey password, default none
# Possible variables to be used:
#
# Variable Arguments Description
# addr (interface) IP address for an interface
# acpiacadapter ACPI ac adapter state.
# acpifan ACPI fan state
# acpitemp ACPI temperature.
# adt746xcpu CPU temperature from therm_adt746x
# adt746xfan Fan speed from therm_adt746x
# alignr (num) Right-justify text, with space of N
# alignc Align text to centre
# 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
# cpugraph (height),(width) (gradient colour 1) (gradient colour 2)
# CPU usage graph, with optional colours in hex,
# minus the #.
# downspeed net Download speed in kilobytes
# downspeedf net Download speed in kilobytes with one
# decimal
# downspeedgraph net (height),(width) (gradient colour 1) (gradient colour 2)
# Download speed graph, colours defined in
# hex, minus the #.
# exec shell command Executes a shell command and displays
# the output in conky. warning: this
# takes a lot more resources than other
# variables. I'd recommend coding wanted
# behaviour in C and posting a patch :-).
# execbar shell command Same as exec, except if the first value
# return is a value between 0-100, it
# will use that number for a bar.
# The size for the bar is currently fixed,
# but that may change in the future.
# execgraph shell command Same as execbar, but graphs values
# execi interval, shell command
# Same as exec but with specific interval.
# Interval can't be less than
# update_interval in configuration.
# font font Specify a different font. Only applies
# to one line.
# 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/tempf (first in C, second in F)
# meaning temperature. n is number of the
# sensor. See /sys/bus/i2c/devices/ on
# your local computer.
# if_running (process) if PROCESS is running, display
# everything if_running and the matching $endif
# if_existing (file) if FILE exists, display everything between
# if_existing and the matching $endif
# if_mounted (mountpoint) if MOUNTPOINT is mounted, display everything between
# if_mounted and the matching $endif
# else Text to show if any of the above are not true
# kernel Kernel version
# linkstatus (interface) Get the link status for wireless connections
# 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
#
# metar_ob_time
# metar_temp
# metar_tempf Temp in F
# metar_windchill
# metar_dew_point There are a bunch of these
# metar_rh and they are self-explanatory
# metar_windspeed
# metar_winddir
# metar_swinddir
# metar_cloud
# metar_u2d_time
#
# ml_upload_counter total session upload in mb
# ml_download_counter total session download in mb
# ml_nshared_files number of shared files
# ml_shared_counter total session shared in mb, buggy
# in some mldonkey versions
# ml_tcp_upload_rate tcp upload rate in kb/s
# ml_tcp_download_rate tcp download rate in kb/s
# ml_udp_upload_rate udp upload rate in kb/s
# ml_udp_download_rate udp download rate in kb/s
# ml_ndownloaded_files number of completed files
# ml_ndownloading_files number of downloading files
#
# mpd_artist Artist in current MPD song
# (must be enabled at compile)
# mpd_album Album in current MPD song
# mpd_bar (height) Bar of mpd's progress
# mpd_bitrate Bitrate of current song
# mpd_status Playing, stopped, et cetera.
# mpd_title Title of current MPD song
# mpd_vol MPD's volume
# mpd_elapsed Song's elapsed time
# mpd_length Song's length
# mpd_percent Percent of song's progress
# 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
# conky 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
# offset pixels Move text over by N pixels
# tail logfile, lines (interval)
# Displays last N lines of supplied text
# text file. If interval is not supplied,
# Conky assumes 2x Conky's interval.
# Max of 30 lines.
# Max of 30 lines can be displayed.
# 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 conky
# has started.
# top type, num This takes arguments in the form:
# top <name> <number>
# Basically, processes are ranked from
# highest to lowest in terms of cpu
# usage, which is what <num> represents.
# The types are: "name", "pid", "cpu", and
# "mem".
# There can be a max of 10 processes listed.
# top_mem type, num Same as top, except sorted by mem usage
# instead of cpu
# 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
# upspeedgraph net (height),(width) (gradient colour 1) (gradient colour 2)
# Upload speed graph, colours defined in
# hex, minus the #.
# 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
# variable is given either in format $variable or in ${variable}. Latter
# allows characters right after the variable and must be used in network
# stuff because of an argument
# stuff after 'TEXT' will be formatted on screen
TEXT
${offset 240}${color slate grey}${time %a, } ${color }${time %e %B %G}
${offset 240}${color slate grey}${time %Z, }${color }${time %H:%M:%S}
${offset 240}${color slate grey}UpTime: ${color }$uptime
${offset 240}${color slate grey}Kern:${color }$kernel
${offset 240}${color slate grey}CPU:${color } $cpu% ${acpitemp}C
${offset 240}${cpugraph 20,130 000000 ffffff}
${offset 240}${color slate grey}Load: ${color }$loadavg
${offset 240}${color slate grey}Processes: ${color }$processes
${offset 240}${color slate grey}Running: ${color }$running_processes
${offset 240}${color slate grey}Highest CPU:
${offset 240}${color #ddaa00} ${top name 1}${top_mem cpu 1}
${offset 240}${color lightgrey} ${top name 2}${top cpu 2}
${offset 240}${color lightgrey} ${top name 3}${top cpu 3}
${offset 240}${color lightgrey} ${top name 4}${top cpu 4}
${offset 240}${color slate grey}Highest MEM:
${offset 240}${color #ddaa00} ${top_mem name 1}${top_mem mem 1}
${offset 240}${color lightgrey} ${top_mem name 2}${top_mem mem 2}
${offset 240}${color lightgrey} ${top_mem name 3}${top_mem mem 3}
${offset 240}${color lightgrey} ${top_mem name 4}${top_mem mem 4}
${offset 240}${color slate grey}MEM: ${color } $memperc% $mem/$memmax
${offset 240}${membar 3,100}
${offset 240}${color slate grey}SWAP: ${color }$swapperc% $swap/$swapmax
${offset 240}${swapbar 3,100}
${offset 240}${color slate grey}ROOT: ${color }${fs_free /}/${fs_size /}
${offset 240}${fs_bar 3,100 /}
${offset 240}${color slate grey}HOME: ${color }${fs_free /home}/${fs_size /home}
${offset 240}${fs_bar 3,100 /home}
${offset 240}${color slate grey}NET:
${offset 240}${color}Up: ${color }${upspeed wlan0} k/s
${offset 240}${upspeedgraph wlan0 20,130 000000 ffffff}
${offset 240}${color}Down: ${color }${downspeed wlan0}k/s${color}
${offset 240}${downspeedgraph eth0 20,130 000000 ffffff}
# conky configuration
# edited by darcon@gmail.com
# set to yes if you want Conky to be forked in the background
background no
# X font when Xft is disabled, you can pick one with program xfontsel
#font 5x7
#font 6x10
#font 7x13
#font 8x13
#font 9x15
#font *mintsmild.se*
#font -*-*-*-*-*-*-34-*-*-*-*-*-*-*
# Use Xft?
use_xft yes
# Xft font when Xft is enabled
#xftfont Bitstream Vera Sans Mono:size=8
xftfont Terminus:size=8
# Text alpha when using Xft
xftalpha 0.8
# Print everything to console?
# out_to_console no
# mail spool
#mail_spool $MAIL
# Update interval in seconds
update_interval 2.0
# 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
# This is to modify window to be transparent, no borders etc.
own_window_type desktop
own_window_transparent yes
# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes
# Minimum size of text area
minimum_size 1000 5
# Draw shades?
draw_shades yes
# Draw outlines?
draw_outline no
# Draw borders around text
draw_borders no
# Stippled borders?
stippled_borders 8
# border margins
border_margin 4
# border width
border_width 1
# Default colors and also border colors
default_color white
default_shade_color black
default_outline_color white
# Text alignment, other possible values are commented
alignment top_left
#alignment top_right
#alignment bottom_left
#alignment bottom_right
# Gap between borders of screen and text
# same thing as passing -x at command line
gap_x 5
gap_y 700
# 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 no
# Add spaces to keep things from moving about? This only affects certain objects.
use_spacer yes
#Note: doesn't work in conky 1.2 =(
# mldonkey_hostname Hostname for mldonkey stuff, defaults to localhost
# mldonkey_port Mldonkey port, 4001 default
# mldonkey_login Mldonkey login, default none
# mldonkey_password Mldonkey password, default none
# Possible variables to be used:
#
# Variable Arguments Description
# addr (interface) IP address for an interface
# acpiacadapter ACPI ac adapter state.
# acpifan ACPI fan state
# acpitemp ACPI temperature.
# adt746xcpu CPU temperature from therm_adt746x
# adt746xfan Fan speed from therm_adt746x
# alignr (num) Right-justify text, with space of N
# alignc Align text to centre
# 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
# cpugraph (height),(width) (gradient colour 1) (gradient colour 2)
# CPU usage graph, with optional colours in hex,
# minus the #.
# downspeed net Download speed in kilobytes
# downspeedf net Download speed in kilobytes with one
# decimal
# downspeedgraph net (height),(width) (gradient colour 1) (gradient colour 2)
# Download speed graph, colours defined in
# hex, minus the #.
# exec shell command Executes a shell command and displays
# the output in conky. warning: this
# takes a lot more resources than other
# variables. I'd recommend coding wanted
# behaviour in C and posting a patch :-).
# execbar shell command Same as exec, except if the first value
# return is a value between 0-100, it
# will use that number for a bar.
# The size for the bar is currently fixed,
# but that may change in the future.
# execgraph shell command Same as execbar, but graphs values
# execi interval, shell command
# Same as exec but with specific interval.
# Interval can't be less than
# update_interval in configuration.
# font font Specify a different font. Only applies
# to one line.
# 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/tempf (first in C, second in F)
# meaning temperature. n is number of the
# sensor. See /sys/bus/i2c/devices/ on
# your local computer.
# if_running (process) if PROCESS is running, display
# everything if_running and the matching $endif
# if_existing (file) if FILE exists, display everything between
# if_existing and the matching $endif
# if_mounted (mountpoint) if MOUNTPOINT is mounted, display everything between
# if_mounted and the matching $endif
# else Text to show if any of the above are not true
# kernel Kernel version
# linkstatus (interface) Get the link status for wireless connections
# 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
#
# metar_ob_time
# metar_temp
# metar_tempf Temp in F
# metar_windchill
# metar_dew_point There are a bunch of these
# metar_rh and they are self-explanatory
# metar_windspeed
# metar_winddir
# metar_swinddir
# metar_cloud
# metar_u2d_time
#
# ml_upload_counter total session upload in mb
# ml_download_counter total session download in mb
# ml_nshared_files number of shared files
# ml_shared_counter total session shared in mb, buggy
# in some mldonkey versions
# ml_tcp_upload_rate tcp upload rate in kb/s
# ml_tcp_download_rate tcp download rate in kb/s
# ml_udp_upload_rate udp upload rate in kb/s
# ml_udp_download_rate udp download rate in kb/s
# ml_ndownloaded_files number of completed files
# ml_ndownloading_files number of downloading files
#
# mpd_artist Artist in current MPD song
# (must be enabled at compile)
# mpd_album Album in current MPD song
# mpd_bar (height) Bar of mpd's progress
# mpd_bitrate Bitrate of current song
# mpd_status Playing, stopped, et cetera.
# mpd_title Title of current MPD song
# mpd_vol MPD's volume
# mpd_elapsed Song's elapsed time
# mpd_length Song's length
# mpd_percent Percent of song's progress
# 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
# conky 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
# offset pixels Move text over by N pixels
# tail logfile, lines (interval)
# Displays last N lines of supplied text
# text file. If interval is not supplied,
# Conky assumes 2x Conky's interval.
# Max of 30 lines.
# Max of 30 lines can be displayed.
# 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 conky
# has started.
# top type, num This takes arguments in the form:
# top <name> <number>
# Basically, processes are ranked from
# highest to lowest in terms of cpu
# usage, which is what <num> represents.
# The types are: "name", "pid", "cpu", and
# "mem".
# There can be a max of 10 processes listed.
# top_mem type, num Same as top, except sorted by mem usage
# instead of cpu
# 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
# upspeedgraph net (height),(width) (gradient colour 1) (gradient colour 2)
# Upload speed graph, colours defined in
# hex, minus the #.
# 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
# variable is given either in format $variable or in ${variable}. Latter
# allows characters right after the variable and must be used in network
# stuff because of an argument
# stuff after 'TEXT' will be formatted on screen
TEXT
${color slate grey}/var/log/messages:
${color light grey}${exec tail --lines=20 /var/log/messages.log}
The second one is simple, exceptionally handy, and I think it looks cool.
Hofstadter's Law:
It always takes longer than you expect, even when you take into account Hofstadter's Law.
Offline
Here's mine; [img=http://img152.imageshack.us/img152/5436/scrotte0.th.png]
double_buffer yes
no_buffers yes
own_window yes
own_window_transparent no
own_window_type normal
own_window_hints undecorate,sticky,skip_taskbar,skip_pager
border_margin 1
draw_shades no
gap_x 1
gap_y 1
alignment top_left
update_interval 1
default_color D6D6D6
own_window_colour 202020
use_xft yes
xftfont Sans:pixelsize=10
use_spacer no
minimum_size 1278 10
mpd_host localhost
mpd_port 6600
# ${offset -22}
TEXT
${voffset -1} CPU: ${color E8BCA7}${font}${cpu}% ${color 292929}<${color} P: ${color BB4E3F}${font}${processes}${color} ${color 292929} |${color} RAM: ${color E8BCA7}${font}${mem}${color} SWAP: ${color E8BCA7}${font} ${swap} ${color 292929} | ${color} UPTIME: ${color 8D41CC}${font}${uptime_short}${color 292929} | ${color E8BCA7}${font}${downspeed eth0} Kb/s ${color 292929} | ${color E8BCA7}${upspeed eth0} Kb/s ${color 292929} | ${color}/ ${color E8BCA7}${font}${fs_free /} ${color} /home ${color E8BCA7}${font}${fs_free /home} ${color 292929}| ${color}TEMP: ${color D3BE4C}${font}${acpitemp}${color}C ${color 292929} | ${color E8BCA7}${color} MPD: ${color E8BCA7}${font}${mpd_smart} ${alignr}${color E8BCA7}${time %H:%M} ${voffset +1}
Does anybody know how to make conky act so when I maximize a window, the window doesn't cover the conky bar? I take it's something to with own_window_hints
Last edited by eth0_ (2008-02-20 22:37:11)
Offline
Working on a new config now, but I'll have to finish it before I'll submit it here
@eth0 - I have my openbox margins set up to make my new one line conky visible at all times. What WM are you using?
"Unix is basically a simple operating system, but you have to be a genius to understand the simplicity." (Dennis Ritchie)
Offline
My one liner that has three configurations so to say. One for no network, a second for ethernet and last for wireless. I live the if existing command. I'm working on the arch-updates right now.
#avoid flicker
double_buffer yes
#own window to run simultanious 2 or more conkys
own_window no
own_window_transparent yes
own_window_type normal
own_window_hints undecorate,sticky,skip_taskbar,skip_pager
background true
#borders
draw_borders no
border_margin 3
#shades
draw_shades no
#position
gap_x 5
gap_y 5
alignment bottom_left
#behaviour
update_interval 3
#color
default_color 000000
color1 d1d1d1
color2 d1d1d1
#font
use_xft yes
xftfont Myriad Pro:pixelsize=14
#to prevent window from moving
use_spacer yes
#mpd
mpd_host localhost
mpd_port 6600
minimum_size 1280 5
maximum_width 1280 30
TEXT
//Core1 ${color1}${cpu cpu1}%${color} //Core2 ${color1}${cpu cpu2}%${color} //Memory ${color1}${memperc}%${color} //Battery ${color1}${battery_percent BAT1}%${color}${if_existing /sys/class/net/wlan0/operstate up} //Upload ${color1}${upspeed wlan0}kb/s${color} //Download ${color1}${downspeed wlan0}kb/s${color} //Signal ${color1}${wireless_link_qual_perc wlan0}${color}${else}${if_existing /sys/class/net/eth0/operstate up} //Upload ${color1}${upspeed eth0}kb/s${color} //Download ${color1}${downspeed eth0}kb/s${color}${else}${endif}${endif}${if_existing /sys/class/net/wlan0/operstate up} //Mail ${color1}${execi 300 python ~/.scripts/gmail.py}${color}${else}${if_existing /sys/class/net/eth0/operstate up} //Mail ${color1}${execi 300 python ~/.scripts/gmail.py}${else}${endif}${endif} ${alignr}//${color2}${time %m.%e.%G}${color} //${color2}${time %l.%M}${color}
Last edited by Reasons (2008-02-21 21:13:37)
Offline
@synorgy - Compiz.
I'm sure there was an app (can't remember the name) that you could select a window and view its attributes, any ideas of the name?
Offline
Here's a shot of mine and a little Pacman script for conky if anyone is interested?
http://www.ubuntuboxes.co.uk/gazj/?q=node/3
Last edited by gazj (2008-02-21 23:36:52)
Offline
@synorgy - Compiz.
I'm sure there was an app (can't remember the name) that you could select a window and view its attributes, any ideas of the name?
Talking about xprop?
Offline
@synorgy - Compiz.
I'm sure there was an app (can't remember the name) that you could select a window and view its attributes, any ideas of the name?
You might also have some luck with xwininfo
"Unix is basically a simple operating system, but you have to be a genius to understand the simplicity." (Dennis Ritchie)
Offline
background yes
use_xft yes
xftfont DejaVu Sans Mono:pixelsize=11
xftalpha 0.8
update_interval 1.0
total_run_times 0
own_window yes
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
stippled_borders 0
border_margin 4
border_width 0
default_color orange
default_shade_color black
default_outline_color black
alignment bottom_right
gap_x 12
gap_y 12
no_buffers yes
cpu_avg_samples 2
net_avg_samples 2
override_utf8_locale no
use_spacer yes
TEXT
${alignr}$font |
${alignr}$font |
${alignr}$font $sysname-$kernel --'
${alignr}$font |
${alignr}$font time --|
${alignr}$font < ${time %a %d. %b %k:%M} > now --| |
${alignr}$font < $uptime > uptime --' |
${alignr}$font |
${alignr}$font system --|
${alignr}$font cpu --| |
${alignr}$font < $cpu% > used --| | |
${alignr}$font < $loadavg > load --| | |
${alignr}$font < ${top name 1} ${top cpu 1} > --| | |
${alignr}$font < ${top name 2} ${top cpu 2} > --| | |
${alignr}$font < ${top name 3} ${top cpu 3} > --| | |
${alignr}$font < ${top name 4} ${top cpu 4} > --' | |
${alignr}$font processes --| |
${alignr}$font < $processes > total --| | |
${alignr}$font < $running_processes > running --' | |
${alignr}$font temperature --' |
${alignr}$font < ${acpitemp} > acpi --| |
${alignr}$font < ${hwmon temp 1} > tmp1 --' |
${alignr}$font |
${alignr}$font resources --|
${alignr}$font < $diskio_read > read --| |
${alignr}$font < $diskio_write > write --| |
${alignr}$font ram --| |
${alignr}$font < $memperc% > used --| | |
${alignr}$font < $mem/$memmax > --' | | |
${alignr}$font < ${top_mem name 1} ${top mem 1} > --| | |
${alignr}$font < ${top_mem name 2} ${top mem 2} > --| | |
${alignr}$font < ${top_mem name 3} ${top mem 3} > --| | |
${alignr}$font < ${top_mem name 4} ${top mem 4} > --' | |
${alignr}$font < $swapperc% - $swap/$swapmax > swap --| |
${alignr}$font < ${swapbar 5,168} > --' | |
${alignr}$font < ${fs_used /}/${fs_size /} > root --| |
${alignr}$font < ${fs_bar 5,168 /} > --' | |
${alignr}$font < ${fs_used /home/muunleit/}/${fs_size /home/muunleit/} > home --| |
${alignr}$font < ${fs_bar 5,168 /home/muunleit/} > --' | |
${alignr}$font < ${fs_used /home/Container/}/${fs_size /home/Container/} > container --' |
${alignr}$font < ${fs_bar 5,168 /home/Container/} > --' |
${alignr}$font |
${alignr}$font net --|
${alignr}$font < ${tcp_portmon 1 65535 count} > connections --| |
${alignr}$font < ${tcp_portmon 1 32767 count} > in / locale --| |
${alignr}$font < ${tcp_portmon 1 32767 rhost 0} ${tcp_portmon 1 32767 lservice 0} > --| | |
${alignr}$font < ${tcp_portmon 1 32767 rhost 1} ${tcp_portmon 1 32767 lservice 1} > --| | |
${alignr}$font < ${tcp_portmon 1 32767 rhost 2} ${tcp_portmon 1 32767 lservice 2} > --' | |
${alignr}$font < ${tcp_portmon 32768 61000 count} > out / remote --| |
${alignr}$font < ${tcp_portmon 32768 61000 rhost 0} ${alignr} ${tcp_portmon 32768 61000 rservice 0} > --| | |
${alignr}$font < ${tcp_portmon 32768 61000 rhost 1} ${alignr} ${tcp_portmon 32768 61000 rservice 1} > --| | |
${alignr}$font < ${tcp_portmon 32768 61000 rhost 2} ${alignr} ${tcp_portmon 32768 61000 rservice 2} > --| | |
${alignr}$font < ${upspeed eth0} k/s > up --| |
${alignr}$font < ${upspeedgraph eth0 8,168 8b2132 fe8608} > --' | |
${alignr}$font < ${downspeed eth0} k/s > down --' |
${alignr}$font < ${downspeedgraph eth0 8,168 8b2132 fe8608} > --' |
${alignr}$font |
${alignr}$font music --'
${alignr}$font < ${execi 10 ~/.moc/mocinfo.sh} > --|
${alignr}$font < ${execi 10 ~/.moc/mocinfo2.sh} > --'
Last edited by muunleit (2008-02-28 22:29:29)
"The mind can make a heaven out of hell or a hell out of heaven" -- John Milton
Offline
I had no look with xwininfo or xprop. I was hoping to see the properties of say, a toolbar and see if it has a flag I could add to my conkyrc (own_window_hints) - any ideas anybody?
Offline
It's still a work in progress but I'm almost happy with the alignment. I'll probably change the colors again though, the top part isn't finished yet.
# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_hints undecorated,below,sticky,skip_pager,skip_taskbar
# normal, desktop, override
own_window_type desktop
# Use pseudo transparency with own_window?
own_window_transparent yes
# If own_window_transparent is set to no, you can set the background colour here
#own_window_colour black
background no
# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes
# Add spaces to keep things from moving about? This only affects certain objects.
use_spacer yes
# Use Xft?
use_xft yes
# Update interval in seconds
update_interval 1.0
# Minimum size of text area
#minimum_size 200 5
maximum_width 250
# Draw shades?
draw_shades no
# Text stuff
draw_outline no # amplifies text if yes
draw_borders no
draw_graph_borders yes
uppercase no # set to yes if you want all text to be in uppercase
# Stippled borders?
stippled_borders 1
# border margins
border_margin 10
# border width
border_width 1
# Default colors and also border colors, grey90 == #e5e5e5
default_color 808080
default_shade_color gray
default_outline_color grey
# Set conky on the bottom of all other applications
own_window_hints below
# Text alignment, other possible values are commented
#alignment top_left
alignment top_right
#alignment bottom_left
#alignment bottom_right
# Gap between borders of screen and text
gap_x 10
gap_y 10
# stuff after 'TEXT' will be formatted on screen
override_utf8_locale yes
xftfont Clean:size=10
xftalpha 0.5
# This is the number of times Conky will update before quitting.
# Set to zero to run forever.
total_run_times 0
# Subtract file system buffers from used memory?
no_buffers yes
# number of cpu samples to average
# set to 1 to disable averaging
cpu_avg_samples 1
TEXT
${color #888888}Kernel: ${color #CCCCCC}$kernel${color #888888}${alignr}Uptime: ${color #CCCCCC}$uptime${color}
${color #888888}Frequency: ${color #CCCCCC}${alignr}$freq_dyn_g GHz${color}
${cpugraph cpu0 15,245 11AD11 FD7171}
${voffset -18} $alignc${color #AF4BAF}CORE 0: ${cpubar cpu1 9,77} ${color #4B7DAF} ${platform coretemp.0 temp 1} ${color}°C @ ${cpu cpu1}%
${cpugraph cpu1 15,245 11AD11 FD7171}
${voffset -18} $alignc${color #AF4BAF}CORE 1: ${cpubar cpu2 8,77} ${color #4B7DAF} ${platform coretemp.1 temp 1} ${color}°C @ ${cpu cpu2}%
${cpugraph cpu2 15,245 11AD11 FD7171}
${voffset -18} $alignc${color #AF4BAF}CORE 2: ${cpubar cpu3 8,77} ${color #4B7DAF} ${platform coretemp.2 temp 1} ${color}°C @ ${cpu cpu3}%
${cpugraph cpu3 15,245 11AD11 FD7171}
${voffset -18} $alignc${color #AF4BAF}CORE 3: ${cpubar cpu4 8,77} ${color #4B7DAF} ${platform coretemp.3 temp 1} ${color}°C @ ${cpu cpu4}%
${color #888888}CPU In:$alignr${color #11AD11}${platform it87.656 fan 1}${color}
${color #888888}System:$alignr${color #CBCB05}${platform it87.656 fan 3}${color}
${color #888888}CPU Out:$alignr${color #FD7171}${platform it87.656 fan 2}${color}
${color #888888}RAM:${color #FD7171}$alignc$mem${color #CBCB05} | ${color #11AD11}$memmax$alignr$memperc%${color}
${membar 5,245}
sda1 ${color #FD7171} ${fs_used /boot} ${color #CBCB05} | ${color #11AD11} ${fs_size /boot} $alignr ${fs_free_perc /boot}% free${color}
${fs_bar 3,245 /boot}
sda2 ${color #FD7171} ${fs_used /} ${color #CBCB05} | ${color #11AD11} ${fs_size /} $alignr ${fs_free_perc /}% free${color}
${fs_bar 3,245 /}
sda3 ${color #FD7171} ${fs_used /home} ${color #CBCB05} | ${color #11AD11} ${fs_size /home} $alignr ${fs_free_perc /home}% free${color}
${fs_bar 3,245 /home}
${offset -11}${color #FD7171}${top cpu 1}%$alignc${offset 30}${top name 1}$alignr${top pid 1}
${offset -11}${color #FFA449}${top cpu 2}%$alignc${offset 30}${top name 2}$alignr${top pid 2}
${offset -11}${color #CBCB05}${top cpu 3}%$alignc${offset 30}${top name 3}$alignr${top pid 3}
${offset -11}${color #79CD4E}${top cpu 4}%$alignc${offset 30}${top name 4}$alignr${top pid 4}
${offset -11}${color #11AD11}${top cpu 5}%$alignc${offset 30}${top name 5}$alignr${top pid 5}
${color #888888}Incoming:$alignc${color #11AD11}${offset 30}${downspeedf eth0}$alignr${color #888888}KB/s${color}
${color #888888}${downspeedgraph eth0 15,245 11AD11 FD7171}${color}
${color #11AD11}${voffset -17}$alignc${totaldown eth0}${color}
${color #888888}Outgoing:$alignc${color #FD7171}${offset 30}${upspeedf eth0}$alignr${color #888888}KB/s${color}
${color #888888}${upspeedgraph eth0 15,245 11AD11 FD7171}${color}
${color #FD7171}${voffset -17}$alignc${totalup eth0}${color}
Last edited by liquibyte (2008-02-27 00:42:13)
Offline
not finished...
background no
use_xft yes
xftfont Bitstream Vera Sans Mono:size=7
update_interval 3.0
total_run_times 0
#own_window no
#own_window_transparent yes
own_window yes
own_window_transparent yes
own_window_hints_undecorated,below,sticky,skip_taskbar,skip_pager
#own_window_type desktop
double_buffer yes
minimum_size 290 5
draw_shades no
draw_outline no
draw_borders no
stippled_borders 8
border_margin 4
border_width 1
default_color white
default_shade_color black
default_outline_color black
alignment top_right
maximum_width 320
gap_x 12
gap_y 12
no_buffers yes
uppercase no
cpu_avg_samples 2
net_avg_samples 2
override_utf8_locale no
# stuff after 'TEXT' will be formatted on screen
TEXT
${color #BBBBBB}.::$nodename::.${offset 30}$kernel${offset 30}${time %T}
${color #FFFFFF}.::System::.
${color #BBBBBB}${execi 1000 cat /proc/cpuinfo | grep 'model name' | sed -e 's/model name.*: //'}
${color #BBBBBB}|- Uptime:${color #BBBBBB} $uptime ${color #BBBBBB}- Load:${color #BBBBBB} $loadavg
${color #BBBBBB}|- CPU Frequency:${color #BBBBBB} $freq_dyn_g ${color #BBBBBB} Maximum:${color #BBBBBB} $freq_g
${color #BBBBBB}|- CPU 1 Usage:${color #BBBBBB} ${cpu cpu1}% ${color #777777} ${cpubar}
${color #BBBBBB}|- CPU 2 Usage:${color #BBBBBB} ${cpu cpu2}% ${color #777777} ${cpubar}
${color #FFFFFF}CPU 1: ${color #CCCCCC}Temp CPU 1: ${execi 5 /home/ich/system/scripts/conky/weather/temp.sh}
${color #777777}${cpugraph cpu cpu1 32,309 777777 BBBBBB}
${color #FFFFFF}CPU 2: ${color #CCCCCC}Temp CPU 2: ${execi 5 /home/ich/system/scripts/conky/weather/temp2.sh}
${color #777777}${cpugraph cpu cpu2 32,309 777777 BBBBBB}
${color #BBBBBB}|- RAM Usage:${color #BBBBBB} $mem/$memmax - $memperc% ${color #777777}${membar}
${color #BBBBBB}|- Swap Usage:${color #BBBBBB} $swap/$swapmax - $swapperc% ${color #777777}${swapbar}
${color #BBBBBB}|- Processes:${color #BBBBBB} $processes ${color #BBBBBB}Running:${color #BBBBBB} $running_processes
${color #FFFFFF}.::Wired::.
${color #BBBBBB}|- Down:${color #BBBBBB} ${downspeed eth0} k/s${color #BBBBBB}${offset 30}Up:${color #BBBBBB} ${upspeed eth0} k/s ${alignr}Down: ${totaldown eth0}
${color #BBBBBB}|- Address: ${color #BBBBBB}${addr eth0} ${alignr}Up: ${totalup eth0}
${color #FFFFFF}.::File Systems::.
${color #BBBBBB}|- / ${color #CCCCCC}${fs_used /}/${fs_size /} ${color #777777}${fs_bar /}
${color #BBBBBB}|- /home ${color #CCCCCC}${fs_used /home/}/${fs_size /home/} ${color #777777}${fs_bar /home/}
${color #FFFFFF}.::GPU::.
${color #CCCCCC}|- Card: ${execi 30 nvclock -i | grep 'Card:' | cut -c16-30}
${color #CCCCCC}|- GPU: ${execi 30 nvclock -i | grep 'Architecture:' | cut -c16-19} @ ${execi 30 nvclock -i | grep 'GPU clock:' | cut -c13-23}
${color #CCCCCC}|- Mem: ${execi 30 nvclock -i|grep 'Amount:'|cut -c10-15}${execi 30 nvclock -i|grep 'Type:'|cut -c17-20} @ ${execi 30 nvclock -i|grep 'Clock:'|cut -c10-21}
${color #CCCCCC}|- GPU Temp: ${execi 30 nvclock -i | grep "GPU temperature" | cut -c18-20}
${color #FFFFFF}.::Top::.
${color #BBBBBB}|- Name PID CPU% MEM%
${color #CCCCCC} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${color #CCCCCC} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${color #CCCCCC} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
${color #CCCCCC} ${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}
${color #CCCCCC} ${top name 5} ${top pid 5} ${top cpu 5} ${top mem 5}
${color #BBBBBB}|- Mem usage
${color #CCCCCC} ${top_mem name 1} ${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1}
${color #CCCCCC} ${top_mem name 2} ${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2}
${color #CCCCCC} ${top_mem name 3} ${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3}
${color #CCCCCC} ${top_mem name 4} ${top_mem pid 4} ${top_mem cpu 4} ${top_mem mem 4}
${color #CCCCCC} ${top_mem name 5} ${top_mem pid 5} ${top_mem cpu 5} ${top_mem mem 5}
${color #CCCCCC}.::PACMAN::.
${color #CCCCCC} ${execi 1800 /home/ich/system/scripts/conky/pacman.sh}
Offline