You are not logged in.

#476 2010-02-20 15:01:32

kaivalagi
Member
From: Norwich, UK
Registered: 2009-11-05
Posts: 145

Re: conky configs and screenshots!

jstadler wrote:

That's a pretty cool idea he has there, but i dont think i'd use it. Doesn't look like i'd be easy to customize from there.

I agree

Sen's setup is far cleaner and appealing to the eye, more professional looking


Running Arch 64 (Made the switch to Arch 10/2009)
AUR | BZR

Offline

#477 2010-02-25 18:11:48

Sector11
Banned
Registered: 2010-02-25
Posts: 10

Re: conky configs and screenshots!

Rydgel wrote:

Very impressive. Keep up the good work, it's awesome smile

Couldn't agree more, that is one super conky.

Offline

#478 2010-02-25 18:15:45

Sector11
Banned
Registered: 2010-02-25
Posts: 10

Re: conky configs and screenshots!

kaivalagi wrote:
jstadler wrote:

That's a pretty cool idea he has there, but i dont think i'd use it. Doesn't look like i'd be easy to customize from there.

I agree

Sen's setup is far cleaner and appealing to the eye, more professional looking

Takes up way too much desktop real estate and looks like a cheap "joystick".  Sen's conky on the other hand looks like something made with some care and though behind it.  Like a very expensive control panel!

Offline

#479 2010-03-04 07:13:10

tawan
Member
Registered: 2010-03-02
Posts: 290
Website

Re: conky configs and screenshots!

tM3EwZA

#  Settings
##############################################
# Use XftD
use_xft yes
xftfont Bauhaus Md BT:size=8
xftalpha 1.0
text_buffer_size 2048
if_up_strictness address

# Update interval in seconds
update_interval 1

# 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
own_window_transparent yes
own_window_type desktop
#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 780 90
#maximum_width 768

# Draw shades
draw_shades yes

# Draw outlines
draw_outline no

# Draw borders around text
draw_borders no

# Stippled borders
stippled_borders 0

# border margins
border_margin -1

# border width
border_width 0

# Default colors and also border colors
default_color FFFFDD
#good blue 1994d1
#medium blue 083146
#dark blue 041e2c
color1 202020
color2 1994d1
color3 a90100
color4 cccccc
#default_shade_color 888888
#default_outline_color 888888
own_window_colour 000000

# Text alignment, other possible values are commented
alignment tl

# Gap between borders of screen and text
# same thing as passing -x at command line
gap_x 44
gap_y 0

# 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 1

# number of net samples to average
# set to 1 to disable averaging
net_avg_samples 2


# Force UTF8D 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 none
#
TEXT
${if_up wlan0}${goto 169}${color1}${voffset -20}${font Rebecca:size=84}${execpi 900 python ~/.conky/my-gmail.py MYNAME MYPASSWORD 1}${font}    ${goto 437}${voffset -49}${font pizzadude bullets:size=48}${if_match ${upspeedf wlan0} >= 20}${color2}w${else}${if_match ${upspeedf wlan0} >= 2}${color2}v${else}${color1}v${endif}${endif}${color1}    ${goto 517}${if_match ${downspeedf wlan0} >= 40}${color2}s${else}${if_match ${downspeedf wlan0} >= 2}${color2}r${else}${color1}r${endif}${endif}${color1}    ${goto 357}${execpi 5000 ~/mybin/tawan-check-updates}${else}${voffset 11}${endif}    ${goto 20}${font StyleBats:size=52}${voffset 5}${if_match ${acpitemp} >= 70}${color3}${else}${if_match ${acpitemp} >= 60}${color2}${else}${color1}${endif}${endif}p${color1}    ${goto 100}${if_match ${battery_percent BAT0} <= 20}${color3}${else}${color2}${endif}${if_existing /sys/class/power_supply/ACAD/online 1}${color1}I${else}O${endif}    ${goto 258}${font StyleBats:size=16}${voffset -4}${if_match ${fs_used_perc /home/tawan/Data} >= 75}${color3}${else}${if_match ${diskio /dev/sda} >= 1}${color2}${else}${color1}${endif}G${endif}${color1}    ${goto 279}${voffset 2}${if_match ${memperc} >= 80}${color3}${else}${if_match ${memperc} >= 40}${color2}${else}${color1}${endif}${endif}y${color1}    ${goto 300}${voffset -2}${if_match ${cpu cpu1} >= 90}${color3}${else}${if_match ${cpu cpu1} >= 40}${color2}${else}${color1}${endif}${endif}l${color1}    ${goto 319}${if_match ${cpu cpu2} >= 90}${color3}${else}${if_match ${cpu cpu2} >= 40}${color2}${else}${color1}${endif}${endif}l${color1}    ${goto 592}${voffset -30}${color2}${font Radio space:size=32}${time %R}${font}   ${goto 595}${voffset 12}${color4}${font Jura:size=8}${time %A %e%b %Y}${font}${color}    ${if_match ${battery_percent BAT0} <= 80}${color2}${voffset -27}${goto 270}${battery_bar 6,56 BAT0}${endif}    ${if_existing /sys/class/power_supply/ACAD/online 0}${if_match ${battery_percent BAT0} <= 8}${execi 200 ~/mybin/tawan-lowpower-shutdown}${endif}${endif}

