Conky Showoff thread

Forum rules
Before you post please read how to get help
erikdubois
Level 1
Level 1
Posts: 30
Joined: Mon Dec 23, 2013 7:12 pm

Re: Conky Showoff thread

Post by erikdubois » Thu Mar 05, 2015 11:50 am

octupi.jpg
Aurora conky theme has a new addition
find it on erikdubois.be

User avatar
Sector11
Level 3
Level 3
Posts: 175
Joined: Mon Nov 22, 2010 10:33 am

Re: Conky Showoff thread

Post by Sector11 » Thu Mar 05, 2015 12:13 pm

erikdubois wrote:find it on erikdubois.be
Nice ... did you make that wallpaper or did it come with Mint? I'm talking the "icons" with the lines to various bits of conky information. I see on your blog (can't read it) but you have the same wall with an Ubuntu icon in the centre.
Using: BunsenLabs based on Debian Stable.
Conky PitStop

erikdubois
Level 1
Level 1
Posts: 30
Joined: Mon Dec 23, 2013 7:12 pm

Re: Conky Showoff thread

Post by erikdubois » Thu Mar 05, 2015 3:04 pm

wallpaper came from ...

i think this is the original creator

http://www.deviantart.com/morelikethis/84634120

i am not understanding your question (if it is one) about the icons

User avatar
Sector11
Level 3
Level 3
Posts: 175
Joined: Mon Nov 22, 2010 10:33 am

Re: Conky Showoff thread

Post by Sector11 » Thu Mar 05, 2015 6:19 pm

erikdubois wrote:wallpaper came from ...

i think this is the original creator

http://www.deviantart.com/morelikethis/84634120

i am not understanding your question (if it is one) about the icons
It was question but I thought the "icon" images and lines were a part of the wallpaper ... I see now it is not ... it looks like a partially transparent image used in the conky..
Where you have LM in the centre I see on your blog there is one with Ubuntu.

See the stuff in green ... that has to be an image you made for the conky then. Very Nice Idea.
Image
Using: BunsenLabs based on Debian Stable.
Conky PitStop

Habitual
Level 13
Level 13
Posts: 4870
Joined: Sun Nov 21, 2010 8:31 pm
Location: 0.0.0.0

Re: Conky Showoff thread

Post by Habitual » Thu Mar 05, 2015 7:00 pm

erikdubois wrote:
octupi.jpg
Aurora conky theme has a new addition
find it on erikdubois.be
Simplicity is the ultimate sophistication.
Good job. Well done.

erikdubois
Level 1
Level 1
Posts: 30
Joined: Mon Dec 23, 2013 7:12 pm

Re: Conky Showoff thread

Post by erikdubois » Fri Mar 06, 2015 2:56 am

credit goes to the programmer (source in document)
i am just a user that writes some extra codelines

Yes i think i have now 6 center images you can change to your liking

the smaller icons are pictures but check out the files
it is almost all written in LUA which is GREAT

filz0r
Level 1
Level 1
Posts: 5
Joined: Thu Apr 09, 2015 2:09 pm

Re: Conky Showoff thread:

Post by filz0r » Sun Apr 12, 2015 6:58 pm

I've spent the last week working on this layout based on the aurora conky theme :D
Image

User avatar
temetka
Level 1
Level 1
Posts: 29
Joined: Tue Sep 24, 2013 11:42 pm

Re: Conky Showoff thread

Post by temetka » Sun May 10, 2015 4:00 am

I little something the guys over on the Crunchbang forums helped me with:

http://i27.photobucket.com/albums/c163/ ... b3ncpc.png

w1g3y
Level 1
Level 1
Posts: 1
Joined: Mon May 11, 2015 8:48 am

Re: Conky Showoff thread

Post by w1g3y » Mon May 11, 2015 8:58 am

