SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 Re: Tips, Tricks & Scripts » My tint2 config » 2015-09-29 21:00:28

i know im probably over looking somethign but i want my clockto show up in the very center of my panel not to the far right like it is in the default tint2rc..

edit: switched panel_items from TSC to TCS but as i adjust the clock padding to move it over i lose my tasks...

#2 Re: Tips, Tricks & Scripts » Conky v1.9 Thread » 2012-02-27 17:02:29

thanks guys glad u liked it nice mods u did to it S11. added album art but it just doesnt go with the conky. is there a way to have a graph like the cpu or network graphs but for music?

#3 Re: Tips, Tricks & Scripts » Conky v1.9 Thread » 2012-02-26 20:57:55

[solved]trying to get conky to display the album art i used this post[solved]
http://crunchbanglinux.org/forums/topic … album-art/

but i get nothing. most of my music has the albumart in the albums folder already figured id try that tho incase the albumart is not in the folder with the songs.

#4 Re: Tips, Tricks & Scripts » Tips for privacy and security » 2012-02-26 17:50:02

its fine really i havent found a site or such that doesnt work at all with the java version i have. on the java site it reports i have Version 6 Update 26 i guess ill dig deeper into it when it quits working

currently i have noscript and better privacy on iceweasel so far i like it, plus i run bleachbit everynight before i go to sleep.

#5 Re: Tips, Tricks & Scripts » Conky v1.9 Thread » 2012-02-26 17:25:14

here goes the script and lua for my conky
@S11 yea im comfortable with the "if it aint broke dont fix it" im running the original conky i got the idea from on my moms acer laptop with #! 10 32bit its like 4 different conkyrc's some of them are own_window_type override some are desktop, had to do it like that because the transperency wasnt right on some of the conky windows. but anyway heres my code. most of the rings in the lua code are commented so u know which rings are which. and thanks much for the compliments although its not totally my code i feel good about the modifications i did to it, gives me a sense of accomplishment.


conkyrc

## Conky script by Dragonias Edited by SuiCiDeSiNiSTeR ##
total_run_times 0
background no
cpu_avg_samples 1                    
net_avg_samples 1
double_buffer yes
no_buffers yes
text_buffer_size 1024
out_to_console no
update_interval 1
alignment tr
minimum_size 1440 300
maximum_width 1440
gap_x 0
gap_y 0
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
border_width 1
border_inner_margin 0
own_window yes
own_window_type conky
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
use_xft yes
xftalpha .8
override_utf8_locale yes
uppercase no
use_spacer right
default_bar_size 82 15
default_color ffffff
default_shade_color 303030
default_outline_color white
color1 64b4ff
pad_percents 2



lua_load /home/junior/.conky/conkynice/clock_rings.lua
lua_draw_hook_post clock_rings
 
 
TEXT

${voffset 117}${goto 105}${font neuropol:size=18}${time %I:%M}${font neuropol:size=10}${voffset -5}${time %p}${font}
${voffset -20}${goto 300}${cpubar cpu6 1,600}
${voffset 10}${goto 310}${font Santana:size=16}${time %A, %d %B %Y}
${font neuropol:size=12}${voffset 30}${goto 300}HDD${goto 450}${font Santana:size=12}used ${fs_used} size ${fs_size}                        
${font neuropol:size=12}${voffset 5}${goto 300}Kernel${goto 450}${font Santana:size=12}${kernel}
${font neuropol:size=12}${voffset 5}${goto 300}Uptime${goto 450}${font Santana:size=12}${uptime}
${font neuropol:size=12}${voffset 5}${goto 300}Os${font Santana:size=12}${goto 450}Crunchbang Linux 10 Statler 64bit

${voffset 100}${goto 1000}${font neuropol:size 12}RAM DDR2 667 MHz
${goto 930}${voffset -7}${cpubar cpu6 1,600}
${voffset 5}${goto 1000}${font neuropol:size 12}In Use${font Santana:size=12}${goto 1250}${mem}
${voffset 2}${goto 1000}${font neuropol:size 12}Total${font Santana:size=12}${goto 1250}${memmax}
${voffset 2}${goto 1000}${font neuropol:size 12}Processes${font Santana:size=12}${goto 1250}${running_processes}/ ${processes}

