mirror of
https://github.com/tmux-plugins/tmux-continuum.git
synced 2024-11-17 00:08:47 +00:00
return alacritty fullscreen with changed delays
This commit is contained in:
parent
b767f06c9b
commit
d6124a69ce
@ -39,16 +39,23 @@ resize_window_to_full_screen() {
|
|||||||
|
|
||||||
resize_to_true_full_screen() {
|
resize_to_true_full_screen() {
|
||||||
osascript <<-EOF
|
osascript <<-EOF
|
||||||
tell application "alacritty"
|
tell application "Alacritty"
|
||||||
# wait for alacritty to start
|
# wait for alacritty to start
|
||||||
delay 1
|
delay 1
|
||||||
activate
|
activate
|
||||||
# short wait for alacritty to gain focus
|
# short wait for alacritty to gain focus
|
||||||
delay 0.1
|
delay 0.1
|
||||||
tell application "System Events" to tell process "alacritty"
|
tell application "System Events" to tell process "Alacritty"
|
||||||
keystroke "f" using {control down, command down}
|
if front window exists then
|
||||||
end tell
|
tell front window
|
||||||
end tell
|
if value of attribute "AXFullScreen" then
|
||||||
|
set value of attribute "AXFullScreen" to false
|
||||||
|
else
|
||||||
|
set value of attribute "AXFullScreen" to true
|
||||||
|
end if
|
||||||
|
end tell
|
||||||
|
end if
|
||||||
|
end tell
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user