refactor fullscreen delays
parent
cf8baeade0
commit
b767f06c9b
|
@ -40,8 +40,11 @@ resize_window_to_full_screen() {
|
|||
resize_to_true_full_screen() {
|
||||
osascript <<-EOF
|
||||
tell application "alacritty"
|
||||
activate
|
||||
# wait for alacritty to start
|
||||
delay 1
|
||||
activate
|
||||
# short wait for alacritty to gain focus
|
||||
delay 0.1
|
||||
tell application "System Events" to tell process "alacritty"
|
||||
keystroke "f" using {control down, command down}
|
||||
end tell
|
||||
|
|
|
@ -40,8 +40,11 @@ resize_window_to_full_screen() {
|
|||
resize_to_true_full_screen() {
|
||||
osascript <<-EOF
|
||||
tell application "kitty"
|
||||
activate
|
||||
# wait for kitty to start
|
||||
delay 1
|
||||
activate
|
||||
# short wait for kitty to gain focus
|
||||
delay 0.1
|
||||
tell application "System Events" to tell process "kitty"
|
||||
keystroke "f" using {control down, command down}
|
||||
end tell
|
||||
|
|
|
@ -42,8 +42,11 @@ resize_window_to_full_screen() {
|
|||
resize_to_true_full_screen() {
|
||||
osascript <<-EOF
|
||||
tell application "Warp"
|
||||
activate
|
||||
# wait for Warp to start
|
||||
delay 1
|
||||
activate
|
||||
# short wait for Warp to gain focus
|
||||
delay 0.1
|
||||
tell application "System Events" to tell process "Warp"
|
||||
keystroke "f" using {control down, command down}
|
||||
end tell
|
||||
|
|
Loading…
Reference in New Issue