${goto 1000}${font neuropol:size 12}${top_mem name 1} ${goto 1250}${font Santana:size=12}${top_mem mem 1}
${goto 1000}${font neuropol:size 12}${top_mem name 2} ${goto 1250}${font Santana:size=12}${top_mem mem 2}
${goto 1000}${font neuropol:size 12}${top_mem name 3} ${goto 1250}${font Santana:size=12}${top_mem mem 3}
${goto 1000}${font neuropol:size 12}${top_mem name 4} ${goto 1250}${font Santana:size=12}${top_mem mem 4}
${goto 1000}${font neuropol:size 12}${top_mem name 5} ${goto 1250}${font Santana:size=12}${top_mem mem 5}
${goto 1000}${font neuropol:size 12}${top_mem name 6} ${goto 1250}${font Santana:size=12}${top_mem mem 6}

${voffset 10}${goto 285}${font neuropol:size 12}AMD Phenom x4 9550${goto 900}Current Track
${goto 270}${voffset -10}${hr 2}
${voffset -89}${goto 499}${cpugraph cpu6 75,200 181818 ffffff}
${voffset 10}${goto 285}${font neuropol:size 12}Total Use${font Santana:size=12}${goto 451}${cpu cpu0}%${font neuropol:size 12}${goto 520}Core 1${goto 650}${font santana:size=12}${cpu cpu1}%${goto 1000}${font neuropol:size=18}${if_running rhythmbox}${exec conkyRhythmbox --datatype=PT}
${goto 285}${voffset -14}${font neuropol:size 12}Freq${font Santana:size=12}${goto 416}${freq} mhz${goto 520}${font neuropol:size 12}Core 2${goto 650}${font Santana:size=12}${cpu cpu2}%${goto 1040}${exec conkyRhythmbox --datatype=TI}
${goto 285}${font neuropol:size 12}Temp${goto 451}${font Santana:size=12}${exec sensors | grep 'temp1' | cut -c15-16}°C${goto 520}${font neuropol:size 12}Core 3${goto 650}${font Santana:size=12}${cpu cpu3}%${font neuropol:size=30}${goto 900}${exec conkyRhythmbox --datatype=AR}
${goto 285}${voffset -43}${font neuropol:size 12}Voltage${font Santana:size=12}${goto 435}${exec sensors | grep 'cpu0_vid' | cut -c14-20}${goto 520}${font neuropol:size 12}Core 4${goto 650}${font Santana:size=12}${cpu cpu4}%${goto 1000}${voffset 20}${exec conkyRhythmbox --datatype=AL}${goto 1000}${else}       ..:: rhythmbox not running ::..

${endif}

lua

