Run a single kitty process as a LaunchAgent that all the terminals can be spawned from

This commit is contained in:
Danielle McLean 2018-09-06 08:35:27 +10:00
parent 7f57e5b5ae
commit 3383077393
Signed by: 00dani
GPG key ID: 8EB789DDF3ABD240
2 changed files with 22 additions and 2 deletions

View file

@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>KeepAlive</key>
<true/>
<key>Label</key>
<string>net.kovidgoyal.kitty</string>
<key>ProgramArguments</key>
<array>
<string>/Applications/kitty.app/Contents/MacOS/kitty</string>
<string>--directory</string>
<string>/Users/dani</string>
<string>--listen-on</string>
<string>unix:/Users/dani/.cache/kitty/kitty.sock</string>
<string>--single-instance</string>
</array>
<key>RunAtLoad</key>
<true/>
</dict>
</plist>

View file

@ -69,8 +69,7 @@
# launch a new terminal instance when in either 'default' or 'test' mode # launch a new terminal instance when in either 'default' or 'test' mode
# default, test < cmd - return : open -na /Applications/Terminal.app # default, test < cmd - return : open -na /Applications/Terminal.app
rctrl - return : /Applications/Kitty.app/Contents/MacOS/kitty --single-instance\ rctrl - return : ~/.local/bin/kit new-window --window-type os
--directory=$HOME --listen-on=unix:$XDG_CACHE_HOME/kitty/kitty.sock
# open qutebrowser # open qutebrowser
rctrl + shift - return : ~/.local/bin/qtb rctrl + shift - return : ~/.local/bin/qtb