Offline

#480 2010-03-07 01:01:08

evil
Member
From: Indianapolis, IN
Registered: 2010-03-06
Posts: 41
Website

Re: conky configs and screenshots!

Here it is. smile
conky.th.png

double_buffer yes

background no

own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

use_xft yes

xftfont Bitstream Vera Sans Mono:size=8
xftalpha 0.8

update_interval 2

draw_shades no
draw_outline no
draw_borders no
stippled_borders 10
border_margin 4
border_width 1

default_color white
default_shade_color white
default_outline_color white

alignment top_right

gap_x 12
gap_y 37

use_spacer no

no_buffers yes

uppercase no

TEXT
${color black}$nodename
$sysname $kernel on $machine
Uptime: $uptime 
-----------------------------------
Network: WLAN0     AP:${wireless_essid wlan0}
-----------------------------------
WiFi Strength:${wireless_link_qual_perc wlan0}% 
${wireless_link_bar 8 wlan0}
Down Speed:${downspeed wlan0}
${downspeedgraph wlan0 8}
Up Speed:${upspeed wlan0}
${upspeedgraph wlan0 8}
-----------------------------------
Processes: $processes  Running: $running_processes
-----------------------------------
Name             PID    CPU%   MEM%
${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}
${top name 5} ${top pid 5} ${top cpu 5} ${top mem 5}
-----------------------------------
File Systems, Memory, CPU:
-----------------------------------
Root FS (/): ${fs_free /} of ${fs_size /}
Home FS (/home): ${fs_free /home} of ${fs_size /home}
Boot FS (/boot): ${fs_free /boot} of ${fs_size /boot}
Swap Usage: $swapfree of $swapmax
RAM Usage: $memfree of $memmax : $memperc%
CPU Usage: ${cpu 1}%  ${cpubar cpu1 8}
-----------------------------------
Battery Status:${battery_percent BAT0}%  ${battery_bar BAT0}

Site | Blog | Freenode Nick: i686

Offline

#481 2010-03-07 21:22:11

lman
Member
From: CZ
Registered: 2007-12-18
Posts: 255

Re: conky configs and screenshots!

clean.th.png
.conkyrc

# -- 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
 
# -- Window specifications -- #
 
own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below

border_inner_margin 1
border_outer_margin 0
 
minimum_size 50 262
maximum_width 50
 
alignment bottom_left
gap_x 0
gap_y 0
 
# -- Graphics settings -- #
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders yes
 
# -- Text settings -- #
use_xft yes
xftfont DejaVu Sans Mono:size=6.5
xftalpha 0.4
 
uppercase no
 
default_color bbbbbb
border_width 0
 
# -- Lua Load -- #
lua_load ~/.lua.lua
lua_draw_hook_pre ring_stats
 
TEXT
${voffset 75} ${goto 5}CPU
${voffset 40}${goto 5}MEM
${voffset 35}${goto 5}${downspeed eth0}
${goto 5}${upspeed eth0}
${voffset 10}${goto 10}${color cccccc}${font ConkyWeather:size=25}${execi 600 conkyForecast --location=EZXX0002 --datatype=WF}${font}${color}
${goto 15}${execi 600 conkyForecast --location=EZXX0002 --datatype=HT}

.lua.lua

--[[
Ring Meters by londonali1010 (2009)
 
This script draws percentage meters as rings. It is fully customisable; all options are described in the script.
 
IMPORTANT: if you are using the 'cpu' function, it will cause a segmentation fault if it tries to draw a ring straight away. The if statement on line 145 uses a delay to make sure that this doesn't happen. It calculates the length of the delay by the number of updates since Conky started. Generally, a value of 5s is long enough, so if you update Conky every 1s, use update_num > 5 in that if statement (the default). If you only update Conky every 2s, you should change it to update_num > 3; conversely if you update Conky every 0.5s, you should use update_num > 10. ALSO, if you change your Conky, is it best to use "killall conky; conky" to update it, otherwise the update_num will not be reset and you will get an error.
 
To call this script in Conky, use the following (assuming that you save this script to ~/scripts/rings.lua):
    lua_load ~/scripts/rings-v1.2.1.lua
    lua_draw_hook_pre ring_stats
 
Changelog:
+ v1.2.1 -- Fixed minor bug that caused script to crash if conky_parse() returns a nil value (20.10.2009)
+ v1.2 -- Added option for the ending angle of the rings (07.10.2009)
+ v1.1 -- Added options for the starting angle of the rings, and added the "max" variable, to allow for variables that output a numerical value rather than a percentage (29.09.2009)
+ v1.0 -- Original release (28.09.2009)
]]
conky_background_color = 0x000000
conky_background_alpha = 0.5