--[[
Clock Rings by londonali1010 (2009) Editted by SuiCiDeSiNiSTeR (2012)

This script draws percentage meters as rings, and also draws clock hands if you want! It is fully customisable; all options are described in the script. This script is based off a combination of my clock.lua script and my rings.lua 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 near the end of the script 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/clock_rings-v1.1.1.lua
    lua_draw_hook_pre clock_rings

Changelog:
+ v1.1.1 -- Fixed minor bug that caused the script to crash if conky_parse() returns a nil value (20.10.2009)
+ v1.1 -- Added colour option for clock hands (07.10.2009)
+ v1.0 -- Original release (30.09.2009)
]]

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=0xffffff,
        -- "bg_alpha" is the alpha value of the base ring.
        bg_alpha=0.1,
        -- "fg_colour" is the colour of the indicator part of the ring.
        fg_colour=0xffffff,
        -- "fg_alpha" is the alpha value of the indicator part of the ring.
        fg_alpha=0.2,
        -- "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=150, y=155,
        -- "radius" is the radius of the ring.
        radius=55,
        -- "thickness" is the thickness of the ring, centred around the radius.
        thickness=5,
        -- "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 than start_angle.
        end_angle=360
    },
    {
        name='time',
        arg='%M.%S',
        max=60,
        bg_colour=0xffffff,
        bg_alpha=0.1,
        fg_colour=0xffffff,
        fg_alpha=0.4,
        x=150, y=155,
        radius=76,
        thickness=5,
        start_angle=0,
        end_angle=360
    },
    {
        name='time',
        arg='%S',
        max=60,
        bg_colour=0xffffff,
        bg_alpha=0,
        fg_colour=0xffffff,
        fg_alpha=1,
        x=150, y=155,
        radius=82,
        thickness=5,
        start_angle=0,
        end_angle=360
    },
    {
        name='cpu',
        arg='cpu1',
        max=100,
        bg_colour=0xffffff,
        bg_alpha=0.2,
        fg_colour=0xffffff,
        fg_alpha=0.5,
        x=150, y=155,
        radius=95,
        thickness=5,
        start_angle=93,
        end_angle=208
    },
    {
        name='cpu',
        arg='cpu2',
        max=100,
        bg_colour=0xffffff,
        bg_alpha=0.2,
        fg_colour=0xffffff,
        fg_alpha=0.5,
        x=150, y=155,
        radius=101,
        thickness=5,
        start_angle=93,
        end_angle=208
    },
    {
        name='cpu',
        arg='cpu3',
        max=100,
        bg_colour=0xffffff,
        bg_alpha=0.2,
        fg_colour=0xffffff,
        fg_alpha=0.5,
        x=150, y=155,
        radius=95,
        thickness=5,
        start_angle=212,
        end_angle=329
    },
        {
        name='cpu',
        arg='cpu4',
        max=100,
        bg_colour=0xffffff,
        bg_alpha=0.2,
        fg_colour=0xffffff,
        fg_alpha=0.5,
        x=150, y=155,
        radius=101,
        thickness=5,
        start_angle=212,
        end_angle=329
    },
    {
        name='memperc',
        arg='',
        max=100,
        bg_colour=0xffffff,
        bg_alpha=0.2,
        fg_colour=0xffffff,
        fg_alpha=0.5,
        x=150, y=155,
        radius=98.5,
        thickness=11,
        start_angle=-27,
        end_angle=85
    },
    {
        name='fs_used_perc',
        arg='/',
        max=100,
        bg_colour=0xffffff,
        bg_alpha=0.2,
        fg_colour=0xffffff,
        fg_alpha=0.5,
        x=150, y=155,
        radius=125,
        thickness=3,
        start_angle=-120,
        end_angle=-13
    },
    {
        name='fs_used_perc',
        arg='/home',
        max=100,
        bg_colour=0xffffff,
        bg_alpha=0.2,
        fg_colour=0xffffff,
        fg_alpha=0.5,
        x=150, y=155,
        radius=125,
        thickness=3,
        start_angle=-10,
        end_angle=120
    },
    {
        name='', --top left outter decoration ring surrounding clock
        arg='',
        max=1,
        bg_colour=0xffffff,
        bg_alpha=1,
        fg_colour=0xffffff,
        fg_alpha=1,
        x=150, y=155,
        radius=150,
        thickness=4,
        start_angle=50,
        end_angle=190
    },
        {
        name='upspeedf',  --big center ring inner meter
        arg='eth0',
        max=700,
        bg_colour=0xffffff,
        bg_alpha=0.2,
        fg_colour=0xffffff,
        fg_alpha=0.5,
        x=700, y=455,
        radius=95,
        thickness=9,
        start_angle=10,
        end_angle=180
    },
    {
        name='downspeedf', --middle ring inner meter
        arg='eth0',
        max=3200,
        bg_colour=0xffffff,
        bg_alpha=0.2,
        fg_colour=0xffffff,
        fg_alpha=0.5,
        x=700, y=455,
        radius=84,
        thickness=9,
        start_angle=10,
        end_angle=180
    },
    {
        name='',  --middle outter decoration ring
        arg='',
        max=1,
        bg_colour=0xffffff,
        bg_alpha=1,
        fg_colour=0xffffff,
        fg_alpha=1,
        x=700, y=455,
        radius=230,
        thickness=4,
        start_angle=60,
        end_angle=150
    },
    {
        name='memperc', --middle ring outer meter
        arg='',
        max=100,
        bg_colour=0xffffff,
        bg_alpha=0.2,
        fg_colour=0xffffff,
        fg_alpha=0.5,
        x=700, y=455,
        radius=215,
        thickness=2,
        start_angle=60,
        end_angle=300
    },
    {
        name='cpu', --middle ring meter
        arg='cpu4',
        max=100,
        bg_colour=0xffffff,
        bg_alpha=0.2,
        fg_colour=0xffffff,
        fg_alpha=0.5,
        x=700, y=455,
        radius=185,
        thickness=15,
        start_angle=80,
        end_angle=170
    },
    {
        name='cpu', --middle ring meter
        arg='cpu3',
        max=100,
        bg_colour=0xffffff,
        bg_alpha=0.2,
        fg_colour=0xffffff,
        fg_alpha=0.5,
        x=700, y=455,
        radius=130,
        thickness=4,
        start_angle=0,
        end_angle=360
    },
    {
        name='5', --bottom outer ring
        arg='',
        max=1,
        bg_colour=0xffffff,
        bg_alpha=1,
        fg_colour=0xffffff,
        fg_alpha=1,
        x=50, y=675,
        radius=220,
        thickness=4,
        start_angle=0,
        end_angle=130
    },
    {
        name='cpu', --bottom cpu ring
        arg='cpu1',
        max=100,
        bg_colour=0xffffff,
        bg_alpha=0.2,
        fg_colour=0xffffff,
        fg_alpha=0.5,
        x=50, y=675,
        radius=195,
        thickness=3,
        start_angle=50,
        end_angle=150
    },
    {
        name='cpu', --bottom cpu ring
        arg='cpu2',
        max=100,
        bg_colour=0xffffff,
        bg_alpha=0.2,
        fg_colour=0xffffff,
        fg_alpha=0.7,
        x=50, y=675,
        radius=170,
        thickness=10,
        start_angle=-10,
        end_angle=170
    },
    {
        name='time', --bottom seconds ring
        arg='%S',
        max=60,
        bg_colour=0xffffff,
        bg_alpha=00,
        fg_colour=0xffffff,
        fg_alpha=1,
        x=50, y=675,
        radius=140,
        thickness=3,
        start_angle=20,
        end_angle=130
    },
    {
        name='cpu', --bottom inner cpu ring
        arg='cpu3',
        max=100,
        bg_colour=0xffffff,
        bg_alpha=0.2,
        fg_colour=0xffffff,
        fg_alpha=0.5,
        x=50, y=675,
        radius=120,
        thickness=5,
        start_angle=50,
        end_angle=140
    },
    {
        name='cpu', --bottom inner cpu ring
        arg='cpu4',
        max=100,
        bg_colour=0xffffff,
        bg_alpha=0.2,
        fg_colour=0xffffff,
        fg_alpha=0.5,
        x=50, y=675,
        radius=113,
        thickness=5,
        start_angle=50,
        end_angle=140
    },
    {
        name='cpu', --bottom inner cpu ring
        arg='cpu4',
        max=100,
        bg_colour=0xffffff,
        bg_alpha=0.2,
        fg_colour=0xffffff,
        fg_alpha=0.5,
        x=50, y=675,
        radius=85,
        thickness=9,
        start_angle=-5,
        end_angle=155
    },
    {
        name='6', --bottom left outter decoration ring
        arg='',
        max=1,
        bg_colour=0xffffff,
        bg_alpha=0,
        fg_colour=0xffffff,
        fg_alpha=1,
        x=389, y=697,
        radius=112,
        thickness=2,
        start_angle=80,
        end_angle=100
    },
        
}

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

