Run a single kitty process as a LaunchAgent that all the terminals can be spawned from
This commit is contained in:
parent
7f57e5b5ae
commit
3383077393
2 changed files with 22 additions and 2 deletions
21
Library/LaunchAgents/net.kovidgoyal.kitty.plist
Normal file
21
Library/LaunchAgents/net.kovidgoyal.kitty.plist
Normal 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>
|
|
@ -69,8 +69,7 @@
|
|||
# launch a new terminal instance when in either 'default' or 'test' mode
|
||||
# default, test < cmd - return : open -na /Applications/Terminal.app
|
||||
|
||||
rctrl - return : /Applications/Kitty.app/Contents/MacOS/kitty --single-instance\
|
||||
--directory=$HOME --listen-on=unix:$XDG_CACHE_HOME/kitty/kitty.sock
|
||||
rctrl - return : ~/.local/bin/kit new-window --window-type os
|
||||
|
||||
# open qutebrowser
|
||||
rctrl + shift - return : ~/.local/bin/qtb
|
||||
|
|
Loading…
Reference in a new issue