ring_background_color = 0xffffff
ring_background_alpha = 0.15
ring_foreground_color = 0xffffff
ring_foreground_alpha = 0.5
 
settings_table = {
    {
        -- Edit this table to customise your rings.
        -- You can create more rings simply by adding more elements to settings_table.
        -- "name" is the type of stat to display; you can choose from 'cpu', 'memperc', 'fs_used_perc', 'battery_used_perc'.
        name='time',
        -- "arg" is the argument to the stat type, e.g. if in Conky you would write ${cpu cpu0}, 'cpu0' would be the argument. If you would not use an argument in the Conky variable, use ''.
        arg='%I.%M',
        -- "max" is the maximum value of the ring. If the Conky variable outputs a percentage, use 100.
        max=12,
        -- "bg_colour" is the colour of the base ring.
        bg_colour=ring_background_color,
        -- "bg_alpha" is the alpha value of the base ring.
        bg_alpha=ring_background_alpha,
        -- "fg_colour" is the colour of the indicator part of the ring.
        fg_colour=ring_foreground_color,
        -- "fg_alpha" is the alpha value of the indicator part of the ring.
        fg_alpha=ring_foreground_alpha,
        -- "x" and "y" are the x and y coordinates of the centre of the ring, relative to the top left corner of the Conky window.
        x=26, y=25,
        -- "radius" is the radius of the ring.
        radius=10,
        -- "thickness" is the thickness of the ring, centred around the radius.
        thickness=6,
        -- "start_angle" is the starting angle of the ring, in degrees, clockwise from top. Value can be either positive or negative.
        start_angle=0,
        -- "end_angle" is the ending angle of the ring, in degrees, clockwise from top. Value can be either positive or negative, but must be larger (e.g. more clockwise) than start_angle.
        end_angle=360
    },
    {
        name='time',
        arg='%M.%S',
        max=60,
        bg_colour=ring_background_color,
        bg_alpha=ring_background_alpha,
        fg_colour=ring_foreground_color,
        fg_alpha=ring_foreground_alpha,
        x=26, y=25,
        radius=16,
        thickness=4,
        start_angle=0,
        end_angle=360
    },
    {
        name='time',
        arg='%S',
        max=60,
        bg_colour=ring_background_color,
        bg_alpha=ring_background_alpha,
        fg_colour=ring_foreground_color,
        fg_alpha=ring_foreground_alpha,
        x=26, y=25,
        radius=20,
        thickness=2,
        start_angle=0,
        end_angle=360
    },
    {
        name='cpu',
        arg='cpu1',
        max=100,
        bg_colour=ring_background_color,
        bg_alpha=ring_background_alpha,
        fg_colour=ring_foreground_color,
        fg_alpha=ring_foreground_alpha,
        x=26, y=75,
        radius=19,
        thickness=3,
        start_angle=-90,
        end_angle=210
    },
    {
        name='cpu',
        arg='cpu2',
        max=100,
        bg_colour=ring_background_color,
        bg_alpha=ring_background_alpha,
        fg_colour=ring_foreground_color,
        fg_alpha=ring_foreground_alpha,
        x=26, y=75,
        radius=15,
        thickness=3,
        start_angle=-90,
        end_angle=200
    },
    {
        name='cpu',
        arg='cpu3',
        max=100,
        bg_colour=ring_background_color,
        bg_alpha=ring_background_alpha,
        fg_colour=ring_foreground_color,
        fg_alpha=ring_foreground_alpha,
        x=26, y=75,
        radius=11,
        thickness=3,
        start_angle=-90,
        end_angle=190
    },
    {
        name='cpu',
        arg='cpu4',
        max=100,
        bg_colour=ring_background_color,
        bg_alpha=ring_background_alpha,
        fg_colour=ring_foreground_color,
        fg_alpha=ring_foreground_alpha,
        x=26, y=75,
        radius=7,
        thickness=3,
        start_angle=-90,
        end_angle=180
    },
    {
        name='memperc',
        arg='',
        max=100,
        bg_colour=ring_background_color,
        bg_alpha=ring_background_alpha,
        fg_colour=ring_foreground_color,
        fg_alpha=ring_foreground_alpha,
        x=26, y=125,
        radius=19,
        thickness=5,
        start_angle=-90,
        end_angle=200
    },
    {
        name='swapperc',
        arg='',
        max=100,
        bg_colour=ring_background_color,
        bg_alpha=ring_background_alpha,
        fg_colour=ring_foreground_color,
        fg_alpha=ring_foreground_alpha,
        x=26, y=125,
        radius=13,
        thickness=5,
        start_angle=-90,
        end_angle=180
    },
    {
        name='upspeedf',
        arg='eth0',
        max=11000,
        bg_colour=ring_background_color,
        bg_alpha=ring_background_alpha,
        fg_colour=ring_foreground_color,
        fg_alpha=ring_foreground_alpha,
        x=26, y=175,
        radius=13,
        thickness=5,
        start_angle=-90,
        end_angle=180
    },
    {
        name='downspeedf',
        arg='eth0',
        max=11000,
        bg_colour=ring_background_color,
        bg_alpha=ring_background_alpha,
        fg_colour=ring_foreground_color,
        fg_alpha=ring_foreground_alpha,
        x=26, y=175,
        radius=19,
        thickness=5,
        start_angle=-90,
        end_angle=200
    }
}
 
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 conky_round_rect(cr, x0, y0, w, h, r)
    if (w == 0) or (h == 0) then return end
    local x1 = x0 + w
    local y1 = y0 + h
    if w/2 < r then
        if h/2 < r then
            cairo_move_to  (cr, x0, (y0 + y1)/2)
            cairo_curve_to (cr, x0 ,y0, x0, y0, (x0 + x1)/2, y0)
            cairo_curve_to (cr, x1, y0, x1, y0, x1, (y0 + y1)/2)
            cairo_curve_to (cr, x1, y1, x1, y1, (x1 + x0)/2, y1)
            cairo_curve_to (cr, x0, y1, x0, y1, x0, (y0 + y1)/2)
        else
            cairo_move_to  (cr, x0, y0 + r)
            cairo_curve_to (cr, x0 ,y0, x0, y0, (x0 + x1)/2, y0)
            cairo_curve_to (cr, x1, y0, x1, y0, x1, y0 + r)
            cairo_line_to (cr, x1 , y1 - r)
            cairo_curve_to (cr, x1, y1, x1, y1, (x1 + x0)/2, y1)
            cairo_curve_to (cr, x0, y1, x0, y1, x0, y1- r)
        end
    else
        if h/2 < r then
            cairo_move_to  (cr, x0, (y0 + y1)/2)
            cairo_curve_to (cr, x0 , y0, x0 , y0, x0 + r, y0)
            cairo_line_to (cr, x1 - r, y0)
            cairo_curve_to (cr, x1, y0, x1, y0, x1, (y0 + y1)/2)
            cairo_curve_to (cr, x1, y1, x1, y1, x1 - r, y1)
            cairo_line_to (cr, x0 + r, y1)
            cairo_curve_to (cr, x0, y1, x0, y1, x0, (y0 + y1)/2)
        else
            cairo_move_to  (cr, x0, y0 + r)
            cairo_curve_to (cr, x0 , y0, x0 , y0, x0 + r, y0)
            cairo_line_to (cr, x1 - r, y0)
            cairo_curve_to (cr, x1, y0, x1, y0, x1, y0 + r)
            cairo_line_to (cr, x1 , y1 - r)
            cairo_curve_to (cr, x1, y1, x1, y1, x1 - r, y1)
            cairo_line_to (cr, x0 + r, y1)
            cairo_curve_to (cr, x0, y1, x0, y1, x0, y1- r)
        end
    end
    cairo_close_path (cr)
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
 