clock_r=140

-- "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=150
clock_y=155

-- Colour & alpha of the clock hands

clock_colour=0xffffff
clock_alpha=0.7

-- Do you want to show the seconds hand?

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

    -- 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,rgb_to_r_g_b(clock_colour,clock_alpha))
    cairo_stroke(cr)

    -- Draw minute hand

    xm=xc+clock_r*math.sin(mins_arc)
    ym=yc-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+clock_r*math.sin(secs_arc)
        ys=yc-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)
    end
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)
        if value == nil then value = 0 end
        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

#6 Re: Tips, Tricks & Scripts » Conky v1.9 Thread » 2012-02-26 03:56:32

It's just you. Conky is not addicting.  I can quite anytime!
AnYtImE I tell you.


Pretty sweet, you modified that really well.  Going to share the files?

addicts go to meetings big_smile
actually its kind of messy coding and/or it probably could have been done alot easier or differently. im sure i can clean it up some actually ill take this as an assignment to properly comment it n all. its all 1 conkyrc i had trouble breaking it up into different conkys for example the fonts wouldnt work when i had it split in 2 conkys, it was weird testing each conky file on its own the fonts would show fine but when ran togther  it would show  a regular default font.

#7 Re: Tips, Tricks & Scripts » Conky v1.9 Thread » 2012-02-26 01:43:51

is it just me or is messing with conky & lua completly addicting? lmao
so i seen this conky on deviantart... Conky Conky Conky...loaded some dubstep music in Rhythmbox smoked a few bowls and  now i have this th_sinister-rings-final.png

#8 Re: Artwork & Screenshots » If you like cars and computer, heres a little somin'-somin'! » 2012-02-23 17:49:47

@vrkalak is that an actual stosek or just a slant nose conversion? gorgeous car btw.. my brother wold cream his pants. i myself am a ferrari lover.

#9 Re: Tips, Tricks & Scripts » Tips for privacy and security » 2012-02-22 19:25:15

it does work on iceweasel although when i go to the java page and click the verfiy button it says a newer version is available

#10 Re: Tips, Tricks & Scripts » Tips for privacy and security » 2012-02-22 17:52:25

@CBizgreat!

choose to install firefox 10 put it in my /home folder and now java doesnt work, ive tried everythign form open-jdk to sun to icedtea . of course googled for hours last night and today and have tried every solution i can to no avail sad

#11 Re: Tips, Tricks & Scripts » Tips for privacy and security » 2012-02-21 22:26:49

trying to install Adblock Plus for google chrome i get..
  Could not install package: 'COULD_NOT_GET_TEMP_DIRECTORY'
googled around and cant find a fix anybody had this issue and if so how did you fix it?

#12 Re: Tips, Tricks & Scripts » Conky v1.9 Thread » 2012-02-21 02:56:18

peachy hit the nail right on the head. did speedtest.net and converted the results to KiB then set the max= a little higher than that

#13 Re: Tips, Tricks & Scripts » Conky v1.9 Thread » 2012-02-21 02:24:43

i figured id get to a point where id screw things up commenting out stuff instead of just deleting it. wow my conky looks nicer with some lua rings in it! thnx mrpeachy & falldown

trying to use rings for my upload download thing is the meter if you would doesnt stop at angle 180 it keeps going to the start angle making a complete circle

name='upspeedf',
    arg='eth0',
    max=100,
    bg_colour=0xffffff,
    bg_alpha=0.2,
    fg_colour=0x33ff33,
    fg_alpha=0.9,
    x=150, y=610,
    radius=25,
    thickness=7,
    start_angle=-90,
    end_angle=180

would i decrease the max value?
im slowly figuring it out increasing the max value is doing the trick

#14 Re: Tips, Tricks & Scripts » Conky v1.9 Thread » 2012-02-21 00:33:10

i only want the cpu rings showing so i commented out the others. the x,y positions arent set yet as i was trying to at least get the rings to show before i adjust the positions. thank you in advance and im sorry if the code is not that clean. the comments in the lua are in italian so not much help there lol.

conkyrc

total_run_times 0
background no
cpu_avg_samples 1                    
net_avg_samples 2
double_buffer yes
no_buffers yes
text_buffer_size 1024
out_to_console no
update_interval 1
alignment top_right
minimum_size 400
maximum_width 350
gap_x 0
gap_y 60
draw_shades no
draw_outline no
draw_borders no
border_width 1
border_inner_margin 1
own_window yes
own_window_type desktop
own_window_transparent yes
own_window_argb_visual yes
own_window_argb_value 0
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
use_xft yes
xftalpha .1
override_utf8_locale yes
uppercase no
use_spacer right
xftfont sans:size=9
default_bar_size 82 15
#stippled_borders 3
default_color ffffff
default_shade_color 303030
default_outline_color white
color1 ff0000
#short_units yes
pad_percents 2



 lua_load /home/suicidesinister/.conky/lua/clock.lua
 lua_draw_hook_pre clock_rings

TEXT
${color1}${offset 56}${voffset 1}${cpugraph cpu6 17,1}${voffset -3}${hr 2}


${color ffffff}${voffset -27}${offset 120}${font neuropol:size=13}${nodename}${font} ${font neuropol:size=10}64bit
${color1}${voffset -5}${offset 120}${cpubar cpu6 0, 200}${voffset 2}
${font neuropol:size=10}${color ffffff}${offset 120}SuiCiDeSiNiSTeR
${font neuropol:size=10}${color ffffff}${offset 120}AMD Phenom 9550 X4
${font neuropol:size=10}${color ffffff}${offset 120}${sysname} ${kernel}
${font neuropol:size=10}${color ffffff}${offset 120}${uptime}
${font neuropol:size=10}${color ffffff}${offset 120}${fs_used_perc /home/suicidesinister}% ${fs_size /home/suicidesinister}
#cpu1-2#
${color1}${offset 110}${voffset 20}${cpugraph cpu6 17,1}${voffset -3}${hr 2}
${color ffffff}${offset 160}${font neuropol:size=12}${freq cpu0}mhz
${color ffffff}${offset 160}${font neuropol:size=12}${exec sensors | grep 'temp1' | cut -c15-16}°C
${color ffffff}${offset 160}${font neuropol:size=12}${cpu cpu1}${font neuropol:size=12}% ${font neuropol:size=10 style=bold}core.1
${offset 160}${font neuropol:size=12}${cpu cpu2}${font neuropol:size=12}% ${font neuropol:size=10 style=bold}core.2
${color1}${offset 160}${voffset -5}${cpubar cpu6 0, 150}${voffset 2}
${offset 120}${color 000000}${cpugraph cpu0 25,220 ff0000 808080}
#cpu3-4#
${color1}${offset 110}${voffset 20}${cpugraph cpu6 17,1}${voffset -3}${hr 2}${color ffffff}
${offset 160}${font neuropol:size=12}${cpu cpu3}${font neuropol:size=12}% ${font neuropol:size=10 style=bold}core.3
${offset 160}${font neuropol:size=12}${cpu cpu4}${font neuropol:size=12}% ${font neuropol:size=10 style=bold}core.4
${color1}${offset 160}${voffset -5}${cpubar cpu6 0, 150}${voffset 2}
#ram#
${color1}${offset 100}${voffset 20}${cpugraph cpu6 17,1}${voffset -3}${hr 2}${color ffffff}
${offset 160}${font neuropol:size=12}${mem}${font neuropol:size=12}${font neuropol:size=10 style=bold} in use
${offset 160}${font neuropol:size=12}${memmax}${font neuropol:size=10} total
${offset 160}${font neuropol:size=12}${running_processes}${font neuropol:size=10} processes
${color1}${offset 160}${voffset -6}${cpubar cpu6 0, 150}
#net#
${color1}${offset 75}${voffset 20}${cpugraph cpu6 17,1}${voffset -3}${hr 2}${color ffffff}
${offset 110}${font neuropol:size=12}${upspeed}${font neuropol:size=10} upload
${offset 110}${font neuropol:size=12}${downspeed}${font neuropol:size=10} download
${color1}${offset 110}${voffset -6}${cpubar cpu6 0, 200}
#music
${offset 5}${color1}${voffset 20}${cpugraph cpu6 17,1}${voffset -3}${hr 2}${color ffffff}
${if_running rhythmbox}${voffset 15}${offset 25}${voffset -10}${font neuropol:size=12}${exec conkyRhythmbox --datatype=PT} ${voffset -10}${offset -65}${offset 55}
${color1}${offset 25}${cpubar cpu6 0,110}${voffset -15}
${color ffffff}${font neuropol:size=12}
${offset 15}${exec conkyRhythmbox --datatype=TI}
${offset 15}${exec conkyRhythmbox --datatype=AR}
${offset 15}${exec conkyRhythmbox --datatype=AL}

${else}       ..:: rhythmbox not running ::..
${exec conkyRhythmbox --datatype=TI} 
${endif}

clock.lua

--[[
Clock Rings by londonali1010 (2009)

This script draws percentage meters as rings, and also draws clock hands if you want! It is fully customisable; all options are described in the script. This script is based off a combination of my clock.lua script and my rings.lua 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 near the end of the script 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/clock_rings-v1.1.1.lua
  lua_draw_hook_pre clock_rings

Changelog:
+ v1.1.1 -- Fixed minor bug that caused the script to crash if conky_parse() returns a nil value (20.10.2009)
+ v1.1 -- Added colour option for clock hands (07.10.2009)
+ v1.0 -- Original release (30.09.2009)
]]

