Created
April 24, 2022 11:18
-
-
Save alphashuro/ca4b64571a364653766df08bd91fc9d4 to your computer and use it in GitHub Desktop.
AppleScript for using Alfred with kitty
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on alfred_script(q) | |
set cmd to q | |
repeat while cmd starts with space | |
set cmd to cmd's text 2 thru -1 | |
end repeat | |
tell application "kitty" to activate | |
do shell script "/Applications/Kitty.app/Contents/MacOS/kitty @ --to unix:/tmp/mykitty new-window --new-tab" | |
tell application "System Events" to keystroke cmd | |
tell application "System Events" | |
key code 36 -- enter key | |
end tell | |
end alfred_script |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Remember to:
allow_remote_control yes
tokitty.conf
--listen-on unix:/tmp/mykitty
to~/.config/kitty/macos-launch-services-cmdline
Restart kitty after the changes