My Conky and Dock
Side arcs are cpu cores, and inner rings are disks.
(Sorry, it's a tiny Intel Atom machine...)
W1g3y Desktop (Atom)
W1g3y Desktop (Atom)

User avatar
Sector11
Level 3
Level 3
Posts: 175
Joined: Mon Nov 22, 2010 10:33 am

Re: Conky Showoff thread

Post by Sector11 » Mon May 11, 2015 2:23 pm

temetka wrote:I little something the guys over on the Crunchbang forums helped me with:

http://i27.photobucket.com/albums/c163/ ... b3ncpc.png
:mrgreen: Nice! Anyone I know? Don't answer that! :mrgreen:
Using: BunsenLabs based on Debian Stable.
Conky PitStop

User avatar
Sector11
Level 3
Level 3
Posts: 175
Joined: Mon Nov 22, 2010 10:33 am

Re: Conky Showoff thread

Post by Sector11 » Mon May 11, 2015 2:32 pm

w1g3y wrote:My Conky and Dock
Side arcs are cpu cores, and inner rings are disks.
(Sorry, it's a tiny Intel Atom machine...)
w1g3y_desktop_atom.jpg
How are you doing the countdown? I use "conkyDaysDiff" and "conkyDateDiff" but hours I haven't seen.
Image
Using: BunsenLabs based on Debian Stable.
Conky PitStop

b43
Level 1
Level 1
Posts: 11
Joined: Sun Jul 06, 2014 8:59 am

Re: Conky Showoff thread

Post by b43 » Mon Jun 22, 2015 9:23 am

Something I put together from other scripts I had or found. I just made them all sing together.

Conky
Image
Date
Time ( I guess the analogue clock is easy to recognize )
Outer ring tmp occupied %
The 4 inner rings : CPU [0 - 3 ]
The 4 dots represent the active and available Desktops
The meters are Down/Up Speed of the link interface

Desktop:
Image

XFCE, compton, tint2, conky, ipager

User avatar
Ginsu543
Level 4
Level 4
Posts: 450
Joined: Thu Nov 24, 2011 3:15 am
Location: Los Angeles, CA, USA

Re: Conky Showoff thread

Post by Ginsu543 » Wed Jun 24, 2015 2:05 pm

b43 wrote:Something I put together from other scripts I had or found. I just made them all sing together.

Conky
Image
Date
Time ( I guess the analogue clock is easy to recognize )
Outer ring tmp occupied %
The 4 inner rings : CPU [0 - 3 ]
The 4 dots represent the active and available Desktops
The meters are Down/Up Speed of the link interface

Desktop:
Image

XFCE, compton, tint2, conky, ipager
Hey b43, that's a really cool-looking conky. Would you be willing to share your config files/scripts to achieve that look?
Main: Intel Core i7 920 D0 @ 4.0 GHz | Asus P6X58D Premium | 12 GB Mushkin Redline PC3-12800 7-8-7-24 | EVGA GeForce GTX 560 Ti | Mint 17.2 Cinnamon 64 / OS X 10.7.3
Portables: Toshiba Portege R200 | Mint 17.2 Cinnamon 32 / Dell Mini 9 | OS X 10.6.7

User avatar
NM5TF
Level 2
Level 2
Posts: 51
Joined: Sat Feb 16, 2013 10:10 pm
Location: Magdalena, New Mexico
Contact:

Re: Conky Showoff thread

Post by NM5TF » Wed Jul 15, 2015 9:36 am

the desktop weather app conkywx 4.0.2 is released

WX SAT images, current conditions/forecasts for your local area....now added is tide information
and earthquake information....

screenie here:

http://en.zimagez.com/zimage/screenshot-1053.php

download conkywx here:

https://bitbucket.org/plikhari/conkywx_pub/downloads
Linux Mint 18.3 Sylvia, Arch Linux, openSUSE Tumbleweed Linux
Registered Linux User # 529389
my improved web page http://users.gilanet.com/~tfrost

elbullazul
Level 2
Level 2
Posts: 50
Joined: Wed Aug 12, 2015 1:41 pm

Re: Conky Showoff thread

Post by elbullazul » Fri Aug 21, 2015 10:51 am

a very basic one, but since it's just posting for others to have a look...

[img=http://s2.postimg.org/9zyjfwrfp/conky.jpg]

fuzaru
Level 1
Level 1
Posts: 3
Joined: Mon Jan 19, 2015 12:16 am

Re: Conky Showoff thread

Post by fuzaru » Mon Aug 24, 2015 8:04 am

mine :D
Image
tutorial here

User avatar
HerrDierk
Level 2
Level 2
Posts: 95
Joined: Wed Jun 04, 2014 11:20 am

Re: Conky Showoff thread

Post by HerrDierk » Sat Aug 29, 2015 3:43 pm

There you go, another simple Conky. Still my favorite.

Image
Image

achillies
Level 1
Level 1
Posts: 8
Joined: Wed Aug 26, 2015 11:40 pm

Re: Conky Showoff thread

Post by achillies » Sun Aug 30, 2015 9:42 am

heres mine simple and neat and color coordinated ;)
Borrowed a few bits from here and there and modified

Code: Select all

# Elegant Conky settings #
background no
update_interval 1

cpu_avg_samples 2
net_avg_samples 2

override_utf8_locale yes

double_buffer yes
no_buffers yes

temperature_unit celsius

# Window specifications #
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below
border_inner_margin 0
border_outer_margin 0
minimum_size 200 250
maximum_width 200

gap_x 30
gap_y 40
alignment top_right

# Graphics settings #
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders yes

# Text settings #
use_xft yes
xftfont sans serif:size=9
xftalpha 0.8
text_buffer_size 2048
default_color 555555

# Lua Load  #
lua_load .conky/clock_rings.lua
lua_draw_hook_pre clock_rings

## 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@home 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

TEXT
${voffset 8}${color 52f700}${font Sans Serif:size=16}${time %A}${font}${voffset -8}${alignr 50}${color FFFFFF}${font Sans Serif:size=38}${time %e}${font}
${color FFFFFF}${voffset -30}${color FFFFFF}${font Sans Serif:size=18}${time %b}${font}${voffset -3} ${color FFFFFF}${font Sans Serif:size=20}${time %Y}${font}${color 52c700}${hr}
${voffset 140}${font Sans Serif:size=10}${alignr}${time %H:%M}${font}${color}

${offset 10}${color 52c700}${font Daniel:size=11:style=bold}${pre_exec cat /etc/issue.net}${font}${color}

System ${color 52c700}${hr}${color}
${voffset 2}${color 52c700}${font StyleBats:size=14}k${font}${color}${voffset -2} Kernel: ${alignr}${kernel}
${voffset 2}${color 52c700}${font StyleBats:size=14}o${font}${color}${voffset -2} Uptime: ${alignr}${uptime_short}
${voffset 2}${color 52c700}${font StyleBats:size=14}V${font}${color}${voffset -2} Temperature: ${alignr}${execi 2 sensors | grep -A 0 'Core 0' | cut -c16-17}°C
${voffset 2}${color 52c700}${font StyleBats:size=14}V${font}${color}${voffset -2} HD Temperature: ${alignr}${execi 2 hddtemp /dev/sda | cut -c35-36}°C
${voffset 2}${color 52c700}${font StyleBats:size=14}A${font}${color}${voffset -2} CPU: ${color 52c700}${voffset 1}${offset 2}${cpubar cpu1 8, 105}${color}${alignr}${cpu}%
${voffset 2}${color 52c700}${font StyleBats:size=14}A${font}${color}${voffset -2} RAM: ${color 52c700}${voffset 1}${membar 8, 105}${color}${alignr}${memperc}%
${voffset 2}${color 52c700}${font StyleBats:size=14}u${font}${color}${voffset -2} Battery: ${execi 5 acpi | grep -A 0 'Battery 0:' | cut -c12-50}

Top Processes ${color 52c700}${hr}${color}
${top_mem name 1}${alignr}${top_mem mem 1}%
${top_mem name 2}${alignr}${top_mem mem 2}%
${top_mem name 3}${alignr}${top_mem mem 3}%

Storage ${color 52c700}${hr}${color}
Swap: ${alignr}${swap} / ${swapfree}
Home: ${alignr}${fs_used /home} / ${fs_size /home}
Toshiba EXT: ${alignr}${fs_used /media/jason/TOSHIBA EXT} / ${fs_size /media/jason/TOSHIBA EXT}
TDK USB: ${alignr}${fs_used /media/jason/TDK USB} / ${fs_size /media/jason/TDK USB}

Network Statistics ${color 52c700}${hr}${color}
#
# usb0
#
${if_existing /proc/net/route usb0}${color 52c700}${voffset 4}${font PizzaDude Bullets:size=12}O${font}${color} Upload: ${alignr}${upspeed usb0}/${totalup usb0}
${color 52c700}${voffset 4}${font PizzaDude Bullets:size=12}U${font}${color} Download: ${alignr}${downspeed usb0}/${totaldown usb0}
${color 52c700}${voffset 4}${font PizzaDude Bullets:size=12}Y${font}${color} Signal: ${wireless_link_qual usb0}% ${alignr}${color 52c700}${wireless_link_bar 8,60 usb0}${color}
${color 52c700}${voffset 4}${font PizzaDude Bullets:size=12}b${font}${color} IP Address: ${alignr}${addr usb0}
#
# wlan0
#
${else}${if_existing /proc/net/route wlan0}${color 52c700}${voffset 4}${font PizzaDude Bullets:size=12}O${font}${color} Upload: ${alignr}${upspeed wlan0}/${totalup wlan0}
${color 52c700}${voffset 4}${font PizzaDude Bullets:size=12}U${font}${color} Download: ${alignr}${downspeed wlan0}/${totaldown wlan0}
${color 52c700}${voffset 4}${font PizzaDude Bullets:size=12}Y${font}${color} Signal: ${wireless_link_qual wlan0}% ${alignr}${color 52c700}${wireless_link_bar 8,60 wlan0}${color}
${color 52c700}${voffset 4}${font PizzaDude Bullets:size=12}b${font}${color} IP Address: ${alignr}${addr wlan0}
#
# eth0
#
${else}${if_existing /proc/net/route eth0}${color 52c700}${voffset 4}${font PizzaDude Bullets:size=12}O${font}${color} Upload: ${alignr}${upspeed eth0}/${totalup eth0}
${color 52c700}${voffset 4}${font PizzaDude Bullets:size=12}U${font}${color} Download: ${alignr}${downspeed eth0}/${totaldown eth0}
${color 52c700}${voffset 4}${font PizzaDude Bullets:size=12}Y${font}${color} Signal: ${wireless_link_qual eth0}% ${alignr}${color 52c700}${wireless_link_bar 8,60 eth0}${color}
${color 52c700}${voffset 4}${font PizzaDude Bullets:size=12}b${font}${color} IP Address: ${alignr}${addr eth0}
${else}
Network Unavailable${endif}${endif}${endif}
Attachments
Screenshot.png

Habitual
Level 13
Level 13
Posts: 4870
Joined: Sun Nov 21, 2010 8:31 pm
Location: 0.0.0.0

Re: Conky Showoff thread

Post by Habitual » Tue Sep 01, 2015 3:12 pm

achillies wrote:Borrowed a few bits from here and there and modified
That's all I ever did. Use Other people's code suited to my taste.

Good Job and well done.
Welcome to the LinuxMint Forums!

User avatar
jungle_boy
Level 7
Level 7
Posts: 1715
Joined: Thu Aug 19, 2010 2:51 pm
Location: Amazon Rain Forest Land

Re: Conky Showoff thread

Post by jungle_boy » Wed Oct 07, 2015 7:10 pm

Here my conky, based in conky-mannager, I made some adjustments to meet my Quad-core processor.

Image

Code: Select all

# Conky settings #
background no
update_interval 1

cpu_avg_samples 2
net_avg_samples 2

override_utf8_locale yes

double_buffer yes
no_buffers yes

text_buffer_size 2048
#imlib_cache_size 0

temperature_unit fahrenheit

# Window specifications #

own_window yes
own_window_type normal
own_window_transparent no
own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below

border_inner_margin 0
border_outer_margin 0

minimum_size 200 250
maximum_width 200

alignment top_right
gap_x 35
gap_y 35

# Graphics settings #
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no

# Text settings #
use_xft yes
override_utf8_locale yes
xftfont Neuropolitical:size=8
xftalpha 0.8
uppercase no

temperature_unit celsius

default_color FFFFFF

# Lua Load  #
lua_load ~/.lua/scripts/clock0_rings.lua
lua_draw_hook_pre clock_rings

own_window_argb_value 0
own_window_argb_visual yes
own_window_colour 000000
TEXT
${font Neuropolitical:size=42}${time %e}
${goto 100}${font Neuropolitical:size=18}${color 3bb9ff}${voffset -75}${time %b}
${font Neuropolitical:size=10}${color FFFFFF}${voffset 15}${time %A}${color 5f66cb}${hr}
${goto 100}${font Neuropolitical:size=15}${color FFFFFF}${voffset -35}${time %Y}
${font Neuropolitical:size=30}${voffset 40}${alignc}${time %H}:${time %M}
${goto 175}${voffset -30}${font Neuropolitical:size=10}${time %S}
${voffset 10}${font Neuropolitical:size=11}${color 3bb9ff}${alignr}YOUR_CITY${font}
${font Neuropolitical:size=13}${color FFFFFF}${alignr}temp: ${weather http://weather.noaa.gov/pub/data/observations/metar/stations/ ABCD(your_noaa_city_code) temperature temperature 30} °C${font}
${hr}
${image ~/.conky/logo.png -p 165,10 -s 35x35}
${color FFFFFF}${font Neuropolitical:size=8}Uptime: ${uptime_short}
${color FFFFFF}${font Neuropolitical:size=8}Processes: ${processes}
${color FFFFFF}${font Neuropolitical:size=8}CPU: ${hwmon temp 1} °C
${color 3bb9ff}${goto 125}${voffset 27}Cpu 1-2
${color FFFFFF}${goto 125}${cpu cpu0}%
${color FFFFFF}${goto 125}${cpu cpu1}%
${color 3bb9ff}${goto 125}${voffset 45}Cpu 3-4
${color FFFFFF}${goto 125}${cpu cpu2}%
${color FFFFFF}${goto 125}${cpu cpu3}%
${color 3bb9ff}${goto 125}${voffset 45}Ram
${color FFFFFF}${goto 125}${memperc}%
${color 3bb9ff}${goto 125}${voffset 55}Net
${color FFFFFF}${goto 125}${downspeed wlan0}
${color FFFFFF}${goto 125}${upspeed wlan0}

${color 3bb9ff}${font Neuropolitical:size=8}${alignr}${nodename}
${color 3bb9ff}${font Neuropolitical:size=8}${alignr}${pre_exec cat /etc/issue.net}  $machine
${color 3bb9ff}${font Neuropolitical:size=8}${alignr}Kernel: ${kernel}
${hr}
Here the lua file;

Code: Select all

--[[
Hy-lua by S3B.

Réinterprétation purement graphique du Mint-lua de despot77 pour Hybryde.
  
 
Changelog:
+ v1.0 -- Original release (30.09.2009)
+ v1.1p -- Jpope edit londonali1010 (05.10.2009)
+ v Mint-lua -- reEdit despot77 (18.02.2011)
+ Hy-lua  -- Reedit by S3B (11.01.2012)
]]

settings_table = {
    
    {
        name='cpu',
        arg='cpu0',
        max=100,
        bg_colour=0xffffff,
        bg_alpha=0.2,
        fg_colour=0x3bb9ff,
        fg_alpha=0.8,
        x=163, y=315,
        radius=30,
        thickness=12,
        start_angle=-90,
        end_angle=180
    },
{
        name='cpu',
        arg='cpu1',
        max=100,
        bg_colour=0xffffff,
        bg_alpha=0.2,
        fg_colour=0x3bb9ff,
        fg_alpha=0.8,
        x=163, y=315,
        radius=16,
        thickness=12,
        start_angle=-90,
        end_angle=180
    },
    {
        name='cpu',
        arg='cpu2',
        max=100,
        bg_colour=0xffffff,
        bg_alpha=0.2,
        fg_colour=0x3bb9ff,
        fg_alpha=0.8,
        x=163, y=400,
        radius=30,
        thickness=12,
        start_angle=-90,
        end_angle=180
    },
 {
        name='cpu',
        arg='cpu3',
        max=100,
        bg_colour=0xffffff,
        bg_alpha=0.2,
        fg_colour=0x3bb9ff,
        fg_alpha=0.8,
        x=163, y=400,
        radius=16,
        thickness=12,
        start_angle=-90,
        end_angle=180
    },
    {
        name='memperc',
        arg='',
        max=100,
        bg_colour=0xffffff,
        bg_alpha=0.2,
        fg_colour=0x3bb9ff,
        fg_alpha=0.8,
        x=163, y=485,
        radius=25,
        thickness=25,
        start_angle=-90,
        end_angle=180
    },
        {
        name='downspeedf',
        arg='wlan0',
        max=210,
        bg_colour=0xffffff,
        bg_alpha=0.2,
        fg_colour=0x3bb9ff,
        fg_alpha=0.8,
        x=165, y=565,
        radius=30,
        thickness=12,
        start_angle=-90,
        end_angle=180
    },
        {
        name='upspeedf',
        arg='wlan0',
        max=100,
        bg_colour=0xffffff,
        bg_alpha=0.2,
        fg_colour=0x3bb9ff,
        fg_alpha=0.8,
        x=165, y=565,
        radius=16,
        thickness=12,
        start_angle=-90,
        end_angle=180
    },
}

-- Use these settings to define the origin and extent of your clock.

clock_r=65

-- "clock_x" and "clock_y" are the coordinates of the centre of the clock, in pixels, from the top left of the Conky window.

clock_x=100
clock_y=150

show_seconds=true

require 'cairo'

function rgb_to_r_g_b(colour,alpha)
    return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
end

function draw_ring(cr,t,pt)
    local w,h=conky_window.width,conky_window.height
    
    local xc,yc,ring_r,ring_w,sa,ea=pt['x'],pt['y'],pt['radius'],pt['thickness'],pt['start_angle'],pt['end_angle']
    local bgc, bga, fgc, fga=pt['bg_colour'], pt['bg_alpha'], pt['fg_colour'], pt['fg_alpha']

    local angle_0=sa*(2*math.pi/360)-math.pi/2
    local angle_f=ea*(2*math.pi/360)-math.pi/2
    local t_arc=t*(angle_f-angle_0)

    -- Draw background ring

    cairo_arc(cr,xc,yc,ring_r,angle_0,angle_f)
    cairo_set_source_rgba(cr,rgb_to_r_g_b(bgc,bga))
    cairo_set_line_width(cr,ring_w)
    cairo_stroke(cr)
    
    -- Draw indicator ring

    cairo_arc(cr,xc,yc,ring_r,angle_0,angle_0+t_arc)
    cairo_set_source_rgba(cr,rgb_to_r_g_b(fgc,fga))
    cairo_stroke(cr)        
end

function draw_clock_hands(cr,xc,yc)
    local secs,mins,hours,secs_arc,mins_arc,hours_arc
    local xh,yh,xm,ym,xs,ys
    
    secs=os.date("%S")    
    mins=os.date("%M")
    hours=os.date("%I")
        
    secs_arc=(2*math.pi/60)*secs
    mins_arc=(2*math.pi/60)*mins+secs_arc/60
    hours_arc=(2*math.pi/12)*hours+mins_arc/12
         
end

function conky_clock_rings()
    local function setup_rings(cr,pt)
        local str=''
        local value=0
        
        str=string.format('${%s %s}',pt['name'],pt['arg'])
        str=conky_parse(str)
        
        value=tonumber(str)
        pct=value/pt['max']
        
        draw_ring(cr,pct,pt)
    end
    
    -- Check that Conky has been running for at least 5s

    if conky_window==nil then return end
    local cs=cairo_xlib_surface_create(conky_window.display,conky_window.drawable,conky_window.visual, conky_window.width,conky_window.height)
    
    local cr=cairo_create(cs)    
    
    local updates=conky_parse('${updates}')
    update_num=tonumber(updates)
    
    if update_num>5 then
        for i in pairs(settings_table) do
            setup_rings(cr,settings_table[i])
        end
    end
    
    draw_clock_hands(cr,clock_x,clock_y)
end
And in attach, neuropolitical font
Attachments
neuropolitical.ttf.tar.gz
neuropolitical font
(24.22 KiB) Downloaded 119 times

Post Reply

Return to “Compiz, Conky, Docks, & Widgets”