SEARCH

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

You are not logged in.

#3826 2012-11-15 20:29:55

mrpeachy
20% cooler
From: The Everfree Forest
Registered: 2009-11-08
Posts: 3,460

Re: Conky v1.9 Thread

speaking of v9000 i feel an update coming soon.  I should have time over the thanksgiving break to implement an enhanced text function, including ability to set italic and bold as well as many different things

it will be a drop in replacement and will run all existing code without anyone having to make changes (unless they want the new options)

Offline

Help fund CrunchBang, donate to the project!

#3827 2012-11-15 20:35:17

McLovin
#! CrunchBanger
From: my computer chair
Registered: 2009-02-28
Posts: 105
Website

Re: Conky v1.9 Thread

Offline

#3828 2012-11-15 20:52:53

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Conky v1.9 Thread

Offline

#3829 2012-11-15 20:58:06

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Conky v1.9 Thread

Offline

#3830 2012-11-15 20:59:31

McLovin
#! CrunchBanger
From: my computer chair
Registered: 2009-02-28
Posts: 105
Website

Re: Conky v1.9 Thread

@Sector11,
Is there something we should know about?  tongue

Last edited by McLovin (2012-11-15 20:59:46)

Offline

#3831 2012-11-15 21:16:02

McLovin
#! CrunchBanger
From: my computer chair
Registered: 2009-02-28
Posts: 105
Website

Re: Conky v1.9 Thread

I have another question, how do I get the script to show the current moon phase icon? I have tried

image({x=140,y=60,h=70,w=70,file=now["moon_icon"]})

as well as

image({x=140,y=60,h=70,w=70,file=moon_icon[0]})

and even

image({x=140,y=60,h=70,w=70,file=moon_icon[]})

but all I seem to be able to get, is the next days moon phase icon. Anyone have any ideas? I'm also still trying to figure out how to change wind direction compass color, still no luck with that, so I'm open for suggestions.

Offline

#3832 2012-11-15 21:42:48

mrpeachy
20% cooler
From: The Everfree Forest
Registered: 2009-11-08
Posts: 3,460

Re: Conky v1.9 Thread

Offline

#3833 2012-11-15 21:44:34

McLovin
#! CrunchBanger
From: my computer chair
Registered: 2009-02-28
Posts: 105
Website

Re: Conky v1.9 Thread

Offline

#3834 2012-11-15 21:47:14

mrpeachy
20% cooler
From: The Everfree Forest
Registered: 2009-11-08
Posts: 3,460

Re: Conky v1.9 Thread

the wind compass color is directly related to the wind speed - green, yellow, orange and red
take a look in the weather icons folder

you could recolor the icons themselves or rename them but you cant control the color via the template itself

Last edited by mrpeachy (2012-11-15 21:48:12)

Offline

#3835 2012-11-15 21:52:11

McLovin
#! CrunchBanger
From: my computer chair
Registered: 2009-02-28
Posts: 105
Website

Re: Conky v1.9 Thread

ok, I was thinking that when I looked at the all the files and the v9000 itself, I'll create my own and if ppl end up liking them, I'll make an archive and upload them to my site for download, we'll see how it goes. Thank you again for the help.

Offline

#3836 2012-11-15 22:58:59

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Conky v1.9 Thread

Offline

#3837 2012-11-16 00:10:58

ansem_of_nexus
#! CrunchBanger
Registered: 2012-09-19
Posts: 234

Re: Conky v1.9 Thread

--insturment panel beta 2.0
require 'cairo'

