Conky Showoff thread
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Re: Conky Showoff thread
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
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
Re: Conky Showoff thread
I little something the guys over on the Crunchbang forums helped me with:
http://i27.photobucket.com/albums/c163/ ... b3ncpc.png
http://i27.photobucket.com/albums/c163/ ... b3ncpc.png
Re: Conky Showoff thread
My Conky and Dock
Side arcs are cpu cores, and inner rings are disks.
(Sorry, it's a tiny Intel Atom machine...)
Side arcs are cpu cores, and inner rings are disks.
(Sorry, it's a tiny Intel Atom machine...)
Re: Conky Showoff thread
Nice! Anyone I know? Don't answer that!temetka wrote:I little something the guys over on the Crunchbang forums helped me with:
http://i27.photobucket.com/albums/c163/ ... b3ncpc.png
Re: Conky Showoff thread
Something I put together from other scripts I had or found. I just made them all sing together.
Conky
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:
XFCE, compton, tint2, conky, ipager
Conky
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:
XFCE, compton, tint2, conky, ipager
Re: Conky Showoff thread
Hey b43, that's a really cool-looking conky. Would you be willing to share your config files/scripts to achieve that look?b43 wrote:Something I put together from other scripts I had or found. I just made them all sing together.
Conky
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:
XFCE, compton, tint2, conky, ipager
Re: Conky Showoff thread
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
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
Re: Conky Showoff thread
a very basic one, but since it's just posting for others to have a look...
[img=http://s2.postimg.org/9zyjfwrfp/conky.jpg]
[img=http://s2.postimg.org/9zyjfwrfp/conky.jpg]
Re: Conky Showoff thread
heres mine simple and neat and color coordinated
Borrowed a few bits from here and there and modified
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}
Re: Conky Showoff thread
That's all I ever did. Use Other people's code suited to my taste.achillies wrote:Borrowed a few bits from here and there and modified
Good Job and well done.
Welcome to the LinuxMint Forums!
- jungle_boy
- Level 7
- Posts: 1812
- Joined: Thu Aug 19, 2010 2:51 pm
- Location: Amazon Rainforest
Re: Conky Showoff thread
Here my conky, based in conky-mannager, I made some adjustments to meet my Quad-core processor.
Here the lua file;
And in attach, neuropolitical font
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}
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
Samsung Odyssey, Octa-core, i5 9300H, Geforce GTX 1650, 16GB RAM, SSD SAMSUNG NVMe 500GB
LM 21 Cinnamon
LM 21 Cinnamon
Re: Conky Showoff thread
This is a really great theme, but I was wondering if you could provide the icons you've used: the clock at the top and all the icons along the side for the Kernel, Uptime, Temperature, etc.achillies wrote:heres mine simple and neat and color coordinated
Borrowed a few bits from here and there and modified
Again, it's so gorgeous! It's just it looks kinda off without the icons
Re: Conky Showoff thread
Conky;
Code: Select all
conky.config = {
alignment = 'top_right',
background = false,
border_inner_margin = 3,
border_width = 4,
cpu_avg_samples = 2,
top_cpu_separate = false,
default_color = '#F7F5F5',
draw_borders = true,
draw_graph_borders = true,
draw_outline = false,
draw_shades = false,
use_xft = true,
font = 'DejaVu Sans Mono:bold:size=12',
gap_x = 20,
gap_y = 20,
minimum_height = 5,
minimum_width = 342,
net_avg_samples = 2,
no_buffers = true,
double_buffer = true,
out_to_console = false,
out_to_stderr = false,
extra_newline = false,
own_window = true,
own_window_transparent = true,
own_window_argb_visual = true,
own_window_class = 'Conky',
own_window_hints = 'undecorated',
override_utf8_locale = true,
stippled_borders = 0,
update_interval = 10.0,
uppercase = false,
use_spacer = 'none',
show_graph_scale = false,
show_graph_range = false,
hddtemp_host,
hddtemp_port,
hddtemp_refresh,
temperature_unit = celsius,
lua_load = '~/scripts/clock.lua',
lua_draw_hook_pre = 'draw_clock'
}
conky.text = [[
${color}${font LCDMono:bold:size=12}
$alignc $distribution Sid
$alignc $sysname $kernel
$alignc${color}$font${time %a,%e %b,%Y}
$alignc$color$font${time %I:%M:%S %p}
${execi 1800 tail -n 2 /tmp/conky-daylight-inf.result}
${hr 3}
$alignc ${color}${font}Uptime:$color$uptime
${hr 3}
${color} RAM: $mem $memwithbuffers $memperc%
${memwithbuffersbar 3,200}
${color} Swap:$swap $alignc $swapperc%
${hr 3}
Core1:$color${cpu cpu1}% ${alignc}CPU$alignr${if_existing /sys/class/hwmon/hwmon1/temp2_input} Temp:${hwmon 1 temp 2}°C ${else} Temp:${hwmon 2 temp 2}°C ${endif}
Core2:$color${cpu cpu2}% $alignc ${cpu cpu0}%$alignr${if_existing /sys/class/hwmon/hwmon1/temp3_input} Temp:${hwmon 1 temp 3}°C ${else} Temp:${hwmon 2 temp 3}°C ${endif}
Core3:$color${cpu cpu3}% $alignc Freq$alignr${if_existing /sys/class/hwmon/hwmon1/temp4_input} Temp:${hwmon 1 temp 4}°C ${else} Temp:${hwmon 2 temp 4}°C ${endif}
Core4:$color${cpu cpu4}% $alignc ${freq}MHz $alignr${if_existing /sys/class/hwmon/hwmon1/temp5_input} Temp:${hwmon 1 temp 5}°C ${else} Temp:${hwmon 2 temp 5}°C ${endif}
${hr 3}
$alignc HDD Temp:$color${hddtemp /dev/sda}°C
Root: ${fs_used /} $alignc Used:${fs_used_perc /}%
${fs_bar 3, 200 /}
Home: ${fs_used /home} $alignc Used:${fs_used_perc /home}%
${hr 3}
$alignc${addr} eth0
Down Speed:${downspeed eth0}
Up Speed: ${upspeed eth0}
${hr 3}
Top Process CPU Memory
${top name 1} ${top cpu 1}% ${top mem 1}%
${top name 2} ${top cpu 2}% ${top mem 2}%
${top name 3} ${top cpu 3}% ${top mem 3}%
${top name 4} ${top cpu 4}% ${top mem 4}%
${top name 5} ${top cpu 5}% ${top mem 5}%
${hr 3}
${alignc}Battery
${battery BAT0} ${battery_percent BAT0}
]]
Code: Select all
--[[
Air Clock by Alison Pitt (2009)
This clock is designed to look like KDE 4.3's "Air" clock, but from inside Conky.
You can adjust the clock's radius and placement, as well as the size and offset of the drop shadow. You can also choose whether to display the seconds hand. This clock updates every time Conky does, so if you want to show seconds, it is recommended that you set update_interval to no more than 0.5s. If you turn off seconds, you can set the update_interval to as long as 30s. The settings are in the "Settings" section, starting at Line 21.
Call this script in Conky using the following before TEXT (assuming you save this script to ~/scripts/clock.lua):
lua_load ~/scripts/clock.lua
lua_draw_hook_pre draw_clock
]]
require 'cairo'
function conky_draw_clock()
if conky_window==nil then return end
local w=conky_window.width
local h=conky_window.height
local cs=cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, w, h)
cr=cairo_create(cs)
-- Settings
-- What radius should the clock face (not including border) be, in pixels?
local clock_r=36
-- x and y coordinates, relative to the top left corner of Conky, in pixels
local xc=315
local yc=126
-- Extent of the shadow, in pixels
shadow_width=5
-- x and y offsets of the drop shadow, relative to the centre of the clock face, in pixels. Can be positive (downward) or negative (upward)
shadow_xoffset=0
shadow_yoffset=2
-- Do you want to show the second hand? Use this if you use a Conky update_interval > 1s. Can be true or false.
show_seconds=true
-- Grab time
local hours=os.date("%I")
local mins=os.date("%M")
local secs=os.date("%S")
secs_arc=(2*math.pi/60)*secs
mins_arc=(2*math.pi/60)*mins
hours_arc=(2*math.pi/12)*hours+mins_arc/12
-- Drop shadow
local ds_pat=cairo_pattern_create_radial(xc+shadow_xoffset,yc+shadow_yoffset,clock_r*1.25,xc+shadow_xoffset,yc+shadow_yoffset,clock_r*1.25+shadow_width)
cairo_pattern_add_color_stop_rgba(ds_pat,0,0,0,0,0.2)
cairo_pattern_add_color_stop_rgba(ds_pat,1,0,0,0,0)
cairo_move_to(cr,0,0)
cairo_line_to(cr,w,0)
cairo_line_to(cr,w,h)
cairo_line_to(cr,0,h)
cairo_new_sub_path(cr)
cairo_arc(cr,xc,yc,clock_r*1.25,0,2*math.pi)
cairo_set_source(cr,ds_pat)
cairo_set_fill_rule(cr,CAIRO_FILL_RULE_EVEN_ODD)
cairo_fill(cr)
-- Glassy border
cairo_arc(cr,xc,yc,clock_r*1.25,0,2*math.pi)
cairo_set_source_rgba(cr,0.5,0.5,0.5,0.2)
cairo_set_line_width(cr,1)
cairo_stroke(cr)
local border_pat=cairo_pattern_create_linear(xc,yc-clock_r*1.25,xc,yc+clock_r*1.25)
cairo_pattern_add_color_stop_rgba(border_pat,0,1,1,1,0.7)
cairo_pattern_add_color_stop_rgba(border_pat,0.3,1,1,1,0)
cairo_pattern_add_color_stop_rgba(border_pat,0.5,1,1,1,0)
cairo_pattern_add_color_stop_rgba(border_pat,0.7,1,1,1,0)
cairo_pattern_add_color_stop_rgba(border_pat,1,1,1,1,0.7)
cairo_set_source(cr,border_pat)
cairo_arc(cr,xc,yc,clock_r*1.125,0,2*math.pi)
cairo_close_path(cr)
cairo_set_line_width(cr,clock_r*0.25)
cairo_stroke(cr)
-- Set clock face
cairo_arc(cr,xc,yc,clock_r,0,2*math.pi)
cairo_close_path(cr)
local face_pat=cairo_pattern_create_radial(xc,yc-clock_r*0.75,0,xc,yc,clock_r)
cairo_pattern_add_color_stop_rgba(face_pat,0,1,1,1,0.9)
cairo_pattern_add_color_stop_rgba(face_pat,0.5,1,1,1,0.9)
cairo_pattern_add_color_stop_rgba(face_pat,1,0.9,0.9,0.9,0.9)
cairo_set_source(cr,face_pat)
cairo_fill_preserve(cr)
cairo_set_source_rgba(cr,0.5,0.5,0.5,0.2)
cairo_set_line_width(cr, 1)
cairo_stroke (cr)
-- Draw hour hand
xh=xc+0.7*clock_r*math.sin(hours_arc)
yh=yc-0.7*clock_r*math.cos(hours_arc)
cairo_move_to(cr,xc,yc)
cairo_line_to(cr,xh,yh)
cairo_set_line_cap(cr,CAIRO_LINE_CAP_ROUND)
cairo_set_line_width(cr,5)
cairo_set_source_rgba(cr,0,0,0,0.5)
cairo_stroke(cr)
-- Draw minute hand
xm=xc+0.9*clock_r*math.sin(mins_arc)
ym=yc-0.9*clock_r*math.cos(mins_arc)
cairo_move_to(cr,xc,yc)
cairo_line_to(cr,xm,ym)
cairo_set_line_width(cr,3)
cairo_stroke(cr)
-- Draw seconds hand
if show_seconds then
xs=xc+0.9*clock_r*math.sin(secs_arc)
ys=yc-0.9*clock_r*math.cos(secs_arc)
cairo_move_to(cr,xc,yc)
cairo_line_to(cr,xs,ys)
cairo_set_line_width(cr,1)
cairo_stroke(cr)
cairo_destroy(cr)
cairo_surface_destroy(c)
end
end
Linux User #481272 Reg: 15th Sept., 2008
Re: Conky Showoff thread
Look in the code: clock_rings.lua or the post directly above this.EthernetHub wrote:Again, it's so gorgeous! It's just it looks kinda off without the icons
Aand the 'icons':
Code: Select all
${font PizzaDude Bullets:size=12}
-
- Level 1
- Posts: 6
- Joined: Mon Jan 11, 2016 2:10 pm
Re: Conky Showoff thread
send me screen, corrections, comments or every interesting parts of code: GrzegorzDabrowka[at]gmail.com
code on the website http://htmelek.republika.pl/
Re: Conky Showoff thread
In the screenshot it looks like you are not getting correct character rendering:grzegorzdabrowka wrote:
send me screen, corrections, comments or every interesting parts of code: GrzegorzDabrowka[at]gmail.com
code on the website http://htmelek.republika.pl/
Do you have these set above TEXT:
Code: Select all
use_xft yes
xftfont Liberation Mono:bold:size=11
## Alpha of Xft font. Must be a value at or between 1 and 0
xftalpha 1.0
## Force UTF8? requires XFT
override_utf8_locale yes