mirror of
https://github.com/tmux-plugins/tmux-continuum.git
synced 2025-09-10 05:03:12 +00:00
chore: use tabs instead of spaces for formatting
This commit is contained in:
@ -4,44 +4,44 @@
|
||||
TRUE_FULL_SCREEN="$1"
|
||||
|
||||
start_terminal_and_run_tmux() {
|
||||
osascript <<- EOF
|
||||
osascript <<-EOF
|
||||
tell application "kitty"
|
||||
activate
|
||||
delay 5
|
||||
tell application "System Events" to tell process "kitty"
|
||||
set frontmost to true
|
||||
keystroke "tmux"
|
||||
key code 36
|
||||
end tell
|
||||
delay 5
|
||||
tell application "System Events" to tell process "kitty"
|
||||
set frontmost to true
|
||||
keystroke "tmux"
|
||||
key code 36
|
||||
end tell
|
||||
end tell
|
||||
EOF
|
||||
}
|
||||
|
||||
resize_window_to_full_screen() {
|
||||
osascript <<- EOF
|
||||
tell application "kitty"
|
||||
activate
|
||||
tell application "System Events"
|
||||
if (every window of process "kitty") is {} then
|
||||
keystroke "n" using command down
|
||||
end if
|
||||
osascript <<-EOF
|
||||
tell application "kitty"
|
||||
activate
|
||||
tell application "System Events"
|
||||
if (every window of process "kitty") is {} then
|
||||
keystroke "n" using command down
|
||||
end if
|
||||
|
||||
tell application "Finder"
|
||||
set desktopSize to bounds of window of desktop
|
||||
tell application "Finder"
|
||||
set desktopSize to bounds of window of desktop
|
||||
end tell
|
||||
|
||||
set position of front window of process "kitty" to {0, 0}
|
||||
set size of front window of process "kitty" to {item 3 of desktopSize, item 4 of desktopSize}
|
||||
end tell
|
||||
|
||||
set position of front window of process "kitty" to {0, 0}
|
||||
set size of front window of process "kitty" to {item 3 of desktopSize, item 4 of desktopSize}
|
||||
end tell
|
||||
end tell
|
||||
EOF
|
||||
EOF
|
||||
}
|
||||
|
||||
resize_to_true_full_screen() {
|
||||
osascript <<- EOF
|
||||
osascript <<-EOF
|
||||
tell application "kitty"
|
||||
activate
|
||||
delay 1
|
||||
delay 1
|
||||
tell application "System Events" to tell process "kitty"
|
||||
keystroke "f" using {control down, command down}
|
||||
end tell
|
||||
@ -50,11 +50,11 @@ resize_to_true_full_screen() {
|
||||
}
|
||||
|
||||
main() {
|
||||
start_terminal_and_run_tmux
|
||||
if [ "$TRUE_FULL_SCREEN" == "fullscreen" ]; then
|
||||
resize_to_true_full_screen
|
||||
else
|
||||
resize_window_to_full_screen
|
||||
fi
|
||||
start_terminal_and_run_tmux
|
||||
if [ "$TRUE_FULL_SCREEN" == "fullscreen" ]; then
|
||||
resize_to_true_full_screen
|
||||
else
|
||||
resize_window_to_full_screen
|
||||
fi
|
||||
}
|
||||
main
|
||||
|
Reference in New Issue
Block a user