function conky_main()
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)
cr = cairo_create(cs)
local updates=tonumber(conky_parse('${updates}'))
if updates>5 then
--######################################################################
--Settings
--######################################################################
--default settings######################################################
d_line_width=2
deg_math=(math.pi/180)
max_value=100
d_foreground_width=4
d_font_color_red=.8
d_font_color_green=.8
d_font_color_blue=.8
d_font_color_alpha=1
d_gauge_color_red=1
d_gauge_color_green=0
d_gauge_color_blue=0
d_gauge_color_alpha=1
d_foreground_color_red=.5
d_foreground_color_green=0
d_foreground_color_blue=.1
d_foreground_color_alpha=1
d_inner_arc_color_red=.2
d_inner_arc_color_green=.2
d_inner_arc_color_blue=.2
d_inner_arc_color_alpha=1
d_fill_color_red=.05
d_fill_color_green=.05
d_fill_color_blue=.05
d_fill_color_alpha=.75
d_font="mono"
d_font_size=11
d_font_slant=CAIRO_FONT_SLANT_NORMAL
d_font_face=CAIRO_FONT_WEIGHT_NORMAL
rotate_d=-90
rotate_r=deg_math*rotate_d
--colors################################################################
--panel border
panel_border_color_red=.3
panel_border_color_green=.3
panel_border_color_blue=.3
panel_border_color_alpha=1
--sperators fill
seperator_fill_color_red=.1
seperator_fill_color_green=.1
seperator_fill_color_blue=.1
seperator_fill_color_alpha=.75
--temp background
tempbg_red=.1
tempbg_green=.1
tempbg_blue=.1
tempbg_alpha=1
--conky values##########################################################
cpu_core_1=conky_parse("${cpu cpu0}")
cpu_core_2=conky_parse("${cpu cpu1}")
cpu_core_avg=((cpu_core_1+cpu_core_2)/2)
cpu_temp=conky_parse("${hwmon temp 1}")
mb_temp=conky_parse("${hwmon temp 2}")
case_temp=conky_parse("${hwmon temp 3}")
mem_perc=conky_parse("${memperc}")
mem_used=conky_parse("${mem}")
mem_max=conky_parse("${memmax}")
swap_perc=conky_parse("${swapperc}")
swap_used=conky_parse("${swap}")
swap_max=conky_parse("${swapmax}")
system_perc=conky_parse("${fs_used_perc /}")
system_used=conky_parse("${fs_used /}")
system_size=conky_parse("${fs_size /}")
home_perc=conky_parse("${fs_used_perc /home}")
home_used=conky_parse("${fs_used /home}")
home_size=conky_parse("${fs_size /home}")
down_speed_limited=conky_parse("${if_match 1000 < ${downspeedf}}1001${else}${downspeedf}${endif}")
down_scale_adjuster=conky_parse("${if_match 1000 < ${downspeedf}}1001${else}${if_match 500 < ${downspeedf}}1000${else}${if_match 250 < ${downspeedf}}500${else}${if_match 100 < ${downspeedf}}250${else}100${endif}${endif}${endif}${endif}")
up_speed_limited=conky_parse("${if_match 100 < ${upspeedf}}101${else}${upspeedf}${endif}")
up_scale_adjuster=conky_parse("${if_match 100 < ${upspeedf}}101${else}${if_match 50 < ${upspeedf}}100${else}50${endif}${endif}")
--panel and seperators##################################################
--panel points
--left line
panel_start_x=5
panel_start_y=35
panel_point2_x=5
panel_point2_y=175
--bottom line
panel_point3_x=35
panel_point3_y=205
panel_point4_x=775
panel_point4_y=205
--right line
panel_point5_x=805
panel_point5_y=175
panel_point6_x=805
panel_point6_y=35
--top line
panel_point7_x=775
panel_point7_y=5
panel_point8_x=35
panel_point8_y=5
--seperators points
--seperator 1
seperator1_start_x=55
seperator1_start_y=5
seperator1_point1_x=205
seperator1_point1_y=105
seperator1_end_x=255
seperator1_end_y=202
--seperator 2
seperator2_start_x=755
seperator2_start_y=5
seperator2_point1_x=605
seperator2_point1_y=105
seperator2_end_x=555
seperator2_end_y=202
--cpu###################################################################
cpu_center_x=405
cpu_center_y=135
cpu_radius=120
--cpu background arc
cpu_arc_center_x=cpu_center_x
cpu_arc_center_y=cpu_center_y
cpu_arc_radius=cpu_radius
cpu_arc_start_degree=150
cpu_arc_end_degree=390
cpu_arc_start_angle=cpu_arc_start_degree*deg_math
cpu_arc_end_rad=cpu_arc_end_degree*deg_math
cpu_arc_end_math=cpu_arc_end_rad-cpu_arc_start_angle
cpu_arc_scale=cpu_arc_end_math/max_value
cpu_arc_end_angle_value=cpu_core_avg*cpu_arc_scale
cpu_arc_end_angle=cpu_arc_end_angle_value+cpu_arc_start_angle
--cpu foreground arc
cpu_foreground_arc_center_x=cpu_center_x
cpu_foreground_arc_center_y=cpu_center_y
cpu_foreground_arc_radius=cpu_radius
cpu_foreground_arc_start_degree=150
cpu_foreground_arc_end_degree=390
cpu_foreground_arc_start_angle=cpu_foreground_arc_start_degree*deg_math
cpu_foreground_arc_end_angle=cpu_foreground_arc_end_degree*deg_math
--cpu needle
cpu_needle_line_x=405
cpu_needle_line_y=175
--cpu inner arc
cpu_inner_arc_center_x=405
cpu_inner_arc_center_y=175
cpu_inner_arc_radius=20
cpu_inner_arc_start_degree=0
cpu_inner_arc_end_degree=360
cpu_inner_arc_start_rad=cpu_inner_arc_start_degree*deg_math
cpu_inner_arc_end_rad=cpu_inner_arc_end_degree*deg_math
--temp##################################################################
temp_radius=cpu_radius+11
temp_max=90
--temp backgound
tempbg_width=d_foreground_width+d_foreground_width
tempbg_br_width=tempbg_width+d_line_width
--backgound 1
tempbg1_start_deg=150
tempbg1_end_deg=240
tempbg1_start=tempbg1_start_deg*deg_math
tempbg1_end=tempbg1_end_deg*deg_math
--background 2
tempbg2_start_deg=300
tempbg2_end_deg=30
tempbg2_start=tempbg2_start_deg*deg_math
tempbg2_end=tempbg2_end_deg*deg_math
--temp1
temp1_start_deg=150
temp1_end_deg=190
temp1_start=temp1_start_deg*deg_math
temp1_end_rad=temp1_end_deg*deg_math
temp1_end_math=temp1_end_rad-temp1_start
temp1_scale=temp1_end_math/temp_max
temp1_end_math2=cpu_temp*temp1_scale
temp1_end=temp1_end_math2+temp1_start
--temp2
temp2_start_deg=240
temp2_end_deg=200
temp2_start=temp2_start_deg*deg_math
temp2_end_rad=temp2_end_deg*deg_math
temp2_end=temp2_end_rad
--temp3
temp3_start_deg=300
temp3_end_deg=340
temp3_start=temp3_start_deg*deg_math
temp3_end_rad=temp3_end_deg*deg_math
temp3_end=temp3_end_rad
--temp4
temp4_start_deg=30
temp4_end_deg=-10
temp4_start=temp4_start_deg*deg_math
temp4_end_rad=temp4_end_deg*deg_math
temp4_end_math=temp4_end_rad-temp4_start
temp4_scale=temp4_end_math/temp_max
temp4_end_math2=mb_temp*temp4_scale
temp4_end=temp4_end_math2+temp4_start
--ram###################################################################
--mem background arc
mem_arc_center_x=215
mem_arc_center_y=60
mem_arc_radius=40
mem_arc_start_degree=-270
mem_arc_end_degree=-505
mem_arc_start_angle=mem_arc_start_degree*deg_math
mem_arc_end_rad=mem_arc_end_degree*deg_math
mem_arc_scale_math=mem_arc_end_rad-mem_arc_start_angle
mem_arc_scale=mem_arc_scale_math/max_value
mem_arc_end_angle_math=mem_perc*mem_arc_scale
mem_arc_end_angle=mem_arc_end_angle_math+mem_arc_start_angle
--mem foreground arc
mem_foreground_arc_center_x=mem_arc_center_x
mem_foreground_arc_center_y=mem_arc_center_y
mem_foreground_arc_radius=mem_arc_radius
mem_foreground_arc_start_degree=mem_arc_start_degree
mem_foreground_arc_end_degree=mem_arc_end_degree
mem_foreground_arc_start_angle=mem_foreground_arc_start_degree*deg_math
mem_foreground_arc_end_angle=mem_foreground_arc_end_degree*deg_math
--mem needle
mem_needle_line_x=mem_inner_arc_center_x
mem_needle_line_y=mem_inner_arc_center_y
--mem inner arc
mem_inner_arc_center_x=mem_arc_center_x
mem_inner_arc_center_y=mem_arc_center_y
mem_inner_arc_radius=8
mem_inner_arc_start_degree=0
mem_inner_arc_end_degree=360
mem_inner_arc_start_rad=mem_inner_arc_start_degree*deg_math
mem_inner_arc_end_rad=mem_inner_arc_end_degree*deg_math
--swap##################################################################
--swap background arc
swap_arc_center_x=595
swap_arc_center_y=60
swap_arc_radius=40
swap_arc_start_degree=90
swap_arc_end_degree=325
swap_arc_start_angle=swap_arc_start_degree*deg_math
swap_arc_end_rad=swap_arc_end_degree*deg_math
swap_arc_scale_math=swap_arc_end_rad-swap_arc_start_angle
swap_arc_scale=swap_arc_scale_math/max_value
swap_arc_end_angle_math=swap_perc*swap_arc_scale
swap_arc_end_angle_math2=swap_arc_end_angle_math+swap_arc_start_angle
swap_arc_end_angle=swap_arc_end_angle_math2
--swap foreground arc
swap_foreground_arc_center_x=swap_arc_center_x
swap_foreground_arc_center_y=swap_arc_center_y
swap_foreground_arc_radius=swap_arc_radius
swap_foreground_arc_start_degree=swap_arc_start_degree
swap_foreground_arc_end_degree=swap_arc_end_degree
swap_foreground_arc_start_angle=swap_foreground_arc_start_degree*deg_math
swap_foreground_arc_end_angle=swap_foreground_arc_end_degree*deg_math
--swap needle
swap_needle_line_x=swap_inner_arc_center_x
swap_needle_line_y=swap_inner_arc_center_y
--swap inner arc
swap_inner_arc_center_x=swap_arc_center_x
swap_inner_arc_center_y=swap_arc_center_y
swap_inner_arc_radius=8
swap_inner_arc_start_degree=0
swap_inner_arc_end_degree=360
swap_inner_arc_start_rad=swap_inner_arc_start_degree*deg_math
swap_inner_arc_end_rad=swap_inner_arc_end_degree*deg_math
--file system###########################################################
file_system_center_x=745
file_system_center_y=105
file_system_radius=50
file_system_inner_radius=8
file_system_inner_arc_start_degree=0
file_system_inner_arc_start_angle=file_system_inner_arc_start_degree*deg_math
file_system_inner_arc_end_degree=360
file_system_inner_arc_end_angle=file_system_inner_arc_end_degree*deg_math
--system partition
system_arc_start_degree=100
system_arc_start_angle=system_arc_start_degree*deg_math
system_arc_end_degree=260
system_arc_end_rad=system_arc_end_degree*deg_math
system_arc_difference=system_arc_end_rad-system_arc_start_angle
system_arc_end_scale=system_arc_difference/max_value
system_arc_end_angle_math=system_perc*system_arc_end_scale
system_arc_end_angle=system_arc_end_angle_math+system_arc_start_angle
--home partition
home_arc_start_degree=-280
home_arc_start_angle=home_arc_start_degree*deg_math
home_arc_end_degree=-440
home_arc_end_rad=home_arc_end_degree*deg_math
home_arc_scale_math=home_arc_end_rad-home_arc_start_angle
home_arc_scale=home_arc_scale_math/max_value
home_arc_end_angle_math=home_perc*home_arc_scale
home_arc_end_angle=home_arc_end_angle_math+home_arc_start_angle
--network###############################################################
network_center_x=65
network_center_y=105
network_radius=50
network_inner_radius=8
network_inner_arc_start_degree=0
network_inner_arc_start_angle=network_inner_arc_start_degree*deg_math
network_inner_arc_end_degree=360
network_inner_arc_end_angle=network_inner_arc_end_degree*deg_math
--down speed
down_max_value=down_scale_adjuster
down_arc_start_degree=100
down_arc_start_angle=down_arc_start_degree*deg_math
down_arc_end_degree=260
down_arc_end_rad=down_arc_end_degree*deg_math
down_arc_difference=down_arc_end_rad-down_arc_start_angle
down_arc_end_scale=down_arc_difference/down_scale_adjuster
down_arc_end_angle_math=down_speed_limited*down_arc_end_scale
down_arc_end_angle=down_arc_end_angle_math+down_arc_start_angle
--up speed
up_max_value=up_scale_adjuster
up_arc_start_degree=-280
up_arc_start_angle=up_arc_start_degree*deg_math
up_arc_end_degree=-440
up_arc_end_rad=up_arc_end_degree*deg_math
up_arc_scale_math=up_arc_end_rad-up_arc_start_angle
up_arc_scale=up_arc_scale_math/up_scale_adjuster
up_arc_end_angle_math=up_speed_limited*up_arc_scale
up_arc_end_angle=up_arc_end_angle_math+up_arc_start_angle
--labels################################################################
--font settings
cpu_avg_size=19
cpu_value_size=16
network_scale_size=10
--text
--cpu
cpu_label="cpu"
cpu_avg_label="Average"
cpu_core_1_label="Core 1: "
cpu_core_2_label="Core 2: "
cpu_avg=""..cpu_core_avg.."%"
cpu_value1=""..cpu_core_1.."%"
cpu_value2=""..cpu_core_2.."%"
cpu_scale_low="0"
cpu_scale_high="100"
--temp1
temp1_value=""..cpu_temp.."C"
--temp4
temp4_label="M/B"
temp4_value=""..mb_temp.."C"
--mem text
mem_label="Ram"
mem_perc_text=""..mem_perc.."%"
--swap text
swap_label="Swap"
swap_perc_text=""..swap_perc.."%"
--system
system_label="System"
system_label2="System: "..system_used.." / "..system_size..""
--home
home_label="Home"
home_label2="Home: "..home_used.." / "..home_size..""
--down
down_label="Down"
down_speed_value=conky_parse("${downspeedf}")
down_speed_text=""..down_speed_value.."KiB/s"
down_label2="Down: "..down_speed_text..""
down_scale=down_scale_adjuster
--up
up_label="Up"
up_speed_value=conky_parse("${upspeedf}")
up_speed_text=""..up_speed_value.."KiB/s"
up_label2="Up: "..up_speed_text..""
up_scale=up_scale_adjuster
--x and y values
--cpu
cpu_label_x=393
cpu_label_y=150
cpu_avg_label_x=365
cpu_avg_label_y=55
cpu_avg_x=cpu_avg_label_x+20
cpu_avg_y=cpu_avg_label_y+20
cpu_value1_x=355
cpu_value1_y=105
cpu_value2_x=cpu_value1_x
cpu_value2_y=cpu_value1_y+15
cpu_scale_low_x=305
cpu_scale_low_y=180
cpu_scale_high_x=605
cpu_scale_high_y=180
--temp1
temp1_label_x=240
temp1_label_y=135
temp1_value_x=temp1_label_x
temp1_value_y=temp1_label_y+15
--temp4
temp4_label_x=548
temp4_label_y=135
temp4_value_x=temp4_label_x
temp4_value_y=temp4_label_y+15
--mem
mem_label_x=182
mem_label_y=62
mem_perc_text_x=227
mem_perc_text_y=63
mem_used_x=195
mem_used_y=85
mem_max_x=130
mem_max_y=30
--swap
swap_label_x=605
swap_label_y=62
swap_perc_text_x=563
swap_perc_text_y=63
swap_used_x=575
swap_used_y=85
swap_max_x=630
swap_max_y=30
--system
system_label_x=720
system_label_y=125
system_label2_x=600
system_label2_y=175
--home
home_label_x=775
home_label_y=120
home_label2_x=system_label2_x
home_label2_y=system_label2_y+12
--down
down_label_x=40
down_label_y=117
down_label2_x=panel_point3_x
down_label2_y=panel_point2_y
down_scale_x=35
down_scale_y=50
--up
up_label_x=95
up_label_y=110
up_label2_x=down_label2_x
up_label2_y=down_label2_y+12
up_scale_x=72
up_scale_y=50
--######################################################################
-- Main Body Backgound and Labels Section
--######################################################################
-- panel fill
cairo_set_line_width(cr,d_line_width)
cairo_move_to(cr,panel_start_x,panel_start_y)
cairo_line_to(cr,panel_point2_x,panel_point2_y)
cairo_line_to(cr,panel_point3_x,panel_point3_y)
cairo_line_to(cr,panel_point4_x,panel_point4_y)
cairo_line_to(cr,panel_point5_x,panel_point5_y)
cairo_line_to(cr,panel_point6_x,panel_point6_y)
cairo_line_to(cr,panel_point7_x,panel_point7_y)
cairo_line_to(cr,panel_point8_x,panel_point8_y)
cairo_close_path(cr)
cairo_set_source_rgba(cr,d_fill_color_red,d_fill_color_green,d_fill_color_blue,d_fill_color_alpha)
cairo_fill_preserve(cr)
cairo_set_source_rgba(cr,panel_border_color_red,panel_border_color_green,panel_border_color_blue,panel_border_color_alpha)
cairo_stroke(cr)
--seperator 1
cairo_set_line_width(cr,d_line_width)
cairo_move_to(cr,seperator1_start_x,seperator1_start_y)
cairo_line_to(cr,seperator1_point1_x,seperator1_point1_y)
cairo_line_to(cr,seperator1_end_x,seperator1_end_y)
cairo_close_path(cr)
cairo_set_source_rgba(cr,seperator_fill_color_red,seperator_fill_color_green,seperator_fill_color_blue,seperator_fill_color_alpha)
cairo_fill_preserve(cr)
cairo_set_source_rgba(cr,d_foreground_color_red,d_foreground_color_green,d_foreground_color_blue,d_foreground_color_alpha)
cairo_stroke(cr)
--seperator 2
cairo_set_line_width(cr,d_line_width)
cairo_move_to(cr,seperator2_start_x,seperator2_start_y)
cairo_line_to(cr,seperator2_point1_x,seperator2_point1_y)
cairo_line_to(cr,seperator2_end_x,seperator2_end_y)
cairo_close_path(cr)
cairo_set_source_rgba(cr,seperator_fill_color_red,seperator_fill_color_green,seperator_fill_color_blue,seperator_fill_color_alpha)
cairo_fill_preserve(cr)
cairo_set_source_rgba(cr,d_foreground_color_red,d_foreground_color_green,d_foreground_color_blue,d_foreground_color_alpha)
cairo_stroke(cr)
--panel border
cairo_set_line_width(cr,d_line_width)
cairo_move_to(cr,panel_start_x,panel_start_y)
cairo_line_to(cr,panel_point2_x,panel_point2_y)
cairo_line_to(cr,panel_point3_x,panel_point3_y)
cairo_line_to(cr,panel_point4_x,panel_point4_y)
cairo_line_to(cr,panel_point5_x,panel_point5_y)
cairo_line_to(cr,panel_point6_x,panel_point6_y)
cairo_line_to(cr,panel_point7_x,panel_point7_y)
cairo_line_to(cr,panel_point8_x,panel_point8_y)
cairo_close_path(cr)
cairo_set_source_rgba(cr,panel_border_color_red,panel_border_color_green,panel_border_color_blue,panel_border_color_alpha)
cairo_stroke(cr)
--labels################################################################
--cpu label
cairo_select_font_face (cr,d_font,d_font_slant,d_font_face);
cairo_set_font_size (cr,d_font_size)
cairo_set_source_rgba (cr,d_font_color_red,d_font_color_green,d_font_color_blue,d_font_color_alpha)
cairo_move_to (cr,cpu_label_x,cpu_label_y)
cairo_show_text (cr,cpu_label)
cairo_stroke (cr)
--cpu average label
cairo_select_font_face (cr,d_font,d_font_slant,d_font_face);
cairo_set_font_size (cr,cpu_avg_size)
cairo_set_source_rgba (cr,d_font_color_red,d_font_color_green,d_font_color_blue,d_font_color_alpha)
cairo_move_to (cr,cpu_avg_label_x,cpu_avg_label_y)
cairo_show_text (cr,cpu_avg_label)
cairo_stroke (cr)
--cpu average
cairo_select_font_face (cr,d_font,d_font_slant,d_font_face);
cairo_set_font_size (cr,cpu_avg_size)
cairo_set_source_rgba (cr,d_font_color_red,d_font_color_green,d_font_color_blue,d_font_color_alpha)
cairo_move_to (cr,cpu_avg_x,cpu_avg_y)
cairo_show_text (cr,cpu_avg)
cairo_stroke (cr)
--cpu core 1
cairo_select_font_face (cr,d_font,d_font_slant,d_font_face);
cairo_set_font_size (cr,cpu_value_size)
cairo_set_source_rgba (cr,d_font_color_red,d_font_color_green,d_font_color_blue,d_font_color_alpha)
cairo_move_to (cr,cpu_value1_x,cpu_value1_y)
cairo_show_text (cr,cpu_core_1_label)
cairo_show_text (cr,cpu_value1)
cairo_stroke (cr)
--cpu core 2
cairo_select_font_face (cr,d_font,d_font_slant,d_font_face);
cairo_set_font_size (cr,cpu_value_size)
cairo_set_source_rgba (cr,d_font_color_red,d_font_color_green,d_font_color_blue,d_font_color_alpha)
cairo_move_to (cr,cpu_value2_x,cpu_value2_y)
cairo_show_text (cr,cpu_core_2_label)
cairo_show_text (cr,cpu_value2)
cairo_stroke (cr)
--temp 1 label
cairo_select_font_face (cr,d_font,d_font_slant,d_font_face);
cairo_set_font_size (cr,d_font_size)
cairo_set_source_rgba (cr,d_font_color_red,d_font_color_green,d_font_color_blue,d_font_color_alpha)
cairo_move_to (cr,temp1_label_x,temp1_label_y)
cairo_show_text (cr,cpu_label)
cairo_stroke (cr)
--temp 1 value
cairo_select_font_face (cr,d_font,d_font_slant,d_font_face);
cairo_set_font_size (cr,d_font_size)
cairo_set_source_rgba (cr,d_font_color_red,d_font_color_green,d_font_color_blue,d_font_color_alpha)
cairo_move_to (cr,temp1_value_x,temp1_value_y)
cairo_show_text (cr,temp1_value)
cairo_stroke (cr)
--temp 4 label
cairo_select_font_face (cr,d_font,d_font_slant,d_font_face);
cairo_set_font_size (cr,d_font_size)
cairo_set_source_rgba (cr,d_font_color_red,d_font_color_green,d_font_color_blue,d_font_color_alpha)
cairo_move_to (cr,temp4_label_x,temp4_label_y)
cairo_show_text (cr,temp4_label)
cairo_stroke (cr)
--temp 4 value
cairo_select_font_face (cr,d_font,d_font_slant,d_font_face);
cairo_set_font_size (cr,d_font_size)
cairo_set_source_rgba (cr,d_font_color_red,d_font_color_green,d_font_color_blue,d_font_color_alpha)
cairo_move_to (cr,temp4_value_x,temp4_value_y)
cairo_show_text (cr,temp4_value)
cairo_stroke (cr)
--mem_label
cairo_select_font_face (cr,d_font,d_font_slant,d_font_face);
cairo_set_font_size (cr,d_font_size)
cairo_set_source_rgba (cr,d_font_color_red,d_font_color_green,d_font_color_blue,d_font_color_alpha)
cairo_move_to (cr,mem_label_x,mem_label_y)
cairo_show_text (cr,mem_label)
cairo_stroke (cr)
--mem_perc
cairo_select_font_face (cr,d_font,d_font_slant,d_font_face);
cairo_set_font_size (cr,d_font_size)
cairo_set_source_rgba (cr,d_font_color_red,d_font_color_green,d_font_color_blue,d_font_color_alpha)
cairo_move_to (cr,mem_perc_text_x,mem_perc_text_y)
cairo_show_text (cr,mem_perc_text)
cairo_stroke (cr)
--mem_used
cairo_select_font_face (cr,d_font,d_font_slant,d_font_face);
cairo_set_font_size (cr,d_font_size)
cairo_set_source_rgba (cr,d_font_color_red,d_font_color_green,d_font_color_blue,d_font_color_alpha)
cairo_move_to (cr,mem_used_x,mem_used_y)
cairo_show_text (cr,mem_used)
cairo_stroke (cr)
--mem_max
cairo_select_font_face (cr,d_font,d_font_slant,d_font_face);
cairo_set_font_size (cr,d_font_size)
cairo_set_source_rgba (cr,d_font_color_red,d_font_color_green,d_font_color_blue,d_font_color_alpha)
cairo_move_to (cr,mem_max_x,mem_max_y)
cairo_show_text (cr,mem_max)
cairo_stroke (cr)
--swap_label
cairo_select_font_face (cr,d_font,d_font_slant,d_font_face);
cairo_set_font_size (cr,d_font_size)
cairo_set_source_rgba (cr,d_font_color_red,d_font_color_green,d_font_color_blue,d_font_color_alpha)
cairo_move_to (cr,swap_label_x,swap_label_y)
cairo_show_text (cr,swap_label)
cairo_stroke (cr)
--swap_perc
cairo_select_font_face (cr,d_font,d_font_slant,d_font_face);
cairo_set_font_size (cr,d_font_size)
cairo_set_source_rgba (cr,d_font_color_red,d_font_color_green,d_font_color_blue,d_font_color_alpha)
cairo_move_to (cr,swap_perc_text_x,swap_perc_text_y)
cairo_show_text (cr,swap_perc_text)
cairo_stroke (cr)
--swap_used
cairo_select_font_face (cr,d_font,d_font_slant,d_font_face);
cairo_set_font_size (cr,d_font_size)
cairo_set_source_rgba (cr,d_font_color_red,d_font_color_green,d_font_color_blue,d_font_color_alpha)
cairo_move_to (cr,swap_used_x,swap_used_y)
cairo_show_text (cr,swap_used)
cairo_stroke (cr)
--swap_max
cairo_select_font_face (cr,d_font,d_font_slant,d_font_face);
cairo_set_font_size (cr,d_font_size)
cairo_set_source_rgba (cr,d_font_color_red,d_font_color_green,d_font_color_blue,d_font_color_alpha)
cairo_move_to (cr,swap_max_x,swap_max_y)
cairo_show_text (cr,swap_max)
cairo_stroke (cr)
--system label
cairo_select_font_face (cr,d_font,d_font_slant,d_font_face);
cairo_set_font_size (cr,d_font_size)
cairo_set_source_rgba (cr,d_font_color_red,d_font_color_green,d_font_color_blue,d_font_color_alpha)
cairo_save(cr)
cairo_translate (cr,system_label_x,system_label_y)
cairo_rotate(cr,rotate_r)
cairo_show_text (cr,system_label)
cairo_stroke (cr)
cairo_restore(cr)
--system label 2
cairo_select_font_face (cr,d_font,d_font_slant,d_font_face);
cairo_set_font_size (cr,d_font_size)
cairo_set_source_rgba (cr,d_font_color_red,d_font_color_green,d_font_color_blue,d_font_color_alpha)
cairo_move_to (cr,system_label2_x,system_label2_y)
cairo_show_text (cr,system_label2)
cairo_stroke (cr)
--home label
cairo_select_font_face (cr,d_font,d_font_slant,d_font_face);
cairo_set_font_size (cr,d_font_size)
cairo_set_source_rgba (cr,d_font_color_red,d_font_color_green,d_font_color_blue,d_font_color_alpha)
cairo_save(cr)
cairo_translate (cr,home_label_x,home_label_y)
cairo_rotate(cr,rotate_r)
cairo_show_text (cr,home_label)
cairo_stroke (cr)
cairo_restore(cr)
--home label 2
cairo_select_font_face (cr,d_font,d_font_slant,d_font_face);
cairo_set_font_size (cr,d_font_size)
cairo_set_source_rgba (cr,d_font_color_red,d_font_color_green,d_font_color_blue,d_font_color_alpha)
cairo_move_to (cr,home_label2_x,home_label2_y)
cairo_show_text (cr,home_label2)
cairo_stroke (cr)
--down label
cairo_select_font_face (cr,d_font,d_font_slant,d_font_face);
cairo_set_font_size (cr,d_font_size)
cairo_set_source_rgba (cr,d_font_color_red,d_font_color_green,d_font_color_blue,d_font_color_alpha)
cairo_save(cr)
cairo_translate (cr,down_label_x,down_label_y)
cairo_rotate(cr,rotate_r)
cairo_show_text (cr,down_label)
cairo_stroke (cr)
cairo_restore(cr)
--down label 2
cairo_select_font_face (cr,d_font,d_font_slant,d_font_face);
cairo_set_font_size (cr,d_font_size)
cairo_set_source_rgba (cr,d_font_color_red,d_font_color_green,d_font_color_blue,d_font_color_alpha)
cairo_move_to (cr,down_label2_x,down_label2_y)
cairo_show_text (cr,down_label2)
cairo_stroke (cr)
--down scale
cairo_select_font_face (cr,d_font,d_font_slant,d_font_face);
cairo_set_font_size (cr,network_scale_size)
cairo_set_source_rgba (cr,d_font_color_red,d_font_color_green,d_font_color_blue,d_font_color_alpha)
cairo_move_to (cr,down_scale_x,down_scale_y)
cairo_show_text (cr,down_scale)
cairo_stroke (cr)
--up label
cairo_select_font_face (cr,d_font,d_font_slant,d_font_face);
cairo_set_font_size (cr,d_font_size)
cairo_set_source_rgba (cr,d_font_color_red,d_font_color_green,d_font_color_blue,d_font_color_alpha)
cairo_save(cr)
cairo_translate (cr,up_label_x,up_label_y)
cairo_rotate(cr,rotate_r)
cairo_show_text (cr,up_label)
cairo_stroke (cr)
cairo_restore(cr)
--up label 2
cairo_select_font_face (cr,d_font,d_font_slant,d_font_face);
cairo_set_font_size (cr,d_font_size)
cairo_set_source_rgba (cr,d_font_color_red,d_font_color_green,d_font_color_blue,d_font_color_alpha)
cairo_move_to (cr,up_label2_x,up_label2_y)
cairo_show_text (cr,up_label2)
cairo_stroke (cr)
--up scale
cairo_select_font_face (cr,d_font,d_font_slant,d_font_face);
cairo_set_font_size (cr,network_scale_size)
cairo_set_source_rgba (cr,d_font_color_red,d_font_color_green,d_font_color_blue,d_font_color_alpha)
cairo_move_to (cr,up_scale_x,up_scale_y)
cairo_show_text (cr,up_scale)
cairo_stroke (cr)
--######################################################################
-- Main Body Gauge Section
--######################################################################
--cpu###################################################################
--cpu arc
cairo_set_line_width(cr,d_line_width)
cairo_set_source_rgba(cr,d_gauge_color_red,d_gauge_color_green,d_gauge_color_blue,d_gauge_color_alpha)
cairo_arc(cr,cpu_arc_center_x,cpu_arc_center_y,cpu_arc_radius,cpu_arc_start_angle,cpu_arc_end_angle)
--cpu needle
cairo_line_to(cr,cpu_needle_line_x,cpu_needle_line_y)
cairo_stroke(cr)
--cpu_foreground arc
cairo_set_line_width(cr,d_foreground_width)
cairo_set_line_cap(cr,CAIRO_LINE_CAP_ROUND)
cairo_set_source_rgba(cr,d_foreground_color_red,d_foreground_color_green,d_foreground_color_blue,d_foreground_color_alpha)
cairo_arc(cr,cpu_foreground_arc_center_x,cpu_foreground_arc_center_y,cpu_foreground_arc_radius,cpu_foreground_arc_start_angle,cpu_foreground_arc_end_angle)
cairo_stroke(cr)
--cpu inner arc
cairo_set_line_width(cr,d_foreground_width)
cairo_set_source_rgba(cr,d_inner_arc_color_red,d_inner_arc_color_green,d_inner_arc_color_blue,d_inner_arc_color_alpha)
cairo_arc(cr,cpu_inner_arc_center_x,cpu_inner_arc_center_y,cpu_inner_arc_radius,cpu_inner_arc_start_rad,cpu_inner_arc_end_rad)
cairo_stroke(cr)
--temp##################################################################
--backgound1
cairo_set_line_width(cr,tempbg_br_width)
cairo_set_line_cap(cr,CAIRO_LINE_CAP_ROUND)
cairo_set_source_rgba(cr,d_foreground_color_red,d_foreground_color_green,d_foreground_color_blue,d_foreground_color_alpha)
cairo_arc(cr,cpu_center_x,cpu_center_y,temp_radius,tempbg1_start,tempbg1_end)
cairo_stroke(cr)
--temp 1 background
cairo_set_line_width(cr,tempbg_width)
cairo_set_line_cap(cr,CAIRO_LINE_CAP_ROUND)
cairo_set_source_rgba(cr,tempbg_red,tempbg_green,tempbg_blue,tempbg_alpha)
cairo_arc(cr,cpu_center_x,cpu_center_y,temp_radius,temp1_start,temp1_end_rad)
cairo_stroke(cr)
--temp 2 background
cairo_set_line_width(cr,tempbg_width)
cairo_set_line_cap(cr,CAIRO_LINE_CAP_ROUND)
cairo_set_source_rgba(cr,tempbg_red,tempbg_green,tempbg_blue,tempbg_alpha)
cairo_arc_negative(cr,cpu_center_x,cpu_center_y,temp_radius,temp2_start,temp2_end_rad)
cairo_stroke(cr)
--background2
cairo_set_line_width(cr,tempbg_br_width)
cairo_set_line_cap(cr,CAIRO_LINE_CAP_ROUND)
cairo_set_source_rgba(cr,d_foreground_color_red,d_foreground_color_green,d_foreground_color_blue,d_foreground_color_alpha)
cairo_arc(cr,cpu_center_x,cpu_center_y,temp_radius,tempbg2_start,tempbg2_end)
cairo_stroke(cr)
--temp 3 background
cairo_set_line_width(cr,tempbg_width)
cairo_set_line_cap(cr,CAIRO_LINE_CAP_ROUND)
cairo_set_source_rgba(cr,tempbg_red,tempbg_green,tempbg_blue,tempbg_alpha)
cairo_arc(cr,cpu_center_x,cpu_center_y,temp_radius,temp3_start,temp3_end_rad)
cairo_stroke(cr)
--temp 4 background
cairo_set_line_width(cr,tempbg_width)
cairo_set_line_cap(cr,CAIRO_LINE_CAP_ROUND)
cairo_set_source_rgba(cr,tempbg_red,tempbg_green,tempbg_blue,tempbg_alpha)
cairo_arc_negative(cr,cpu_center_x,cpu_center_y,temp_radius,temp4_start,temp4_end_rad)
cairo_stroke(cr)
--temp 1
cairo_set_line_width(cr,d_foreground_width)
cairo_set_line_cap(cr,CAIRO_LINE_CAP_ROUND)
cairo_set_source_rgba(cr,d_foreground_color_red,d_foreground_color_green,d_foreground_color_blue,d_foreground_color_alpha)
cairo_arc(cr,cpu_center_x,cpu_center_y,temp_radius,temp1_start,temp1_end)
cairo_stroke(cr)
--temp 2
cairo_set_line_width(cr,d_foreground_width)
cairo_set_line_cap(cr,CAIRO_LINE_CAP_ROUND)
cairo_set_source_rgba(cr,d_foreground_color_red,d_foreground_color_green,d_foreground_color_blue,d_foreground_color_alpha)
cairo_arc_negative(cr,cpu_center_x,cpu_center_y,temp_radius,temp2_start,temp2_end)
cairo_stroke(cr)
--temp 3
cairo_set_line_width(cr,d_foreground_width)
cairo_set_line_cap(cr,CAIRO_LINE_CAP_ROUND)
cairo_set_source_rgba(cr,d_foreground_color_red,d_foreground_color_green,d_foreground_color_blue,d_foreground_color_alpha)
cairo_arc(cr,cpu_center_x,cpu_center_y,temp_radius,temp3_start,temp3_end)
cairo_stroke(cr)
--temp 4
cairo_set_line_width(cr,d_foreground_width)
cairo_set_line_cap(cr,CAIRO_LINE_CAP_ROUND)
cairo_set_source_rgba(cr,d_foreground_color_red,d_foreground_color_green,d_foreground_color_blue,d_foreground_color_alpha)
cairo_arc_negative(cr,cpu_center_x,cpu_center_y,temp_radius,temp4_start,temp4_end)
cairo_stroke(cr)
--mem###################################################################
--mem arc
cairo_set_line_width(cr,d_line_width)
cairo_set_source_rgba(cr,d_gauge_color_red,d_gauge_color_green,d_gauge_color_blue,d_gauge_color_alpha)
cairo_arc_negative(cr,mem_arc_center_x,mem_arc_center_y,mem_arc_radius,mem_arc_start_angle,mem_arc_end_angle)
--mem needle
cairo_line_to(cr,mem_needle_line_x,mem_needle_line_y)
cairo_stroke(cr)
--mem_foreground arc
cairo_set_line_width(cr,d_foreground_width)
cairo_set_line_cap(cr,CAIRO_LINE_CAP_ROUND)
cairo_set_source_rgba(cr,d_foreground_color_red,d_foreground_color_green,d_foreground_color_blue,d_foreground_color_alpha)
cairo_arc_negative(cr,mem_foreground_arc_center_x,mem_foreground_arc_center_y,mem_foreground_arc_radius,mem_foreground_arc_start_angle,mem_foreground_arc_end_angle)
cairo_stroke(cr)
--mem inner arc
cairo_set_line_width(cr,d_foreground_width)
cairo_set_source_rgba(cr,d_inner_arc_color_red,d_inner_arc_color_green,d_inner_arc_color_blue,d_inner_arc_color_alpha)
cairo_arc(cr,mem_inner_arc_center_x,mem_inner_arc_center_y,mem_inner_arc_radius,mem_inner_arc_start_rad,mem_inner_arc_end_rad)
cairo_stroke(cr)
--swap##################################################################
--swap arc
cairo_set_line_width(cr,d_line_width)
cairo_set_source_rgba(cr,d_gauge_color_red,d_gauge_color_green,d_gauge_color_blue,d_gauge_color_alpha)
cairo_arc(cr,swap_arc_center_x,swap_arc_center_y,swap_arc_radius,swap_arc_start_angle,swap_arc_end_angle)
--swap needle
cairo_line_to(cr,swap_needle_line_x,swap_needle_line_y)
cairo_stroke(cr)
--swap_foreground arc
cairo_set_line_width(cr,d_foreground_width)
cairo_set_line_cap(cr,CAIRO_LINE_CAP_ROUND)
cairo_set_source_rgba(cr,d_foreground_color_red,d_foreground_color_green,d_foreground_color_blue,d_foreground_color_alpha)
cairo_arc(cr,swap_foreground_arc_center_x,swap_foreground_arc_center_y,swap_foreground_arc_radius,swap_foreground_arc_start_angle,swap_foreground_arc_end_angle)
cairo_stroke(cr)
--swap inner arc
cairo_set_line_width(cr,d_foreground_width)
cairo_set_source_rgba(cr,d_inner_arc_color_red,d_inner_arc_color_green,d_inner_arc_color_blue,d_inner_arc_color_alpha)
cairo_arc(cr,swap_inner_arc_center_x,swap_inner_arc_center_y,swap_inner_arc_radius,swap_inner_arc_start_rad,swap_inner_arc_end_rad)
cairo_stroke(cr)
--file system###########################################################
--system indicator arc
cairo_set_line_width(cr,d_line_width)
cairo_set_source_rgba(cr,d_gauge_color_red,d_gauge_color_green,d_gauge_color_blue,d_gauge_color_alpha)
cairo_arc(cr,file_system_center_x,file_system_center_y,file_system_radius,system_arc_start_angle,system_arc_end_angle)
--system needle
cairo_line_to(cr,file_system_center_x,file_system_center_y)
cairo_stroke(cr)
--system foreground arc
cairo_set_line_width(cr,d_foreground_width)
cairo_set_source_rgba(cr,d_foreground_color_red,d_foreground_color_green,d_foreground_color_blue,d_foreground_color_alpha)
cairo_arc(cr,file_system_center_x,file_system_center_y,file_system_radius,system_arc_start_angle,system_arc_end_rad)
cairo_stroke(cr)
--home indicator arc
cairo_set_line_width(cr,d_line_width)
cairo_set_source_rgba(cr,d_gauge_color_red,d_gauge_color_green,d_gauge_color_blue,d_gauge_color_alpha)
cairo_arc_negative(cr,file_system_center_x,file_system_center_y,file_system_radius,home_arc_start_angle,home_arc_end_angle)
--home needle
cairo_line_to(cr,file_system_center_x,file_system_center_y)
cairo_stroke(cr)
--home foreground arc
cairo_set_line_width(cr,d_foreground_width)
cairo_set_source_rgba(cr,d_foreground_color_red,d_foreground_color_green,d_foreground_color_blue,d_foreground_color_alpha)
cairo_arc_negative(cr,file_system_center_x,file_system_center_y,file_system_radius,home_arc_start_angle,home_arc_end_rad)
cairo_stroke(cr)
--inner arc
cairo_set_line_width(cr,d_foreground_width)
cairo_set_source_rgba(cr,d_inner_arc_color_red,d_inner_arc_color_green,d_inner_arc_color_blue,d_inner_arc_color_alpha)
cairo_arc(cr,file_system_center_x,file_system_center_y,file_system_inner_radius,file_system_inner_arc_start_angle,file_system_inner_arc_end_angle)
cairo_stroke(cr)
--network###############################################################
--down indicator arc
cairo_set_line_width(cr,d_line_width)
cairo_set_source_rgba(cr,d_gauge_color_red,d_gauge_color_green,d_gauge_color_blue,d_gauge_color_alpha)
cairo_arc(cr,network_center_x,network_center_y,network_radius,down_arc_start_angle,down_arc_end_angle)
--down needle
cairo_line_to(cr,network_center_x,network_center_y)
cairo_stroke(cr)
--down foreground arc
cairo_set_line_width(cr,d_foreground_width)
cairo_set_source_rgba(cr,d_foreground_color_red,d_foreground_color_green,d_foreground_color_blue,d_foreground_color_alpha)
cairo_arc(cr,network_center_x,network_center_y,network_radius,down_arc_start_angle,down_arc_end_rad)
cairo_stroke(cr)
--up indicator arc
cairo_set_line_width(cr,d_line_width)
cairo_set_source_rgba(cr,d_gauge_color_red,d_gauge_color_green,d_gauge_color_blue,d_gauge_color_alpha)
cairo_arc_negative(cr,network_center_x,network_center_y,network_radius,up_arc_start_angle,up_arc_end_angle)
--up needle
cairo_line_to(cr,network_center_x,network_center_y)
cairo_stroke(cr)
--up foreground arc
cairo_set_line_width(cr,d_foreground_width)
cairo_set_source_rgba(cr,d_foreground_color_red,d_foreground_color_green,d_foreground_color_blue,d_foreground_color_alpha)
cairo_arc_negative(cr,network_center_x,network_center_y,network_radius,up_arc_start_angle,up_arc_end_rad)
cairo_stroke(cr)
--inner arc
cairo_set_line_width(cr,d_foreground_width)
cairo_set_source_rgba(cr,d_inner_arc_color_red,d_inner_arc_color_green,d_inner_arc_color_blue,d_inner_arc_color_alpha)
cairo_arc(cr,network_center_x,network_center_y,network_inner_radius,network_inner_arc_start_angle,network_inner_arc_end_angle)
cairo_stroke(cr)
--######################################################################
end-- if updates>5
cairo_destroy(cr)
cairo_surface_destroy(cs)
cr=nil
end-- end main function