settings_table = {
  --[[Anneau des heures
  {
    name='time',
    arg='%I.%M',
    max=12,
    bg_colour=0xffffff,
    bg_alpha=0.1,
    fg_colour=0xffffff,
    fg_alpha=0.2,
    x=60, y=70,
    radius=40,
    thickness=5,
    start_angle=0,
    end_angle=360
  },
  --Anneau des minutes
  {
    name='time',
    arg='%M.%S',
    max=60,
    bg_colour=0xffffff,
    bg_alpha=0.1,
    fg_colour=0xffffff,
    fg_alpha=0.4,
    x=60, y=70,
    radius=46,
    thickness=5,
    start_angle=0,
    end_angle=360
  },]]
  --Anneau des secondes
  {
--    name='time',
--    arg='%S',
--    max=60,
--    bg_colour=0xffffff,
--    bg_alpha=0.4,
--   fg_colour=0xff9900,
--    fg_alpha=0.9,
--    x=60, y=85,
--    radius=55,
--    thickness=3,
--    start_angle=0,
--    end_angle=360
--  },
-- {
--    name='time',
--    arg='%M.%S',
--    max=60,
--    bg_colour=0xffffff,
--    bg_alpha=0.4,
--    fg_colour=0xff9900,
--    fg_alpha=0.9,
--    x=60, y=85,
--    radius=44,
--    thickness=10,
--    start_angle=0,
--    end_angle=360
--  },
-- {
--    name='time',
--    arg='%I.%M',
--    max=12,
--    bg_colour=0xffffff,
--    bg_alpha=0.4,
--    fg_colour=0xff9900,
--    fg_alpha=0.9,
--    x=60, y=85,
--    radius=34,
--    thickness=3,
--    start_angle=0,
--    end_angle=360
--  },
  {
    name='cpu',
    arg='cpu1',
    max=100,
    bg_colour=0xffffff,
    bg_alpha=0.4,
    fg_colour=0xff0000,
    fg_alpha=0.9,
    x=60, y=150,
    radius=40,
    thickness=5,
    start_angle=90,
    end_angle=0
  },
  {
    name='cpu',
    arg='cpu2',
    max=100,
    bg_colour=0xffffff,
    bg_alpha=0.4,
    fg_colour=0xff0000,
    fg_alpha=0.9,
    x=60, y=150,
    radius=25,
    thickness=10,
    start_angle=90,
    end_angle=0
  },
{
    name='cpu',
    arg='cpu3',
    max=100,
    bg_colour=0xffffff,
    bg_alpha=0.4,
    fg_colour=0xff0000,
    fg_alpha=0.9,
    x=155, y=441,
    radius=40,
    thickness=5,
    start_angle=90,
    end_angle=0
  },
{
    name='cpu',
    arg='cpu4',
    max=100,
    bg_colour=0xffffff,
    bg_alpha=0.4,
    fg_colour=0xff0000,
    fg_alpha=0.9,
    x=155, y=441,
    radius=25,
    thickness=10,
    start_angle=90,
    end_angle=0
  },
--{
--    name='memperc',
--    arg='/',
--    max=100,
--    bg_colour=0xffffff,
--    bg_alpha=0.4,
--    fg_colour=0xff9900,
--    fg_alpha=0.9,
--    x=105, y=572,
--    radius=35,
--    thickness=10,
--    start_angle=0,
--  end_angle=360
  },
--{
--    name='mem_free_perc',
--    arg='/',
--    max=100,
--    bg_colour=0xffffff,
--    bg_alpha=0.1,
--    fg_colour=0x0778ec,
--    fg_alpha=0.6,
--    x=105, y=484,
--    radius=35,
--    thickness=10,
--    start_angle=0,
--    end_angle=360
--  },
}

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

--Coordinates of the centre of the clock, in pixels, from the top left of the Conky window.
  clock_x=60
  clock_y=85

--Colour & alpha of the clock hands
  clock_colour=0xffffff
  clock_alpha=0.6

--Show the seconds hand ?
  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

  --Draw hour hand
  xh=xc+0.65*clock_r*math.sin(hours_arc)
  yh=yc-0.65*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,rgb_to_r_g_b(clock_colour,clock_alpha))
  cairo_stroke(cr)

  --Draw minute hand
  xm=xc+0.95*clock_r*math.sin(mins_arc)
  ym=yc-0.95*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+1.1*clock_r*math.sin(secs_arc)
    ys=yc-1.1*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)
  end
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)
  if value == nil then value = 0 end

--Les ajouts suivants permettent de corriger le retard prit par les anneaux
  --Ajout wlourf : conversion des minutes en centièmes d'heures
  if pt['arg'] == "%I.%M"  then
    value=os.date("%I")+os.date("%M")/60
    if value>12 then value=value-12 end
  end

  --Ajout Fenouille84 : conversion des secondes en centièmes de minutes
  if pt['arg'] == "%M.%S"  then
    value=os.date("%M")+os.date("%S")/60
  end
  --Fin ajout

  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

