curiously, i know that exec opens the command in question. but what does execi do? i assume "execute invisible"?
edit: nevermind, i looked it up and found it as "execute interval".
curiously, i know that exec opens the command in question. but what does execi do? i assume "execute invisible"?
edit: nevermind, i looked it up and found it as "execute interval".
The views expressed in this post belong to Tristam Green and do not represent the views of any other entity, foreign or domestic, as long as you both shall live, Amen.
OMG! Cheesecake! | Fuduntu - catch the fever!
How do any of you get the latest conky to compile? It segfaults after I compile and run it.
Linux Advanced Guides and News!
http://linuxinnovations.blogspot.com/
Green means go, Yellow means faster, Red means don't stop.
Linux Advanced Guides and News!
http://linuxinnovations.blogspot.com/
Green means go, Yellow means faster, Red means don't stop.
I didn't have to compile it at all. I just installed through synaptic, created .conkyrc in /~ , configured the file, and restarted conky in terminal to test.
The views expressed in this post belong to Tristam Green and do not represent the views of any other entity, foreign or domestic, as long as you both shall live, Amen.
OMG! Cheesecake! | Fuduntu - catch the fever!
Tristram Green:
It's just occurred to me that you've done something that I don't think anyone else here has with their conkyrc file - you've got an "if...else" statement in there with your usb.
That opens up a huge list of possibilities - especially with say, coloured text/fonts for warnings with overheating, or other methods to show an alert.
cheers!
AMD Athlon 3000 @2.0Ghz / MSI K8T Neo K8T800 / 2 GB Corsair DDR RAM / Nvidia GeForce 6600GT (256MB) / Samsung 226BW @ 1600x1050 / 120GB/320GB PATA.
thanks i really like what it does to be honest, i was having a lot of difficulty with conky opening rhythmbox everytime i logged in, so i wrote an if_running statement to start data collection only if it is already running! i solved a vast problem last night just by prodding around with the configuration file
here's the revised statement, with the additions in bold.
It doesn't look any different when running as it did before, but it prevented me from having to install any other software like MPD (I play my music over my wireless network off a shared drive, so MPD didn't seem viable), and it doesn't open rhythmbox anymore upon session start, so I'm now a very happy userCode:# .conkyrc configuration # Tristam Green, 11-21-2007 # Revision 1.123 11-23-2007 # maintain spacing between certain elements use_spacer yes # set to yes if you want tormo to be forked in the background #background yes use_xft yes # Xft font when Xft is enabled xftfont Vera-6 #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 1.0 # Create own window instead of using desktop (required in nautilus) own_window yes own_window_type override own_window_transparent yes own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager own_window_hints below # Use double buffering (reduces flicker, may not work for everyone) double_buffer yes # Minimum size of text area minimum_size 200 5 maximum_width 250 # Draw shades? draw_shades no # Draw outlines? draw_outline no # amplifies text # Draw borders around text draw_borders no # Stippled borders? stippled_borders 3 # border margins border_margin 5 # border widt5 border_width 6 # 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 24 gap_y 24 # Subtract file system buffers from used memory? no_buffers yes # set to yes if you want all text to be in uppercase uppercase no # *** RHYTHMBOX FORMAT SETTINGS *** # ${rhythmbox-client --print-playing} # Print the title and artist of the playing song # ${rhythmbox-client --print-playing-format} # Print formatted details of the song # *** PARAMETERS *** # %at Album title # %aT Album title in lowercase # %aa Album artist # %aA Album artist in lowercase # %ay Release year of album # %an Album disc number # %aN Album disc number with leading zero # %ag Album genre # %aG Album genre in lowercase # %tt Track title # %tT Track title in lowercase # %ta Track artist # %tA Track artist in lowercase # %tn Track number # %tN Track number with leading zero # %td Track duration # %te Elapsed time of track # Variables can be combined using quotes. For example "%tn %aa %tt", will # print the track number followed by the artist and the title of the # track. # stuff after 'TEXT' will be formatted on screen TEXT ${color white}${font OpenLogos:size=14}T u ${font}${font Vera:size=8}$alignr ${time %a } ${time %e %B %G} | ${time %I:%M %P}${font} ${color #5da5d3}User ${hr 1} ${color #e5e5e5}${execi 30 whoami} @ $nodename $alignr $sysname $machine $kernel ${color #e5e5e5}${execi 1000 cat /proc/cpuinfo | grep 'model name' | sed -e 's/model name.*: //'} $alignr${freq_g} GHz ${color #e5e5e5}uptime $alignr $uptime_short ${color #5da5d3}System ${hr 1} ${color #e5e5e5}cpu usage $color $alignr $cpu% ${color #e5e5e5}load $alignr $loadavg ${color #5da5d3}Processes ${hr 1} ${color #e5e5e5}total $alignr $processes ${color #e5e5e5}running $alignr $running_processes ${color #5da5d3}Memory ${hr 1} ${color #e5e5e5}total $alignr ${memmax} ${color #e5e5e5}used $alignr $memperc% $mem ${color #5da5d3}Wireless (${color #ff9900}${addr eth1}${color #5da5d3}) ${hr 1} ${color e5e5e5}ssid ${wireless_essid eth1} $alignr ${wireless_ap eth1} ${color e5e5e5}mode ${wireless_mode eth1} $alignr Bitrate: ${wireless_bitrate eth1} ${color e5e5e5}down ${color #ff9900}${downspeedf eth1} ${color e5e5e5}k/s ${alignr}${color e5e5e5}up ${color #0000ff}${upspeedf eth1} ${color e5e5e5}k/s ${color e5e5e5}total down: ${totaldown eth1} $alignr total up: ${totalup eth1} ${color #5da5d3}Wired (${color #ff9900}${addr eth0}${color #5da5d3}) ${hr 1} ${color e5e5e5}down ${color #ff9900}${downspeedf eth0} ${color e5e5e5}k/s ${alignr}${color e5e5e5}up ${color #0000ff}${upspeedf eth0} ${color e5e5e5}k/s ${color e5e5e5}total down: ${totaldown eth0} $alignr total up: ${totalup eth0} ${color #5da5d3}File Systems ${hr 1} ${color #e5e5e5}root ${color white}${fs_free /} (${fs_free_perc /}%) ${color #e5e5e5}free of ${fs_size /} ${fs_bar /} ${color #e5e5e5}vista ${color white}${fs_free /media/sda3} (${fs_free_perc /media/sda3}%) ${color #e5e5e5}free of ${fs_size /media/sda3} ${fs_bar /media/sda3} ${if_mounted /media/SCOTT4GB} ${color #e5e5e5}usb ${color white}${fs_free /media/SCOTT4GB} (${fs_free_perc /media/SCOTT4GB}%) ${color #e5e5e5}free of ${fs_size /media/SCOTT4GB} ${fs_bar /media/SCOTT4GB}${else} usb not mounted${endif} ${color #5da5d3}Music ${hr 1} ${if_running rhythmbox} ${color #e5e5e5}status $alignr active ${color #e5e5e5}title ${execi 1 rhythmbox-client --print-playing-format "%aA - %tT"} ${color #e5e5e5}album ${execi 1 rhythmbox-client --print-playing-format "%aT (%ay)"} $alignr track ${exec rhythmbox-client --print-playing-format "%tn"} ${color #e5e5e5}time ${exec rhythmbox-client --print-playing-format "%te / %td"}${else} ${color #e5e5e5}status $alignr inactive ${color #e5e5e5}title Not playing ${color #e5e5e5}album Not playing $alignr track Not playing ${color #e5e5e5}time Not playing${endif}
The views expressed in this post belong to Tristam Green and do not represent the views of any other entity, foreign or domestic, as long as you both shall live, Amen.
OMG! Cheesecake! | Fuduntu - catch the fever!
thank you for the revised one, rhythmbox was opening all the time after it was shutdown, now it works perfectly
anyways, heres my conky + rc / screen
(toobad the ubuntu and gnome logo didnt work (the T u)
http://i12.tinypic.com/8acp3c7.png
Code:# .conkyrc configuration # basics by Tristam Green, 11-21-2007 # edited by fusion.fake # maintain spacing between certain elements use_spacer yes # set to yes if you want tormo to be forked in the background #background yes use_xft yes # Xft font when Xft is enabled xftfont Vera-8 #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 1.0 # Create own window instead of using desktop (required in nautilus) own_window yes own_window_type override own_window_transparent yes own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager own_window_hints below # Use double buffering (reduces flicker, may not work for everyone) double_buffer yes # Minimum size of text area minimum_size 200 5 maximum_width 250 # Draw shades? draw_shades no # Draw outlines? draw_outline no # amplifies text # Draw borders around text draw_borders no # Stippled borders? stippled_borders 3 # border margins border_margin 5 # border widt5 border_width 6 # 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 24 gap_y 24 # Subtract file system buffers from used memory? no_buffers yes # set to yes if you want all text to be in uppercase uppercase no # *** RHYTHMBOX FORMAT SETTINGS *** # ${rhythmbox-client --print-playing} # Print the title and artist of the playing song # ${rhythmbox-client --print-playing-format} # Print formatted details of the song # *** PARAMETERS *** # %at Album title # %aT Album title in lowercase # %aa Album artist # %aA Album artist in lowercase # %ay Release year of album # %an Album disc number # %aN Album disc number with leading zero # %ag Album genre # %aG Album genre in lowercase # %tt Track title # %tT Track title in lowercase # %ta Track artist # %tA Track artist in lowercase # %tn Track number # %tN Track number with leading zero # %td Track duration # %te Elapsed time of track # Variables can be combined using quotes. For example "%tn %aa %tt", will # print the track number followed by the artist and the title of the # track. # stuff after 'TEXT' will be formatted on screen TEXT ${color white}${font OpenLogos:size=14}danY Linux ${font}${font Vera:size=8}$alignr ${time %a } ${time %e %B %G} | ${time %I:%M %P}${font} ${color #5da5d3}User ${hr 1} ${color #e5e5e5}${execi 30 whoami} @ $nodename $alignr $sysname $machine $kernel ${color #e5e5e5}${execi 1000 cat /proc/cpuinfo | grep 'model name' | sed -e 's/model name.*: //'} ${color #CCCCCC}$alignr${freq_g} GHz ${color #e5e5e5}uptime $alignr $uptime_short ${color #5da5d3}System ${hr 1} ${color #e5e5e5}cpu usage $color $alignr $cpu% ${color #e5e5e5}load $alignr $loadavg ${color #5da5d3}Processes ${hr 1} ${color #e5e5e5}total $alignr $processes ${color #e5e5e5}running $alignr $running_processes ${color #5da5d3}Memory ${hr 1} ${color #e5e5e5}total $alignr ${memmax} ${color #e5e5e5}used $alignr $memperc% $mem ${color #5da5d3}Wired (${color #ff9900}${addr eth0}${color #5da5d3}) ${hr 1} ${color e5e5e5}down ${color #ff9900}${downspeedf eth0} ${color e5e5e5}k/s ${alignr}${color e5e5e5}up ${color #0000ff}${upspeedf eth0} ${color e5e5e5}k/s ${color e5e5e5}total down: ${totaldown eth0} $alignr total up: ${totalup eth0} ${color #5da5d3}File Systems ${hr 1} ${color #e5e5e5}fusion linux ${color white}${fs_free /} (${fs_free_perc /}%) ${color #e5e5e5}free of ${fs_size /} ${fs_bar /} ${color #e5e5e5}fusion XP ${color white}${fs_free /media/sda1} (${fs_free_perc /media/sda1}%) ${color #e5e5e5}free of ${fs_size /media/sda1} ${fs_bar /media/sda1} ${color #e5e5e5}fusion 320gb ${color white}${fs_free /media/sda5} (${fs_free_perc /media/sda5}%) ${color #e5e5e5}free of ${fs_size /media/sda5} ${fs_bar /media/sda5} ${color #e5e5e5}fusion 250gb ${color white}${fs_free /media/sdb5} (${fs_free_perc /media/sdb5}%) ${color #e5e5e5}free of ${fs_size /media/sdb5} ${fs_bar /media/sdb5} ${if_running rhythmbox} ${color #e5e5e5}status $alignr active ${color #e5e5e5}title ${execi 1 rhythmbox-client --print-playing-format "%aA - %tT"} ${color #e5e5e5}album ${execi 1 rhythmbox-client --print-playing-format "%aT (%ay)"} $alignr track ${exec rhythmbox-client --print-playing-format "%tn"} ${color #e5e5e5}time ${exec rhythmbox-client --print-playing-format "%te / %td"}${else} ${color #e5e5e5}status $alignr inactive ${color #e5e5e5}title Not playing ${color #e5e5e5}album Not playing $alignr track Not playing ${color #e5e5e5}time Not playing${endif} ${execi 30 wmctrl -a conky}
Glad I could help
If I may, the only suggestion I would make is to change this line:
to a smaller number; some of your text appears to be running offscreen. As for the emblems not appearing, you need to install the OpenLogos font, which you can find at gnome-look.org.Code:# Xft font when Xft is enabled xftfont Vera-8
Otherwise, it looks great! Glad my tweaks helped
-Tristam
The views expressed in this post belong to Tristam Green and do not represent the views of any other entity, foreign or domestic, as long as you both shall live, Amen.
OMG! Cheesecake! | Fuduntu - catch the fever!
enjoy
# Conky Configuration
# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_type normal
own_window_transparent no
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes
# fiddle with window
use_spacer no
use_xft no
# Xft font when Xft is enabled
xftfont Bitstream Vera Sans Mono:size=9
# Text alpha when using Xft
xftalpha 0.10
# Update interval in seconds
update_interval 2.0
# Minimum size of text area
# minimum_size 160 5
# Draw shades?
draw_shades no
# Text stuff
draw_outline no # amplifies text if yes
draw_borders no
uppercase no # set to yes if you want all text to be in uppercase
# Stippled borders?
stippled_borders 5
# border margins
border_margin 3
draw_outline no
# border width
border_width 10
# Default colors and also border colors, grey90 == #e5e5e5
default_color grey
own_window_colour 353535
own_window_transparent no
# 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 3
gap_y 3
draw_graph_borders no
# stuff after 'TEXT' will be formatted on screen
TEXT
${color grey}Up: $uptime${color #FF6D00} | ${color grey}Processes: $processes${color FF6D00} | ${color grey}Cpu: ${cpu}%${color #FF6D00} | ${color grey}Temp: ${acpitemp}C${color #FF6D00} | ${color grey}Ram: $memperc%${color FF6D00} | ${color grey}home: ${fs_used /home}/${fs_size /home}${color FF6D00} | ${color grey}Down: ${downspeed eth1} k/s${color FF6D00} | ${color grey}Up: ${upspeed eth1} k/s${color FF6D00} | ${color grey}Local IP: ${color grey}${addr eth1}${color FF6D00} | ${color grey}Gmail: ${texeci 60 python ~/gmail.py}${color FF6D00} | ${color grey}Battery: ${battery} ${color FF6D00}|
http://img404.imageshack.us/my.php?i...eenshotng5.png
Last edited by sardines454; November 24th, 2007 at 11:39 PM. Reason: forgot picture
Bookmarks