conky.config = {
-- **********************************************************************
-- "Fullscreen space loop"  2560x1440
-- **********************************************************************

	background = false,

	alignment = 'top_left',
	gap_x = 0,
	gap_y = 0,
	minimum_width = 2560,
	minimum_height = 1440,
    xinerama_head = @MON_NUM@,
	draw_borders = false,
	border_width = 1,
	draw_graph_borders = false,
	stippled_borders = 0,
	default_color = '000000',
	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 = '000000',
	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 2560 1440 100}\
#
# warpseed
${lua atframe ./images/warpspeed.png 400 220 650 90 100 920}\
#
# hiperspeed
${lua atframe ./images/hyperspeed.png 400 220 650 90 930 1340}\
#
#
# Message of Alien appears              START AT FRAME 1950
${lua atframe ./images/messagebox.png  650 540 500  50 1950 1955}\
${lua atframe ./images/messagebox.png  650 440 500 100 1956 1961}\
${lua atframe ./images/messagebox.png  650 360 500 150 1962 1966}\
${lua atframe ./images/messagebox.png  650 280 500 200 1967 1971}\
# Message disappears
${lua atframe ./images/message-1.png   650 280 500 200 1972 2092}\
${lua atframe ./images/message-1.png   650 360 500 150 2093 2097}\
${lua atframe ./images/message-1.png   650 440 500 100 2098 2102}\
${lua atframe ./images/message-1.png   650 540 500  50 2103 2107}\
 #
# Centurion 9 scanning                        START AT FRAME 2920
${lua atframe ./images/centurion9-frame.png 598 104 400 300 2920 3200}\
${lua atframe ./images/centurion9-a.png     598 104 400 300 2920 2960}\
${lua atframe ./images/centurion9-b.png     598 104 400 300 2961 2980}\
${lua atframe ./images/centurion9-c.png     598 104 400 300 2981 3000}\
${lua atframe ./images/centurion9-d.png     598 104 400 300 3001 3020}\
${lua atframe ./images/centurion9-e.png     598 104 400 300 3021 3040}\
${lua atframe ./images/centurion9-f-off.png 598 104 400 300 3021 3050}\
${lua atframe ./images/centurion9-f-on.png  598 104 400 300 3051 3060}\
${lua atframe ./images/centurion9-f-off.png 598 104 400 300 3061 3070}\
${lua atframe ./images/centurion9-f-on.png  598 104 400 300 3071 3080}\
${lua atframe ./images/centurion9-f-off.png 598 104 400 300 3081 3090}\
${lua atframe ./images/centurion9-f-on.png  598 104 400 300 3091 3100}\
${lua atframe ./images/centurion9-f-off.png 598 104 400 300 3101 3110}\
${lua atframe ./images/centurion9-f-on.png 598 104 400 300 3111 3200}\
#                                                            ^    ^
#                                                            |    |_ Hide image at frame nr
#                                                            |______ Show image at frame nr
#  Animation globe                     START AT FRAME 2930
${lua globe_animation ./images/globe 864 52 220 150 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  650 540 500  50 3350 3355}\
${lua atframe ./images/messagebox.png  650 440 500 100 3356 3361}\
${lua atframe ./images/messagebox.png  650 360 500 150 3362 3366}\
${lua atframe ./images/messagebox.png  650 280 500 200 3367 3371}\
# Message disappears
${lua atframe ./images/message-2.png   650 280 500 200 3372 3492}\
${lua atframe ./images/message-2.png   650 360 500 150 3493 3497}\
${lua atframe ./images/message-2.png   650 440 500 100 3498 3502}\
${lua atframe ./images/message-2.png   650 540 500  50 3503 3507}\
#
#
# Blinking dot on radar                      START AT FRAME 3910
${lua atframe ./images/radar-dot-red.png   777 382 100 100 3910 3925}\
${lua atframe ./images/radar-dot-red.png   778 381 100 100 3940 3955}\
${lua atframe ./images/radar-dot-red.png   779 380 100 100 3970 3985}\
${lua atframe ./images/radar-dot-red.png   781 379 100 100 4000 4015}\
${lua atframe ./images/radar-dot-red.png   782 378 100 100 4030 4045}\
${lua atframe ./images/radar-dot-red.png   783 378 100 100 4060 4075}\
${lua atframe ./images/radar-dot-green.png 785 376 100 100 4090 4105}\
${lua atframe ./images/radar-dot-green.png 795 372 100 100 4120 4135}\
${lua atframe ./images/radar-dot-green.png 810 370 100 100 4150 4165}\
${lua atframe ./images/radar-dot-green.png 819 370 100 100 4166 4181}\
${lua atframe ./images/radar-dot-green.png 829 370 100 100 4182 4197}\
${lua atframe ./images/radar-dot-green.png 839 371 100 100 4198 4213}\
${lua atframe ./images/radar-dot-green.png 849 371 100 100 4214 4229}\
#
#
# Crosshair LOCKED                      START AT FRAME 3910
${lua atframe ./images/crosshair.png  715 200 150 150 3910 3940}\
${lua atframe ./images/crosshair.png  707 190 150 150 3941 3961}\
${lua atframe ./images/crosshair.png  705 186 150 150 3962 3982}\
${lua atframe ./images/crosshair.png  710 182 150 150 3983 4003}\
${lua atframe ./images/crosshair.png  713 176 150 150 4004 4024}\
${lua atframe ./images/crosshair.png  715 162 150 150 4025 4045}\
${lua atframe ./images/crosshair.png  720 150 150 150 4046 4066}\
${lua atframe ./images/crosshair.png  724 146 150 150 4067 4087}\
${lua atframe ./images/crosshair.png  728 130 150 150 4088 4108}\
${lua atframe ./images/crosshair-friendly.png  735 98 150 150 4109 4150}\
#
#
# Message of Captain appears            START AT FRAME 4250
${lua atframe ./images/messagebox.png  650 540 500  50 4250 4255}\
${lua atframe ./images/messagebox.png  650 440 500 100 4256 4261}\
${lua atframe ./images/messagebox.png  650 360 500 150 4262 4266}\
${lua atframe ./images/messagebox.png  650 280 500 200 4267 4271}\
# Message disappears
${lua atframe ./images/message-3.png   650 280 500 200 4272 4392}\
${lua atframe ./images/message-3.png   650 360 500 150 4393 4397}\
${lua atframe ./images/message-3.png   650 440 500 100 4398 4402}\
${lua atframe ./images/message-3.png   650 560 490  50 4403 4407}\
#
#
# Red-light-right-3.png
${lua blink ./images/red-light-right-3.png 479 298 71 61 2}\
#                                                        ^
#                                                        |_ blink delay   0=image off   1=image on   2 and up is blinking speed
# Download data stream
${color1}${voffset 1000}${goto 1140}${downspeedgraph @NIC_DEV@ 26,140 0092af 608492 scale -t}${goto 1200}${upspeedgraph @NIC_DEV@ 26,140 0092af 608492 scale -t}\
#
# Space frame counter
${font LCDMono2:size=18}${voffset -83}${goto 895}${color1}${exec cat ./images/space/current/conky_slideshow_index}\
#
]];
