Bugfixes for Terminal.app and iTerm tmux start scripts

parent 2ddf7b9c
# Changelog
### master
- bugfixes for 'tmux auto start' OS X Terminal.app and iTerm scripts
### v2.1.0, 2015-02-18
- enable "tmux auto start" for OS X
......
......@@ -42,7 +42,12 @@ resize_window_to_full_screen() {
resize_to_true_full_screen() {
osascript <<-EOF
tell application "iTerm"
# wait for iTerm to start
delay 1
activate
# short wait for iTerm to gain focus
delay 0.1
# Command + Enter for fullscreen
tell i term application "System Events"
key code 36 using {command down}
end tell
......
......@@ -29,7 +29,11 @@ resize_window_to_full_screen() {
resize_to_true_full_screen() {
osascript <<-EOF
tell application "Terminal"
# waiting for Terminal.app to start
delay 1
activate
# short wait for Terminal to gain focus
delay 0.1
tell application "System Events"
keystroke "f" using {control down, command down}
end tell
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment