conky.config = {
-- **********************************************************************
-- "Scifi cockpit"  1920x1080
-- **********************************************************************

	background = false,

	alignment = 'top_left',
	gap_x = 0,
	gap_y = 0,
	minimum_width = 1920,
	minimum_height = 1080,
    xinerama_head = @MON_NUM@,
	draw_borders = false,
	border_width = 1,
	draw_graph_borders = false,
	stippled_borders = 0,
	default_color = '444444',
	default_outline_color = 'white',
	default_shade_color = 'black',
	draw_outline = false,
	draw_shades = false,
	show_graph_scale = false,
	show_graph_range = false,
	double_buffer = true,
	no_buffers = true,
	out_to_console = false,
	out_to_stderr = false,
	extra_newline = false,
	uppercase = false,
	pad_percents = no,

	own_window = true,
	own_window_class = 'conky',
	own_window_title = 'conky-scifi-cockpit',
	own_window_type = 'desktop',
	own_window_transparent = true,
	own_window_colour = 'F52525',
	own_window_argb_visual = true,
	own_window_argb_value = 0,
	own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',

	use_xft = true,
	xftalpha = 1,
	font = 'Tuffy:bold:size=12',
    color0 = 'white',
    color1 = 'acf6ff',

	imlib_cache_flush_interval = 1,
	imlib_cache_size = 4096,

	cpu_avg_samples = 2,
	update_interval = .4,    -- Smaller is smoother, but asks more cpu

	lua_load = 'bars.lua fans.lua blink-image.lua transparent-image.lua show-at-frame-image.lua animation-image.lua animation-globe.lua',
    lua_draw_hook_post = 'main_bars',
    lua_draw_hook_pre = 'main_rings',


};
conky.text = [[
#
#    The frames are shown at the bottom of the left front dislay
#
# Cockpit
${lua image ./images/cockpit.png -3 -7 1930 1100 100}\
#
# warpseed
${lua atframe ./images/warpspeed.png 375 195 450 70 100 920}\
#
# hiperspeed
${lua atframe ./images/hyperspeed.png 375 195 450 70 930 1340}\
#
#
# Message of Alien appears            START AT FRAME 1950
${lua atframe ./images/messagebox.png 525 440 400  40 1950 1955}\
${lua atframe ./images/messagebox.png 525 340 400  90 1956 1961}\
${lua atframe ./images/messagebox.png 525 260 400 140 1962 1966}\
${lua atframe ./images/messagebox.png 525 180 400 190 1967 1971}\
# Message disappears
${lua atframe ./images/message-1.png  525 180 400 190 1972 2092}\
${lua atframe ./images/message-1.png  525 260 400 140 2093 2097}\
${lua atframe ./images/message-1.png  525 340 400  90 2098 2102}\
${lua atframe ./images/message-1.png  525 440 400  40 2103 2107}\
#
#
# Centurion 9 scanning                      START AT FRAME 2920
${lua atframe ./images/centurion9-frame.png 752 157 300 200 2920 3200}\
${lua atframe ./images/centurion9-a.png     752 157 300 200 2920 2960}\
${lua atframe ./images/centurion9-b.png     752 157 300 200 2961 2980}\
${lua atframe ./images/centurion9-c.png     752 157 300 200 2981 3000}\
${lua atframe ./images/centurion9-d.png     752 157 300 200 3001 3020}\
${lua atframe ./images/centurion9-e.png     752 157 300 200 3021 3040}\
${lua atframe ./images/centurion9-f-off.png 752 157 300 200 3041 3050}\
${lua atframe ./images/centurion9-f-on.png  752 157 300 200 3051 3060}\
${lua atframe ./images/centurion9-f-off.png 752 157 300 200 3061 3070}\
${lua atframe ./images/centurion9-f-on.png  752 157 300 200 3071 3080}\
${lua atframe ./images/centurion9-f-off.png 752 157 300 200 3081 3090}\
${lua atframe ./images/centurion9-f-on.png  752 157 300 200 3091 3100}\
${lua atframe ./images/centurion9-f-off.png 752 157 300 200 3101 3110}\
${lua atframe ./images/centurion9-f-on.png  752 157 300 200 3111 3200}\
#                                                            ^    ^
#                                                            |    |_ Hide image at frame nr
#                                                            |______ Show image at frame nr
#  Animation globe                   START AT FRAME 2930
${lua globe_animation ./images/globe 945 90 190 120 2920 3200}\
#                                    ^    ^   ^   ^   ^    ^
#                                    |    |   |   |   |    |
#                                    |    |   |   |   |    |__ stop at frame number
#                                    |    |   |   |   |_______ start at frame nr
#                                    |    |   |   |___________ height of image
#                                    |    |   |_______________ width of image
#                                    |    |___________________ horizontal position in pixels
#                                    |________________________ vertical position in pixels
#
#
# Message of Sister appears           START AT FRAME 3350
${lua atframe ./images/messagebox.png 525 440 400  40 3350 3355}\
${lua atframe ./images/messagebox.png 525 340 400  90 3356 3361}\
${lua atframe ./images/messagebox.png 525 260 400 140 3362 3366}\
${lua atframe ./images/messagebox.png 525 180 400 190 3367 3371}\
# Message disappears
${lua atframe ./images/message-2.png  525 180 400 190 3372 3492}\
${lua atframe ./images/message-2.png  525 260 400 140 3493 3497}\
${lua atframe ./images/message-2.png  525 340 400  90 3498 3502}\
${lua atframe ./images/message-2.png  525 440 400  40 3503 3507}\
#
#
# Blinking dot on radar                     START AT FRAME 3910
${lua atframe ./images/radar-dot-red.png    639 342 80 80 3910 3925}\
${lua atframe ./images/radar-dot-red.png    640 339 80 80 3940 3955}\
${lua atframe ./images/radar-dot-red.png    642 337 80 80 3970 3985}\
${lua atframe ./images/radar-dot-red.png    643 334 80 80 4000 4015}\
${lua atframe ./images/radar-dot-red.png    645 331 80 80 4030 4045}\
${lua atframe ./images/radar-dot-red.png    647 328 80 80 4060 4075}\
${lua atframe ./images/radar-dot-green.png  649 326 80 80 4090 4105}\
${lua atframe ./images/radar-dot-green.png  652 322 80 80 4120 4135}\
${lua atframe ./images/radar-dot-green.png  660 320 80 80 4150 4165}\
${lua atframe ./images/radar-dot-green.png  670 318 80 80 4166 4181}\
${lua atframe ./images/radar-dot-green.png  687 314 80 80 4182 4197}\

#
#
# Crosshair LOCKED                             START AT FRAME 3910
${lua atframe ./images/crosshair.png           841 190 120 120 3910 3940}\
${lua atframe ./images/crosshair.png           834 182 120 120 3941 3961}\
${lua atframe ./images/crosshair.png           832 170 120 120 3962 3982}\
${lua atframe ./images/crosshair.png           822 161 120 120 3983 4003}\
${lua atframe ./images/crosshair.png           820 147 120 120 4004 4024}\
${lua atframe ./images/crosshair.png           818 136 120 120 4025 4045}\
${lua atframe ./images/crosshair.png           825 115 120 120 4046 4066}\
${lua atframe ./images/crosshair.png           831  95 120 120 4067 4087}\
${lua atframe ./images/crosshair.png           840  72 120 120 4088 4098}\
${lua atframe ./images/crosshair-friendly.png  846  50 120 120 4099 4109}\
${lua atframe ./images/crosshair-friendly.png  856  40 120 120 4110 4140}\
#
#
# Message of Captain appears          START AT FRAME 4250
${lua atframe ./images/messagebox.png 525 440 400  40 4250 4255}\
${lua atframe ./images/messagebox.png 525 340 400  90 4256 4261}\
${lua atframe ./images/messagebox.png 525 260 400 140 4262 4266}\
${lua atframe ./images/messagebox.png 525 180 400 190 4267 4271}\
# Message disappears
${lua atframe ./images/message-3.png  525 180 400 190 4272 4392}\
${lua atframe ./images/message-3.png  525 260 400 140 4393 4397}\
${lua atframe ./images/message-3.png  525 340 400  90 4398 4402}\
${lua atframe ./images/message-3.png  525 440 400  40 4403 4407}\
#
#
# Red-light-right-3.png
${lua blink ./images/red-light-right-3.png 462 315 51 38 2}\
#                                                        ^
#                                                        |_ blink delay   0=image off   1=image on   2 and up is blinking speed
# Download data stream
${color1}${voffset 744}${goto 844}${downspeedgraph @NIC_DEV@ 20,85 0092af 608492 scale -t}${goto 935}${upspeedgraph @NIC_DEV@ 20,85 0092af 608492 scale -t}\
#
# Space frame counter
${font LCDMono2:size=18}${voffset -66}${goto 665}${color1}${exec cat ./images/space/current/conky_slideshow_index}\
#
]];
