Script: Update for classroom Mac screen dimensions etc.
This commit is contained in:
parent
3d3e3a1c0d
commit
1603b07525
|
|
@ -2,9 +2,13 @@
|
||||||
|
|
||||||
-- 1. CONFIGURATION
|
-- 1. CONFIGURATION
|
||||||
|
|
||||||
screen_width = 1080 -- FIXME
|
screen_width = 1150 -- FIXME...
|
||||||
|
-- The screen is actually 1280, but at that height
|
||||||
|
-- 3 rows of videos is actually too tall, so this is a quick
|
||||||
|
-- hack to make sure they all fit vertically
|
||||||
aspect_ratio = 1.5 -- a good default for dragonframe's typical 1620x1080 exports
|
aspect_ratio = 1.5 -- a good default for dragonframe's typical 1620x1080 exports
|
||||||
menubar_height = 39
|
-- menubar_height = 39
|
||||||
|
menubar_height = 22 -- at 1280x800 the menu bar is shorter
|
||||||
|
|
||||||
|
|
||||||
-- 2. UTILITY FUNCTIONS
|
-- 2. UTILITY FUNCTIONS
|
||||||
|
|
@ -35,23 +39,23 @@ if number_of_windows <= 9 then
|
||||||
cols = 3
|
cols = 3
|
||||||
rows = 3
|
rows = 3
|
||||||
elseif number_of_windows <= 12 then
|
elseif number_of_windows <= 12 then
|
||||||
cols = 3
|
|
||||||
rows = 4
|
|
||||||
elseif number_of_windows <= 16 then
|
|
||||||
cols = 4
|
cols = 4
|
||||||
rows = 4
|
rows = 3
|
||||||
elseif number_of_windows <= 20 then
|
-- elseif number_of_windows <= 16 then
|
||||||
cols = 4
|
-- cols = 5
|
||||||
rows = 5
|
-- rows = 3
|
||||||
elseif number_of_windows <= 25 then
|
--elseif number_of_windows <= 20 then
|
||||||
cols = 5
|
-- cols = 4
|
||||||
rows = 5
|
-- rows = 5
|
||||||
elseif number_of_windows <= 30 then
|
--elseif number_of_windows <= 25 then
|
||||||
cols = 5
|
-- cols = 5
|
||||||
rows = 6
|
-- rows = 5
|
||||||
elseif number_of_windows <= 36 then
|
--elseif number_of_windows <= 30 then
|
||||||
cols = 6
|
-- cols = 5
|
||||||
rows = 6
|
-- rows = 6
|
||||||
|
--elseif number_of_windows <= 36 then
|
||||||
|
-- cols = 6
|
||||||
|
-- rows = 6
|
||||||
else
|
else
|
||||||
os.execute("osascript -e 'display dialog \"you have too many videos lol\"'")
|
os.execute("osascript -e 'display dialog \"you have too many videos lol\"'")
|
||||||
os.exit()
|
os.exit()
|
||||||
|
|
|
||||||
|
|
@ -2,9 +2,13 @@
|
||||||
|
|
||||||
-- 1. CONFIGURATION
|
-- 1. CONFIGURATION
|
||||||
|
|
||||||
screen_width = 1080 -- FIXME
|
screen_width = 1150 -- FIXME...
|
||||||
|
-- The screen is actually 1280, but at that height
|
||||||
|
-- 3 rows of videos is actually too tall, so this is a quick
|
||||||
|
-- hack to make sure they all fit vertically
|
||||||
aspect_ratio = 1.5 -- a good default for dragonframe's typical 1620x1080 exports
|
aspect_ratio = 1.5 -- a good default for dragonframe's typical 1620x1080 exports
|
||||||
menubar_height = 39
|
-- menubar_height = 39
|
||||||
|
menubar_height = 22 -- at 1280x800 the menu bar is shorter
|
||||||
|
|
||||||
|
|
||||||
-- 2. UTILITY FUNCTIONS
|
-- 2. UTILITY FUNCTIONS
|
||||||
|
|
@ -35,23 +39,23 @@ if number_of_windows <= 9 then
|
||||||
cols = 3
|
cols = 3
|
||||||
rows = 3
|
rows = 3
|
||||||
elseif number_of_windows <= 12 then
|
elseif number_of_windows <= 12 then
|
||||||
cols = 3
|
|
||||||
rows = 4
|
|
||||||
elseif number_of_windows <= 16 then
|
|
||||||
cols = 4
|
cols = 4
|
||||||
rows = 4
|
rows = 3
|
||||||
elseif number_of_windows <= 20 then
|
-- elseif number_of_windows <= 16 then
|
||||||
cols = 4
|
-- cols = 5
|
||||||
rows = 5
|
-- rows = 3
|
||||||
elseif number_of_windows <= 25 then
|
--elseif number_of_windows <= 20 then
|
||||||
cols = 5
|
-- cols = 4
|
||||||
rows = 5
|
-- rows = 5
|
||||||
elseif number_of_windows <= 30 then
|
--elseif number_of_windows <= 25 then
|
||||||
cols = 5
|
-- cols = 5
|
||||||
rows = 6
|
-- rows = 5
|
||||||
elseif number_of_windows <= 36 then
|
--elseif number_of_windows <= 30 then
|
||||||
cols = 6
|
-- cols = 5
|
||||||
rows = 6
|
-- rows = 6
|
||||||
|
--elseif number_of_windows <= 36 then
|
||||||
|
-- cols = 6
|
||||||
|
-- rows = 6
|
||||||
else
|
else
|
||||||
os.execute("osascript -e 'display dialog \"you have too many videos lol\"'")
|
os.execute("osascript -e 'display dialog \"you have too many videos lol\"'")
|
||||||
os.exit()
|
os.exit()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue