conky.config = {
-- **********************************************************************
-- "Cockpit"  3840x2160
-- **********************************************************************

	background = false,

	alignment = 'top_left',
	gap_x = 0,
	gap_y = 0,
	minimum_width = 3840,
	minimum_height = 2160,
    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 3840 2160 100}\
#
# warpseed
${lua atframe ./images/warpspeed.png 654 350 650 90 100 920}\
#
# hiperspeed
${lua atframe ./images/hyperspeed.png 654 350 650 90 930 1340}\
#
#
# Message of Alien appears              START AT FRAME 1950
${lua atframe ./images/messagebox.png 1064 740 500  50 1950 1955}\
${lua atframe ./images/messagebox.png 1064 640 500 100 1956 1961}\
${lua atframe ./images/messagebox.png 1064 560 500 150 1962 1966}\
${lua atframe ./images/messagebox.png 1064 480 500 200 1967 1971}\
# Message disappears
${lua atframe ./images/message-1.png 1064 480 500 200 1972 2092}\
${lua atframe ./images/message-1.png 1064 560 500 150 2093 2097}\
${lua atframe ./images/message-1.png 1064 640 500 100 2098 2102}\
${lua atframe ./images/message-1.png 1064 740 500  50 2103 2107}\
#
#
# Centurion 9 scanning                        START AT FRAME 2920
${lua atframe ./images/centurion9-frame.png 1060 192 400 300 2920 3200}\
${lua atframe ./images/centurion9-a.png     1060 192 400 300 2920 2960}\
${lua atframe ./images/centurion9-b.png     1060 192 400 300 2961 2980}\
${lua atframe ./images/centurion9-c.png     1060 192 400 300 2981 3000}\
${lua atframe ./images/centurion9-d.png     1060 192 400 300 3001 3020}\
${lua atframe ./images/centurion9-e.png     1060 192 400 300 3021 3040}\
${lua atframe ./images/centurion9-f-off.png 1060 192 400 300 3021 3050}\
${lua atframe ./images/centurion9-f-on.png  1060 192 400 300 3051 3060}\
${lua atframe ./images/centurion9-f-off.png 1060 192 400 300 3061 3070}\
${lua atframe ./images/centurion9-f-on.png  1060 192 400 300 3071 3080}\
${lua atframe ./images/centurion9-f-off.png 1060 192 400 300 3081 3090}\
${lua atframe ./images/centurion9-f-on.png  1060 192 400 300 3091 3100}\
${lua atframe ./images/centurion9-f-off.png 1060 192 400 300 3101 3110}\
${lua atframe ./images/centurion9-f-on.png 1060 192 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 1470 105 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 1064 740 500  50 3350 3355}\
${lua atframe ./images/messagebox.png 1064 640 500 100 3356 3361}\
${lua atframe ./images/messagebox.png 1064 560 500 150 3362 3366}\
${lua atframe ./images/messagebox.png 1064 480 500 200 3367 3371}\
# Message disappears
${lua atframe ./images/message-2.png 1064 480 500 200 3372 3492}\
${lua atframe ./images/message-2.png 1064 560 500 150 3493 3497}\
${lua atframe ./images/message-2.png 1064 640 500 100 3498 3502}\
${lua atframe ./images/message-2.png 1064 740 500  50 3503 3507}\
#
#
# Blinking dot on radar                      START AT FRAME 3910
${lua atframe ./images/radar-dot-red.png   1177 592 100 100 3910 3925}\
${lua atframe ./images/radar-dot-red.png   1178 591 100 100 3940 3955}\
${lua atframe ./images/radar-dot-red.png   1179 590 100 100 3970 3985}\
${lua atframe ./images/radar-dot-red.png   1181 589 100 100 4000 4015}\
${lua atframe ./images/radar-dot-red.png   1182 588 100 100 4030 4045}\
${lua atframe ./images/radar-dot-red.png   1183 588 100 100 4060 4075}\
${lua atframe ./images/radar-dot-green.png 1185 582 100 100 4090 4105}\
${lua atframe ./images/radar-dot-green.png 1195 578 100 100 4120 4135}\
${lua atframe ./images/radar-dot-green.png 1210 576 100 100 4150 4165}\
${lua atframe ./images/radar-dot-green.png 1219 572 100 100 4166 4181}\
${lua atframe ./images/radar-dot-green.png 1229 570 100 100 4182 4197}\
${lua atframe ./images/radar-dot-green.png 1239 568 100 100 4198 4213}\
${lua atframe ./images/radar-dot-green.png 1249 566 100 100 4214 4229}\
#
#
# Crosshair LOCKED                      START AT FRAME 3910
${lua atframe ./images/crosshair.png  1126 357 150 150 3910 3940}\
${lua atframe ./images/crosshair.png  1117 347 150 150 3941 3961}\
${lua atframe ./images/crosshair.png  1110 345 150 150 3962 3982}\
${lua atframe ./images/crosshair.png  1100 336 150 150 3983 4003}\
${lua atframe ./images/crosshair.png  1095 320 150 150 4004 4024}\
${lua atframe ./images/crosshair.png  1100 304 150 150 4025 4045}\
${lua atframe ./images/crosshair.png  1107 290 150 150 4046 4066}\
${lua atframe ./images/crosshair.png  1116 276 150 150 4067 4087}\
${lua atframe ./images/crosshair.png  1125 262 150 150 4088 4108}\
${lua atframe ./images/crosshair-friendly.png 1125 262 150 150 4109 4150}\
#
#
# Message of Captain appears            START AT FRAME 4250
${lua atframe ./images/messagebox.png 1064 740 500  50 4250 4255}\
${lua atframe ./images/messagebox.png 1064 640 500 100 4256 4261}\
${lua atframe ./images/messagebox.png 1064 560 500 150 4262 4266}\
${lua atframe ./images/messagebox.png 1064 480 500 200 4267 4271}\
# Message disappears
${lua atframe ./images/message-3.png 1064 480 500 200 4272 4392}\
${lua atframe ./images/message-3.png 1064 560 500 150 4393 4397}\
${lua atframe ./images/message-3.png 1064 640 500 100 4398 4402}\
${lua atframe ./images/message-3.png 1064 740 500  50 4403 4407}\
#
# Atom
#${lua animation ./images/atom 500 500 150 150 100}\
#
#
# Red-light-right-3.png
${lua blink ./images/red-light-right-3.png 640 403 83 71 2}\
#                                                        ^
#                                                        |_ blink delay   0=image off   1=image on   2 and up is blinking speed
# Download data stream
${color1}${voffset 1524}${goto 1698}${downspeedgraph @NIC_DEV@ 26,156 0092af 608492 scale -t}${goto 1870}${upspeedgraph @NIC_DEV@ 26,156 0092af 608492 scale -t}\
#
# Space frame counter
${font LCDMono2:size=20}${voffset -112}${goto 1330}${color1}${exec cat ./images/space/current/conky_slideshow_index}\
#
]];