#15 Re: Tips, Tricks & Scripts » Conky v1.9 Thread » 2012-02-20 22:48:23

tried to add some rings to my conky and i get...

Conky: llua_do_call: function conky_clock_rings execution failed: /home/suicidesinister/.conky/lua/clock.lua:269: bad argument #2 to 'format' (string expected, got nil)

the rings wont show sad
clock hands disappear after a few seconds

#16 Re: Artwork & Screenshots » February 2012 Screenshot thread » 2012-02-20 17:37:28

th_crunch-scrot2-20.png

heres mine big_smile i think its sexy with all the black & red, the wallpaper and PS1 looks like im about to h4x0riz3 the world lmao.

#17 Artwork & Screenshots » added some wallpapers to the group gallery on deviantart » 2012-02-15 02:10:13

SiNiSTeR
Replies: 1

th_sinister-color-preview.png

did different color variations of the wallpaper i made myself the otherday and added them to the group gallery on deviantart Crunchbang-Linux Group
not much but i figured id give back to the community for the help and support everyone has been giving so far.
if you would like any different colors just post below and ill make it for you big_smile

#18 Re: Help & Support (Crunchbang 11 "Waldorf") » [solved]error trying to instal teamviewer7 » 2012-02-14 17:43:17

nevermind i just got frustrated and backedup my home folder and configs and reinstalled this time only choosing seperate /home instead of the whole lot thnx though fellas

#19 Re: Help & Support (Crunchbang 11 "Waldorf") » [solved]error trying to instal teamviewer7 » 2012-02-14 16:04:58

im booted into the live cd right now and gparted does not let me grow the root partition. i have a 10gig unallocated space from where i did away with my swap partition

#20 Re: Help & Support (Crunchbang 11 "Waldorf") » [solved]error trying to instal teamviewer7 » 2012-02-14 15:30:38

2 questions then..
1. which of the above partitions is /opt inside of.
2. how would i increase said partition.
i did away with my swap partition because frankly i really dont need it as i have 6gigs of ram. so i have a 10 gig space thats free. i really dont want to go and reinstall again but im thinking thats what ill have to do, and this time save myself the trouble and not choose separate partitions for everything.

#21 Re: Help & Support (Crunchbang 11 "Waldorf") » [solved]error trying to instal teamviewer7 » 2012-02-14 00:26:35

opt is showing 53.9 mb free only thing in that folder is /google/chrome

~$ df -i
Filesystem            Inodes   IUsed   IFree IUse% Mounted on
/dev/sda1              85344    6946   78398    9% /
tmpfs                 733947       4  733943    1% /lib/init/rw
udev                  732725     868  731857    1% /dev
tmpfs                 733947       6  733941    1% /dev/shm
/dev/sda9            37576704    2278 37574426    1% /home
/dev/sda8              97536      44   97492    1% /tmp
/dev/sda5             549440  102171  447269   19% /usr
/dev/sda6             183264    6357  176907    4% /var

#22 Re: Help & Support (Crunchbang 11 "Waldorf") » [solved]error trying to instal teamviewer7 » 2012-02-13 23:28:27

umm 600gig hd got filled up fast then huh? when i installed #! i choose seperate /home/  /var  /usr  n such so i dont see how there isnt enough room left. where does teamviewer get installed to? ive looked through just bout every folder on my hd and seems to be plenty of room in all of them

#23 Help & Support (Crunchbang 11 "Waldorf") » [solved]error trying to instal teamviewer7 » 2012-02-13 22:59:13

SiNiSTeR
Replies: 10

trying to install teamviewer 7 i get this error in the package manager


th_tv7-error.png

#24 Re: CrunchBang Talk » thnx corenominal for updateing the iso's » 2012-02-13 15:20:04

im running #!crunchbang 10 statler with openbox... before i was running debian squeeze with the crunchbang xfce script that Ozitraveller has posted in the scripts & tricks section... http://crunchbanglinux.org/forums/topic … e-statler/

#25 CrunchBang Talk » thnx corenominal for updateing the iso's » 2012-02-13 03:22:57

SiNiSTeR
Replies: 2

i was finally able to install #! 10 full out instead of doing the squeeze netinst then running the script Ozitraveller posted to make Debian Squeeze XFCE look like #!. awesome crunchy-ness has been bestowed upon me now.

you sir deserve cupcakes aswell as the rest of this great community!

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.
Server: acrobat

Debian Logo