cs, cr = nil -- initialize our cairo surface and context to nil
function conky_ring_stats()
    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)
        if value == nil then value = 0 end
        pct=value/pt['max']
 
        draw_ring(cr,pct,pt)
    end
 
    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)

    if cs == nil or cairo_xlib_surface_get_width(cs) ~= conky_window.width or cairo_xlib_surface_get_height(cs) ~= conky_window.height then
        if cs then cairo_surface_destroy(cs) end
        cs = cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, conky_window.width, conky_window.height)
    end
    if cr then cairo_destroy(cr) end
    cr = cairo_create(cs)

 
    local updates=conky_parse('${updates}')
    update_num=tonumber(updates)
 
    if update_num>5 then
        conky_round_rect(cr, 3, 0, conky_window.width-6, conky_window.height-3, 15)
        cairo_set_source_rgba(cr, rgb_to_r_g_b(conky_background_color, conky_background_alpha))
        cairo_fill(cr)
        for i in pairs(settings_table) do
            setup_rings(cr,settings_table[i])
        end
    end
    cairo_destroy(cr)
    cr = nil
end

function conky_cairo_cleanup()
    cairo_surface_destroy(cs)
    cs = nil
end

I figured out what caused the memory leek I was talking about a few pages earlier. In the rings.lua the cairo context wasn't destroyed. After rewriting some parts according to the conky wiki no more memory leak smile

Offline

#482 2010-03-08 07:04:51

tawan
Member
Registered: 2010-03-02
Posts: 290
Website

Re: conky configs and screenshots!

@Iman ^ that is great. Are you combining tint2 and conky down the left?

EDIT: It must be tint2... I need that config if you can share please smile

Last edited by tawan (2010-03-08 07:20:23)

Offline

#483 2010-03-08 07:31:38

lman
Member
From: CZ
Registered: 2007-12-18
Posts: 255

Re: conky configs and screenshots!

sure thing. tint2rc:

#---------------------------------------------
# TINT2 CONFIG FILE
#---------------------------------------------

#---------------------------------------------
# BACKGROUND AND BORDER
#---------------------------------------------
rounded = 5
border_width = 0
background_color = #000000 50
border_color = #ffffff 40

