Skip to content

Instantly share code, notes, and snippets.

@auxesis
Created September 18, 2009 12:23
Show Gist options
  • Save auxesis/189026 to your computer and use it in GitHub Desktop.
Save auxesis/189026 to your computer and use it in GitHub Desktop.
desc "setup external displays"
task :displays do
system("xrandr --output VGA --mode 1024x768")
system("xrandr --output VGA --same-as LVDS")
end
desc "perform presentation"
task :perform => :displays do
options = "--transition Crossfade --transtime 250 -c persistent"
command = "keyjnote #{options} @#{File.dirname(__FILE__)}/order.txt"
system(command)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment