refactor fullscreen delays

pull/134/head
Dimitar Nizamov 2024-01-20 17:01:23 +01:00
parent cf8baeade0
commit b767f06c9b
3 changed files with 12 additions and 3 deletions

View File

@ -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

View File

@ -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

View File

@ -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