rounded = 5
border_width = 0
background_color = #ffffff 60
border_color = #ffffff 50

rounded = 5
border_width = 0
background_color = #ffffff 25
border_color = #ffffff 70

rounded = 5
border_width = 0
background_color = #ffa5a5 40
border_color = #ffffff 70

#---------------------------------------------
# PANEL
#---------------------------------------------
panel_monitor = all
panel_position = top left vertical
panel_size = 75% 50
panel_margin = 0 0
panel_padding = 2 2 2
font_shadow = 1
panel_background_id = 0
wm_menu = 0
panel_dock = 1
panel_layer = top

#---------------------------------------------
# TASKBAR
#---------------------------------------------
#taskbar_mode = multi_desktop
taskbar_mode = single_desktop
taskbar_padding = 2 2 2
taskbar_background_id = 1
#taskbar_active_background_id = 0

#---------------------------------------------
# TASKS
#---------------------------------------------
task_icon = 1
task_text = 0
task_maximum_size = 140 35
task_centered = 1
task_padding = 6 3
task_font = sans 7
task_font_color = #ffffff 70
task_background_id = 3
task_icon_asb = 100 0 0
# replace STATUS by 'urgent', 'active' or 'iconfied'
#task_STATUS_background_id = 2
#task_STATUS_font_color = #ffffff 85
#task_STATUS_icon_asb = 100 0 0
# example:
task_active_background_id = 2
task_active_font_color = #ffffff 85
task_active_icon_asb = 100 0 0
task_urgent_background_id = 4
task_urgent_font_color = #ec9b9b 85
task_urgent_icon_asb = 100 0 0
urgent_nb_of_blink = 8

#---------------------------------------------
# SYSTRAYBAR
#---------------------------------------------
systray = 1
systray_padding = 4 4 5
systray_background_id = 1
systray_sort = left2right
systray_icon_size = 16
systray_icon_asb = 100 0 0

#---------------------------------------------
# CLOCK
#---------------------------------------------
time1_format = %H:%M
time1_font = sans bold 8
time2_format = %h.%e
time2_font = sans 6
clock_font_color = #ffffff 76
clock_padding = 4 2
clock_background_id = 1
#clock_lclick_command = xclock
clock_rclick_command = zenity --calendar
clock_tooltip = %A %d %B
#time1_timezone = :US/Hawaii
#time2_timezone = :Europe/Berlin
#clock_tooltip_timezone = :/usr/share/zoneinfo/Europe/Paris

#---------------------------------------------
# BATTERY
#---------------------------------------------
battery = 0
battery_hide = 98
battery_low_status = 10
battery_low_cmd = notify-send "battery low"
bat1_font = sans 8
bat2_font = sans 6
battery_font_color = #ffffff 76
battery_padding = 1 0
battery_background_id = 0

#---------------------------------------------
# TOOLTIP
#---------------------------------------------
tooltip = 1
tooltip_padding = 2 2
tooltip_show_timeout = 0.7
tooltip_hide_timeout = 0.3
tooltip_background_id = 1
tooltip_font_color = #ffffff 80
tooltip_font = sans 10

#---------------------------------------------
# MOUSE ACTION ON TASK
#---------------------------------------------
mouse_middle = none
mouse_right = close
mouse_scroll_up = toggle
mouse_scroll_down = iconify

#---------------------------------------------
# AUTOHIDE OPTIONS
#---------------------------------------------
autohide = 0
autohide_show_timeout = 0.3
autohide_hide_timeout = 2
autohide_height = 4
strut_policy = minimum

Offline

#484 2010-03-09 04:47:55

Amagineer
Member
Registered: 2010-02-15
Posts: 4

Re: conky configs and screenshots!

conkyp.th.png