Last edited by ansem_of_nexus (2012-11-16 02:05:00)

Offline

#3838 2012-11-16 04:00:56

McLovin
#! CrunchBanger
From: my computer chair
Registered: 2009-02-28
Posts: 105
Website

Re: Conky v1.9 Thread

Offline

#3839 2012-11-16 04:07:57

VastOne
#! Ranger
From: V-Ger
Registered: 2011-04-26
Posts: 10,165
Website

Re: Conky v1.9 Thread

^ What do I think?

&**&^)((^%&%^% Epic!  devil

Offline

#3840 2012-11-16 04:20:12

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Conky v1.9 Thread

^^ & ^  What VastOne said ... that sound just about right, but cube it:

&**&^)((^%&%^% Epic!³

Last edited by Sector11 (2012-11-16 04:20:37)

Offline

#3841 2012-11-16 05:46:04

jed
#! CrunchBanger
From: Detachment 7
Registered: 2012-08-28
Posts: 200
Website

Re: Conky v1.9 Thread

Definitely lookin' nice McLovin!
Jed

Offline

#3842 2012-11-16 06:17:06

ansem_of_nexus
#! CrunchBanger
Registered: 2012-09-19
Posts: 234

Re: Conky v1.9 Thread

So I have a question what is the proper use of $to_bytes I can't get it to work with a conky command like $fs_size

Offline

#3843 2012-11-16 11:44:16

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Conky v1.9 Thread

Offline

#3844 2012-11-16 16:42:55

bozhkov
#! Junkie
Registered: 2009-12-29
Posts: 464

Re: Conky v1.9 Thread

Heya guys,  I had this idea to have conky showing up on demand (via keyboard shortcut). I guess it should by scripted to run conky if its not running and close it, if it is and should probably be easy enough with if/then, but I never really got around how to do that in bash. Can somebody help me with that?

Edit: Crazy enough, I found such script on the ubuntu forums big_smile
It's quite simple:

sh -c 'if pgrep conky; then pkill conky; else conky; fi'

Last edited by bozhkov (2012-11-16 16:48:09)

Offline

#3845 2012-11-16 17:56:25

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Conky v1.9 Thread

require 'cairo'
-- Position et taille horloge (Clock position and size) - Configure The Chronograph
local init={
center_x=175,
center_y=175,
radius=170, -- do not touch
lang="English", --English or Spanish or French
hour=24, --12 or 24
second=true, --true or false
line=true, --hand secondes true or false
handday=false, --hand day true or false
handdaynum=false, --hand day number true or false
handmonth=false, --hand month true or false
color=0xFF0000, --color for day, day number and month if no hand
alpha=1 --alpha for day, day number and month if no hand
}

Offline

#3846 2012-11-16 19:07:40

PackRat
#! Die Hard
From: USA
Registered: 2011-03-03
Posts: 1,572

Re: Conky v1.9 Thread

sh -c 'if pgrep conky; then pkill conky; else conky; fi'

Last edited by PackRat (2012-11-16 20:29:58)


"It does not require many words to speak the truth." - Chief Joseph, Nez Perce tribe

Offline

#3847 2012-11-16 19:15:43

VastOne
#! Ranger
From: V-Ger
Registered: 2011-04-26
Posts: 10,165
Website

Re: Conky v1.9 Thread

@Sector11 ...  Nice work and layout.

Offline

#3848 2012-11-16 19:20:11

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Conky v1.9 Thread

sh -c 'if pgrep conky; then pkill conky; else conky; fi'

Offline

#3849 2012-11-16 19:26:40

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Conky v1.9 Thread

Offline

Help fund CrunchBang, donate to the project!

#3850 2012-11-16 19:59:24

McLovin
#! CrunchBanger
From: my computer chair
Registered: 2009-02-28
Posts: 105
Website

Re: Conky v1.9 Thread

sh -c 'if pgrep conky; then pkill conky; else conky; fi'

Offline

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: bleh

Debian Logo