Here is my .conkyrc
And here is the screenshotCode:background no font Sans:size=8 #xftfont Sans:size=10 use_xft yes xftalpha 0.9 update_interval 3.0 total_run_times 0 own_window yes own_window_type normal own_window_transparent yes own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager double_buffer yes minimum_size 220 5 maximum_width 220 draw_shades yes draw_outline no draw_borders no draw_graph_borders yes default_color white default_shade_color black default_outline_color green alignment top_right gap_x 12 gap_y 35 no_buffers yes uppercase no cpu_avg_samples 2 override_utf8_locale no uppercase yes # set to yes if you want all text to be in uppercase TEXT ${color white}SYSTEM INFO ${hr 1}${color} Hostname: $alignr$nodename Kernel: $alignr$kernel Uptime: $alignr$uptime Temp: ${alignr}${acpitemp}C Processes: ${alignr}$processes ($running_processes running) Load: ${alignr}$loadavg ${color white}CPU${hr 1}${color} CPU1 ${cpu cpu1}% ${alignr}CPU2 ${cpu cpu2}% ${cpugraph 25,107 cpu1} ${alignr}${cpugraph 25,107 cpu2} ${color white}RAM${hr 1}${color} ${alignr}$mem / $memmax ($memperc%) ${membar 4} ${color white}Highest CPU Usage${hr 1}${color} Process $alignr CPU% MEM% ${top name 1}$alignr${top cpu 1}${top mem 1} ${top name 2}$alignr${top cpu 2}${top mem 2} ${top name 3}$alignr${top cpu 3}${top mem 3} ${color white}Highest Memory Usage${hr 1}${color} Process $alignr CPU% MEM% ${top_mem name 1}$alignr${top_mem cpu 1}${top_mem mem 1} ${top_mem name 2}$alignr${top_mem cpu 2}${top_mem mem 2} ${top_mem name 3}$alignr${top_mem cpu 3}${top_mem mem 3} ${color white}Filesystem ${hr 1}${color} Root: ${alignr}${fs_free /} / ${fs_size /} ${fs_bar 4 /} Home: ${alignr}${fs_free /home/mike} / ${fs_size /home/mike} ${fs_bar 4 /home/mike} ${color white}eth0 interface ${hr 1}${color} IP ${alignr}${addr eth0} Down ${downspeed eth0} k/s ${alignr}Up ${upspeed eth0} k/s ${downspeedgraph eth0 25,107} ${alignr}${upspeedgraph eth0 25,107} Total ${totaldown eth0} ${alignr}Total ${totalup eth0} ${color white}eth1 interface ${hr 1}${color} IP ${alignr}${addr eth1} Down ${downspeed eth1} k/s ${alignr}Up ${upspeed eth1} k/s ${downspeedgraph eth1 25,107} ${alignr}${upspeedgraph eth1 25,107} Total ${totaldown eth1} ${alignr}Total ${totalup eth1} ${color white}Internet ${hr 1}${color} IP ${alignr}${exec ifconfig | tail -7 | head -1 | head -c 35 | tail -c 15 | grep -o "[0-9]*\.[0-9]*\.[0-9]*\.[0-9]*"} P-T-P ${alignr}${exec ifconfig | tail -7 | head -1 | head -c 55 | tail -c 17 | grep -o "[0-9]*\.[0-9]*\.[0-9]*\.[0-9]*"} MASK ${alignr}${exec ifconfig | tail -7 | head -1 | tail -c 16 | grep -o "[0-9]*\.[0-9]*\.[0-9]*\.[0-9]*"}
http://img263.imageshack.us/img263/7...eenshot1dd.png
Registered Ubuntu User #29430
Nothing too drastic with this one. It's my first attempt at a graphical conky. The background was an afterthought. I decided to make it look "stock" for Ubuntu by using the default Human GTK color scheme and "Ubuntu Title" font (took a little tweaking to figure out how to make the title font work. The reason why the images are stored in /usr/share/icons/Humanity is because I originally started out with icons from the Humanity set saved as PNGs, but later incorporated icons from other sets and just was too lazy to change it. Eventually I'll try to package all of it as a DEB for easy installation and I'll move the images to /etc/conky/images or something. Or maybe in /usr/share/pixmaps... I guess it doesn't matter Also, instead of creating a .conkyrc in my home directory I just made a backup of /etc/conky/conky.config so that this is the default conky for every user.Code:background no cpu_avg_samples 2 double_buffer yes format_human_readable yes net_avg_samples 2 no_buffers yes override_utf8_locale yes own_window yes own_window_type override own_window_title conky own_window_transparent yes own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager short_units on temperature_unit fahrenheit text_buffer_size 256 total_run_times 0 update_interval 1 use_spacer none use_xft yes uppercase no xftfont ubuntu\-title:size=10 xftalpha 0.5 alignment tr gap_x 10 gap_y 45 minimum_size 200 0 stippled_borders no draw_borders no draw_graph_borders no draw_gauge_borders no draw_shades no default_bar_size 200 6 color0 F5EDD8 color1 F4C256 color2 969696 TEXT ${image /usr/share/icons/Humanity/Conky/conkybg.png -p 0,0}${image /usr/share/icons/Humanity/Conky/ubuntu.png -p 0,0}${offset 34}${color1}${font ubuntu\-title:size=16}Ubuntu ${color0}9.10 ${offset 34}${color1}${font ubuntu\-title:size=10}Kernel: ${voffset -13}${offset 75}${color0}${kernel} ${offset 34}${color1}${font ubuntu\-title:size=10}Uptime: ${voffset -13}${offset 75}${color0}${uptime} ${offset 34}${color1}${font ubuntu\-title:size=10}User: ${voffset -13}${offset 75}${color0}${user_names} ${image /usr/share/icons/Humanity/Conky/face.png -p 75,75} ${voffset 50}${offset 34}${color2}$hr ${image /usr/share/icons/Humanity/Conky/cpu.png -p 0,155} ${voffset -13}${color1}${offset 34}${font ubuntu\-title:size=10}Core1: ${color0}${voffset -13}${offset 75}${cpubar cpu1 10,90} ${cpu cpu1}${font DejaVu Sans Book:size=10}%${font} ${color1}${offset 34}${font ubuntu\-title:size=10}Core2: ${color0}${voffset -13}${offset 75}${cpubar cpu1 10,90} ${cpu cpu2}${font DejaVu Sans Book:size=10}%${font} ${color1}${offset 34}${font ubuntu\-title:size=10}Freq: ${color0}${voffset -13}${offset 75}${freq_g} GHz ${color1}${offset 34}${font ubuntu\-title:size=10}Temp: ${color0}${voffset -13}${offset 75}${acpitemp}${font DejaVu Sans Book:size=10}ᵒ${font ubuntu\-title:size=10}F ${offset 34}${color2}$hr ${image /usr/share/icons/Humanity/Conky/ram.png -p 0,230} ${voffset -13}${color1}${offset 34}${font ubuntu\-title:size=10}RAM: ${color0}${voffset -13}${offset 75}${membar 10,90} ${memperc}${font DejaVu Sans Book:size=10}%${font} ${font ubuntu\-title:size=10}${offset 75}${mem}/${memmax} ${color1}${offset 34}${font ubuntu\-title:size=10}SWAP: ${color0}${voffset -13}${offset 75}${swapbar 10,90} ${swapperc}${font DejaVu Sans Book:size=10}%${font} ${font ubuntu\-title:size=10}${offset 75}${swap}/${swapmax} ${image /usr/share/icons/Humanity/Conky/hdd-ubuntu.png -p 0,292} ${color1}${voffset -13}${offset 34}${font ubuntu\-title:size=10}HDD: ${color0}${voffset -13}${offset 75}${fs_bar 10,90} ${fs_used_perc}${font DejaVu Sans Book:size=10}% ${font ubuntu\-title:size=10}${offset 75}${fs_used /}/${fs_size /} ${font}${image /usr/share/icons/Humanity/Conky/windows-hdd.png -p 0,328} ${color1}${voffset -13}${offset 34}${font ubuntu\-title:size=10}Win: ${color0}${voffset -13}${offset 75}${fs_bar 10,90 /media/7886526C86522AC0} ${fs_used_perc /media/7886526C86522AC0}${font DejaVu Sans Book:size=10}%${font} ${font ubuntu\-title:size=10}${offset 75}${fs_used /media/7886526C86522AC0}/${fs_size /media/7886526C86522AC0} ${font}${image /usr/share/icons/Humanity/Conky/hdd.png -p 0,360} ${color1}${voffset -13}${offset 34}${font ubuntu\-title:size=10}Shared: ${color0}${voffset -13}${offset 75}${fs_bar 10,90 /media/Shared} ${fs_used_perc /media/Shared}${font DejaVu Sans Book:size=10}%${font} ${font ubuntu\-title:size=10}${offset 75}${fs_used /media/Shared}/${fs_size /media/Shared} ${voffset -5}${offset 34}${color2}$hr ${font}${image /usr/share/icons/Humanity/Conky/apps.png -p 0,410} ${voffset -14}${offset 34}${color1}Name ${voffset -14}${offset 90}PID ${voffset -14}${offset 135}CPU% ${voffset -14}${offset 175}MEM% ${offset 34}${color0}${top name 1} ${voffset -14}${offset 90}${top pid 1} ${voffset -14}${offset 125}${top cpu 1} ${voffset -14}${offset 165}${top mem 1} ${offset 34}${color0}${top name 2} ${voffset -14}${offset 90}${top pid 2} ${voffset -14}${offset 125}${top cpu 2} ${voffset -14}${offset 165}${top mem 2} ${offset 34}${color0}${top name 3} ${voffset -14}${offset 90}${top pid 3} ${voffset -14}${offset 125}${top cpu 3} ${voffset -14}${offset 165}${top mem 3} ${voffset -5}${offset 34}${color2}$hr ${image /usr/share/icons/Humanity/Conky/wifi.png -p 0,468} ${image /usr/share/icons/Humanity/Conky/up.png -p 90,468}${image /usr/share/icons/Humanity/Conky/down.png -p 180,468} ${font ubuntu\-title:size=10}${color0}${voffset -15}${offset 34}${upspeed eth1}/s ${voffset -15}${offset 125}${downspeed eth1}/s ${offset 34}${font ubuntu\-title:size=10}${color1}IP address: ${font ubuntu\-title:size=10}${color0}${addr eth1} ${image /usr/share/icons/Humanity/Conky/eth.png -p 0,515} ${image /usr/share/icons/Humanity/Conky/up.png -p 90,515}${image /usr/share/icons/Humanity/Conky/down.png -p 180,515} ${font ubuntu\-title:size=10}${color0}${voffset -15}${offset 34}${upspeed eth0}/s ${voffset -15}${offset 125}${downspeed eth0}/s ${offset 34}${font ubuntu\-title:size=10}${color1}IP address: ${font ubuntu\-title:size=10}${color0}${addr eth0}
The only thing I wish I could change is the 'face.png'. My original thought was to use the "~/.face" for that image, but the image is too big and could not be scaled by conky. I could just save .face at 64x64 I guess and it would work...
Just a personal thing, I'm looking to print my NVIDIA Driver version in Conky.
The command to identify the version is:
It returns:Code:cat /proc/driver/nvidia/version
I'd like to just grab the "190.53" part of that. There are 2 spaces before and after it - the first 2 occurrences of double spaces, which I figure could be used with a substring command. I know I could get it with some trial and error (maybe a couple of days, if I'm lucky, lol), but can anyone out there get it quicker? I'll be at it in the meantime, so I'll update this post if I get it.Code:NVRM version: NVIDIA UNIX x86 Kernel Module 190.53 Tue Dec 8 18:51:41 PST 2009 GCC version: gcc version 4.4.1 (Ubuntu 4.4.1-4ubuntu8)
Thanks for any help!
EDIT: Got some help from someone over at linuxquestions.org, here's the command, in case anyone is interested:
Code:${exec cat /proc/driver/nvidia/version | awk '/NVIDIA/ {print $8}'}
Last edited by johnjust; January 13th, 2010 at 02:50 AM. Reason: Found the Answer!
Laptop: Lenovo Thinkpad SL500 Elite, 3GB RAM, 250GB HDD, Intel Core 2 Duo T6570, NVIDIA GeForce G 105M 256MB
I abstract my calls out into bash scripts, but here is some of the ones I use.
* as seen here: http://conky.linux-hardcore.com/?page_id=830Code:Card: ${execi 600 lspci | grep VGA | tail -c+36 | head -n1} Driver: NVidia ${execi 600 nvidia-settings -q NvidiaDriverVersion -t} Resolution: ${execi 600 nvidia-settings -q FrontEndResolution -t} Refresh: ${execi 600 nvidia-settings -q RefreshRate3 -t} Mem: ${execi 600 nvidia-settings -q VideoRam -t} Clock: ${execi 600 nvidia-settings -q GPU2DClockFreqs -t} XRandr: ${execi 600 nvidia-settings -q XRandRVersion -t} OpenGL: ${execi 600 nvidia-settings -q OpenGLVersion -t | head -c6} Xorg: ${execi 600 cat /var/log/Xorg.0.log | grep "X.Org X Server " | tail -c+16}
|| Kubuntu x86_64 (15.10 Dev.) || KDE 4.9.00 ||
|| Dell Inspiron 570 || 8GB PC3-10600 DDR3 RAM || AMD Phenom II X4 820 @ 2.8Ghz ||
|| Logitech M570 Trackball || Logitech G15 Gaming Keyboard ||
Conky: ... no such configuration: 'normal'
Needing help here.
Here's my .conkyrc (minus my twitter info that would allow you to hack my account)
Here is my output, as is:Code:use_xft yes xftfont sans Bold:size=9 double_buffer yes update_interval 1 draw_borders 0 draw_shades yes no_buffers yes default_color white default_shade_color black default_outline_color black alignment top_right minimum_width 500 uppercase no override_utf8_locale yes use_spacer yes TEXT $color${font sans Bold:size=11}SYSTEM${hr 2} $font${color #f60609}$nodename $kernel (Mint) Uptime ${color #17c6fe}$uptime $color${hr 2} ${color #f60609}CPU: ${color #17c6fe}$cpu% ${color #f60609}RAM: ${color #17c6fe}$mem/$memmax ${color #f60609}HD: ${color #17c6fe}${fs_used /}/${fs_free /} ${color #f60609}Swap: ${color #17c6fe}$swap/$swapmax ${color #f60609}Processes: ${color #17c6fe}$processes ${color #f60609}Running: ${color #17c6fe}$running_processes ${color #f60609}Battery: ${color #17c6fe}${battery} $color${font sans Bold:size=11}NETWORK${hr 2} $font${color #f60609}SSID: ${color #17c6fe}${wireless_essid wlan0} ${color #f60609}(${color #17c6fe}${addr wlan0}${color #f60609}) ${color #f60609}Download: ${color #17c6fe}${downspeedf net} $font${color #f60609}Upload: ${color #17c6fe}${upspeedf net} $color${font sans Bold:size=11}PERSONAL${hr 2} $font${color #f60609}Gmail: ${color #17c6fe}${execi 60 python ~/.scripts/gmail.py} message(s) $font${color #f60609}Rhythmbox: ${color #17c6fe}${execp conkyRhythmbox --template=~/.scripts/rhythmbox.template} $font${color #f60609}Currently: ${color #17c6fe}${execi 60 conkyForecast --location=USIL0514 --datatype=CC} ${execi 60 conkyForecast --location=USIL0514 --datatype=HT --imperial} $color${font sans Bold:size=11}TWITTER${hr 2} $font${color #17c6fe}${rss http://xxxx:xxxx@twitter.com/statuses/friends_timeline/35138760.rss 20 item_titles 5}
Now, considering my monitor is set to 1280x800, it shouldn't be outputting all the way across the screen so I can't read anything. How do I remedy this?
Secondly...there's the issue of the terminal window in the way. Now, when I was using conky before, I never had that problem, and it's showing the Gmail script, and I'm using the exact same script. Why is it there now, and how do I make it so this terminal window doesn't show up every time I run Conky?
Linux Registered User #457962
Seeing that conky doesn't have abs nor any way of manually doing it (or that I could be bothered to find), just use a lua script that does just that and something of the sort (warning: this is pseudo-code):
include math
function string value(double x)
{
string value = '';
(if x<0)value+= '-'(else)value+= ' '(endif) #(space, so that you always have the right number of characters.
(if x<10 or x>-10)value+= '0'(endif)
(if x<100 x>-100)value+= '0'(endif)
value += tostring(math.abs(x))
value = todouble(value)
return value + '%'
}
Edit: That felt so good... I haven't done any coding, not even pseudo, in a long long time.
Last edited by proxess; January 13th, 2010 at 02:52 PM.
Laptop: i7 4930MX @3.9GHz undervolted; 32GB 4x8GB Kingston HyperX Impact 1600MHz; Nvidia 780M 4GB; Samsung 840 EVO mSATA 250GB; Ubuntu 16.04 and Windows 10 Pro.
Ubuntu #8076 / Linux #429448
Bookmarks