alignment        tm
border_width        0
cpu_avg_samples        5
default_bar_size    100 5
default_color        8fea26
#default_graph_size    10 0
double_buffer        yes
draw_borders        no
draw_graph_borders    no
draw_outline        no
draw_shades        no
format_human_readable    yes
gap_x            0
gap_y            0
maximum_width        1680
minimum_size        1680 0
mpd_host        localhost
mpd_port        6600
net_avg_samples        5
no_buffers        yes #Remove filesystem buffers from used memory
own_window        yes
own_window_colour    181818
own_window_title    TopPanelConky
own_window_transparent    no
own_window_type        desktop
temperature_unit    celsius
text_buffer_size    512
update_interval        1
use_spacer        left
use_xft            yes
xftalpha        1
xftfont            snap
TEXT
${voffset 5}${scroll 30 5 ${mpd_smart}}${voffset -3}${goto 210}${color}${font webdings}${if_match "${mpd_status}" == "Playing"}4${endif}${if_match "${mpd_status}" == "Paused"};${endif}${if_match "${mpd_status}" == "Stopped"}<${endif}${font}${voffset -2}${mpd_bar 5,101}${offset -101}${color 181818}${execbar}${color} ${voffset -1}(${mpd_elapsed}/${mpd_length}) ${goto 410}| CPU1: ${voffset -4}${cpugraph cpu1 10,50}${goto 505}${voffset 4}(${cpu cpu1}%)${goto 545}CPU2: ${voffset -4}${cpugraph cpu2 10,50}${goto 635}${voffset 4}(${cpu cpu2}%)${goto 675}CPU3: ${voffset -4}${cpugraph cpu3 10,50}${goto 765}${voffset 4}(${cpu cpu3}%)${goto 805}CPU4: ${voffset -4}${cpugraph cpu4 10,50}${goto 895}${voffset 4}(${cpu cpu4}%)${goto 935}MEM: ${voffset -4}${memgraph 10,50}${goto 1025}${voffset 4}(${memperc}%)${goto 1065}| CPU:${goto 1097}${hwmon temp 1}C${goto 1125}MB:${goto 1143}${hwmon temp 2}C${goto 1175}Fan:${goto 1198}${hwmon fan 1}${goto 1230}| WiFi: ${wireless_link_bar 5,50 wlan0}${offset -50}${color 181818}${execbar}${color}${offset -45} Up: ${voffset -4}${upspeedgraph wlan0 10,50 90}${voffset 4} ${upspeed wlan0}/${totalup wlan0} ${goto 1510}Dn: ${voffset -4}${downspeedgraph wlan0 10,50 350}${voffset 4} ${downspeed wlan0}/${totaldown wlan0}

I'm a minimalist, and I want all my information available to me at once big_smile
I also don't like my conky shifting about, thus the thousand and one ${goto}s big_smile

Offline

#485 2010-03-09 13:03:06

tawan
Member
Registered: 2010-03-02
Posts: 290
Website

Re: conky configs and screenshots!

I already had tint2 on the side but took Imans idea of integrating conky. I went for a minimal looking conky that provides information from colour.

on AC power (battery meter hidden) some upload and download (blue \\ (download) and // (upload)) CPU2 is a little busy (blue +-)
tM3M1dA

CPU now calm but temperature is high
tM3M1cg

On battery power (battery bar becomes visible)
tM3M1dQ

CPU's both doing a little, On AC but charging (battery a bit visible)
tM3M1dg

Integrated into tint2
tM3M1dw

conky code

# -- 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
 
# -- Window specifications -- #

own_window yes
own_window_transparent no
own_window_type desktop
#own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

border_inner_margin 1
border_outer_margin 0
 
minimum_size 42 107
maximum_width 50
 
alignment bottom_left
gap_x 0
gap_y 0
 
# -- Graphics settings -- #
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders yes
 
# -- Text settings -- #
use_xft yes
xftfont Radio Space:size=9
xftalpha 0.4
 
uppercase no

# Default colors and also border colors
default_color FFFFDD
#good blue 1994d1
#medium blue 083146
#dark blue 041e2c
color1 303030
color2 1994d1
color3 a90100
color4 808080
color5 151515
#default_shade_color 888888
#default_outline_color 888888
own_window_colour 151515
default_color 808080
border_width 0
#
# -- Lua Load -- #
#lua_load ~/.conky/lua.lua
#lua_draw_hook_pre ring_stats
 
TEXT
${alignc}${if_up wlan0}${execpi 300 python ~/.conky/my-gmail.py emailbox1 password1 1}${else}x${endif}:${if_up wlan0}${execpi 600 python ~/.conky/my-gmail.py emailbox2 password2 1}${else}x${endif}
${alignc}${if_match ${downspeedf wlan0} >= 20}${color2}${else}${if_match ${downspeedf wlan0} >= 2}${color4}${else}${color5}${endif}${endif}\\${color} ${if_match ${upspeedf wlan0} >= 20}${color2}${else}${if_match ${upspeedf wlan0} >= 2}${color4}${else}${color5}${endif}${endif}//${color}
${alignc}${if_match ${cpu cpu1} >= 90}${color3}${else}${if_match ${cpu cpu1} >= 40}${color2}${else}${if_match ${cpu cpu1} >= 10}${color4}${else}${color5}${endif}${endif}${endif}-+${color}${if_match ${acpitemp} >= 70}${color3}${else}${if_match ${acpitemp} >= 60}${color2}${else}${if_match ${acpitemp} >= 50}${color4}${else}${color5}${endif}${endif}${endif}T${color}${if_match ${cpu cpu2} >= 90}${color3}${else}${if_match ${cpu cpu2} >= 40}${color2}${else}${if_match ${cpu cpu2} >= 10}${color4}${else}${color5}${endif}${endif}${endif}+-${color}
${if_up wlan0}${voffset 10}${goto 6}${color cccccc}${font ConkyWeather:size=25}${execi 600 conkyForecast --location=EZXX0002 --datatype=WF}${font}${color}
${font DejaVu Sans Mono:size=6.5}${goto 12}${execi 600 conkyForecast --location=ASXX0112 --datatype=HT}${endif}
${if_match ${battery_percent BAT0} >= 98}${color5}${else}${if_existing /sys/class/power_supply/ACAD/online 0}${color2}${else}${color1}${endif}${endif}${goto 2}${battery_bar 6,40 BAT0}
${if_existing /sys/class/power_supply/ACAD/online 0}${if_match ${battery_percent BAT0} <= 8}${execi 200 ~/mybin/tawan-lowpower-shutdown}${endif}${endif}

tint2 code

#---------------------------------------------
# TINT2 CONFIG FILE
#---------------------------------------------

#---------------------------------------------
# BACKGROUND AND BORDER
#---------------------------------------------
rounded = 0
border_width = 0
background_color = #151515 100
border_color = #ffffff 40

rounded = 5
border_width = 0
background_color = #000000 40
border_color = #ffffff 50

rounded = 5
border_width = 0
background_color = #000000 10
border_color = #ffffff 70

rounded = 5
border_width = 0
background_color = #ffffff 4
border_color = #ffffff 70

#---------------------------------------------
# PANEL
#---------------------------------------------
panel_monitor = all
panel_position = top left vertical
panel_size = 86% 44
panel_margin = 0 0
panel_padding = 2 2 2
font_shadow = 1
panel_background_id = 1
wm_menu = 1

#---------------------------------------------
# TASKBAR
#---------------------------------------------
taskbar_mode = multi_desktop
#taskbar_mode = single_desktop
taskbar_padding = 2 2 2
taskbar_background_id = 1
taskbar_active_background_id = 4

#---------------------------------------------
# TASKS
#---------------------------------------------
task_icon = 1
task_text = 0
task_maximum_size = 40 40
task_centered = 1
task_padding = 6 3
task_font = sans 7
task_font_color = #ffffff 70
task_active_font_color = #000000 100
task_background_id = 3
task_active_background_id = 2

#---------------------------------------------
# SYSTRAYBAR
#---------------------------------------------
systray = 1
systray_padding = 4 4 5
systray_background_id = 1
systray_sort = left2right
systray_icon_size = 16
systray_icon_asb = 100 0 0

#---------------------------------------------
# CLOCK
#---------------------------------------------
time1_format = %H:%M
time1_font = sans bold 8
time2_format = %h.%e
time2_font = sans 6
clock_font_color = #ffffff 76
clock_padding = 4 2
clock_background_id = 1
#clock_lclick_command = xclock
clock_rclick_command = zenity --calendar

#---------------------------------------------
# BATTERY
#---------------------------------------------
battery = 0
battery_hide = 98
battery_low_status = 10
battery_low_cmd = notify-send "battery low"
bat1_font = sans 8
bat2_font = sans 6
battery_font_color = #ffffff 76
battery_padding = 1 0
battery_background_id = 0

#---------------------------------------------
# TOOLTIP
#---------------------------------------------
tooltip = 1
tooltip_padding = 2 2
tooltip_show_timeout = 0.7
tooltip_hide_timeout = 0.3
tooltip_background_id = 1
tooltip_font_color = #ffffff 80
tooltip_font = sans 10

#---------------------------------------------
# MOUSE ACTION ON TASK
#---------------------------------------------
mouse_middle = none
mouse_right = close
mouse_scroll_up = toggle
mouse_scroll_down = iconify

Last edited by tawan (2010-03-09 13:33:59)

Offline

#486 2010-03-09 15:45:01

toxygen
Member
Registered: 2008-08-22
Posts: 713

Re: conky configs and screenshots!

tawan wrote:

I already had tint2 on the side but took Imans idea of integrating conky. I went for a minimal looking conky that provides information from colour.

on AC power (battery meter hidden) some upload and download (blue \\ (download) and // (upload)) CPU2 is a little busy (blue +-)
http://omploader.org/tM3M1dA

CPU now calm but temperature is high
http://omploader.org/tM3M1cg

On battery power (battery bar becomes visible)
http://omploader.org/tM3M1dQ

CPU's both doing a little, On AC but charging (battery a bit visible)
http://omploader.org/tM3M1dg

Integrated into tint2
http://omploader.org/tM3M1dw

wow, is all i have to say to this.  nice job!


"I know what you're thinking, 'cause right now I'm thinking the same thing. Actually, I've been thinking it ever since I got here:
Why oh why didn't I take the BLUE pill?"

Offline

#487 2010-03-20 22:47:43

YamiFrankc
Member
From: Mexico
Registered: 2009-06-19
Posts: 177
Website

Re: conky configs and screenshots!

# old colors: title: #22cc22
# divider: white
# text: #aaffaa
#draw_shades no
alignment top_left
gap_x 2
gap_y 2
use_xft yes

update_interval 1
#double_buffer yes
#background yes
#total_run_times 0

xftfont Fixed:pixelsize=8
TEXT
Vol:${exec ossmix vol | cut -c 50-54 | sed s/:/""/ | sed s/01/1/}                                                                                                                                          ${color red}(${color}${mpd_status}i${color red})
${color} ${mpd_elapsed}${color red}/${color}${mpd_length}${mpd_smart}                                    ${time %a %d.%m.%Y %R}

I have two questions about Conky... It flickers, and if i enable double buffer then my windows start flicking, even if i add the thing to the xorg.conf that the wiki says. I use Ratposion as wm.

And, can i set like a "limit" for the lenght of some items(like mpd's) so they dont move the position of the ones at the right, or should i use several conkys?

Thanks smile


Thanks and greetings.

Offline

#488 2010-03-27 07:39:31

Fruity
Member
Registered: 2009-12-16
Posts: 198

Re: conky configs and screenshots!

Does anyone know a way to replace instances of 'MiB' and 'GiB' in conkys display to Mb and Gb? For some reason MiB etc really bugs me, it's Mb dammit! One of those things you notice and from that point on its like a red flag to a bull.

Offline

#489 2010-03-27 08:35:35

tawan
Member
Registered: 2010-03-02
Posts: 290
Website

Re: conky configs and screenshots!

use the variable to list without units then put the MB in with text

Offline

#490 2010-03-27 17:25:46

xenofungus
Member
From: Spain
Registered: 2009-10-17
Posts: 63

Re: conky configs and screenshots!

Or you can use short_units and just get G, M, K and B

Offline

#491 2010-03-27 19:19:23

Fruity
Member
Registered: 2009-12-16
Posts: 198

Re: conky configs and screenshots!

tawan, xenofungus, thanks.. Obvious when it's pointed out!

Offline

#492 2010-03-30 22:18:09

Anniekin
Member
Registered: 2010-03-23
Posts: 55

Re: conky configs and screenshots!

Ya know, I was thinking whether there was a smart way to use conky not to display useful information, but to animate the desktop background for visual effect instead...

Offline

#493 2010-03-31 07:00:58

tawan
Member
Registered: 2010-03-02
Posts: 290
Website

Re: conky configs and screenshots!

^ I used to use conky to call a random wallpaper changing script.

But maybe you mean how conky can now load images. Iv'e seen some interesting animation from that.

Say the images adjust based on CPU or so on..

Offline

#494 2010-03-31 18:32:26

Anniekin
Member
Registered: 2010-03-23
Posts: 55

Re: conky configs and screenshots!

Do you have examples?

A little OT but this is cool:

http://xdesktopwaves.sourceforge.net/

Offline

#495 2010-04-01 16:15:45

Erus_Iluvatar
Wiki Admin
Registered: 2010-04-01
Posts: 124

Re: conky configs and screenshots!

I'll post this here to, highly inspired from an old blog post of someone :

tNDBqbA


I'm french, don't mind my mistakes in english.

Offline

#496 2010-04-01 16:47:08

leo2501
Member
From: Buenos Aires, Argentina
Registered: 2007-07-07
Posts: 658

Re: conky configs and screenshots!

Erus_Iluvatar wrote:

I'll post this here to, highly inspired from an old blog post of someone :

http://omploader.org/tNDBqbA

Amazing piece of art dude!


Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.
-- Antoine de Saint-Exupery

Offline

#497 2010-04-01 17:59:17

mjheagle8
Member
From: /home/mjheagle8
Registered: 2009-07-12
Posts: 186

Re: conky configs and screenshots!

Erus_Iluvatar wrote:

I'll post this here to, highly inspired from an old blog post of someone :

http://omploader.org/tNDBqbA

nice. smile
(might wanna take the ip off of that though.)


Desktop/Laptop - DWM :: VM - screen
Registered Linux User Number 483137 :: Victory! :: GitHub

Offline

#498 2010-04-01 18:15:22

kittykatt
Member
From: Missouri, USA
Registered: 2009-11-04
Posts: 260
Website

Re: conky configs and screenshots!

Erus_Iluvatar wrote:

I'll post this here to, highly inspired from an old blog post of someone :

http://omploader.org/tNDBqbA

Ah, I remember sircrazy and tawan's conky configs....

Nice config there, by the way. wink


- [ My Blog ] | [ AUR Packages ] | [ My deviantART ] | [ screenFetch ] | [ SilverIRC ] -

Offline

#499 2010-04-01 18:23:14

Erus_Iluvatar
Wiki Admin
Registered: 2010-04-01
Posts: 124

Re: conky configs and screenshots!

Who cares of te IP, it'll change at 5:00 AM tomorrow.

I found the post where I saw this concept first : http://blog.brixandersen.dk/?p=67

Wanna me to post .conkyrc, and meteo scripts?


I'm french, don't mind my mistakes in english.

Offline

#500 2010-04-02 08:03:15

RPMN
Member
Registered: 2010-03-08
Posts: 13

Re: conky configs and screenshots!

Erus_Iluvatar wrote:

I'll post this here to, highly inspired from an old blog post of someone :

http://omploader.org/tNDBqbA

If DaVinci used Linux, his Conky wouldn't be this perfect!
cool

EDIT: Which WM is that?

Last edited by RPMN (2010-04-02 08:04:06)

Offline

Board footer

Powered by FluxBB