From 3383077393a11e5bbf67c9708306479e93881f55 Mon Sep 17 00:00:00 2001 From: Danielle McLean Date: Thu, 6 Sep 2018 08:35:27 +1000 Subject: [PATCH] Run a single kitty process as a LaunchAgent that all the terminals can be spawned from --- .../LaunchAgents/net.kovidgoyal.kitty.plist | 21 +++++++++++++++++++ config/skhd/skhdrc | 3 +-- 2 files changed, 22 insertions(+), 2 deletions(-) create mode 100644 Library/LaunchAgents/net.kovidgoyal.kitty.plist diff --git a/Library/LaunchAgents/net.kovidgoyal.kitty.plist b/Library/LaunchAgents/net.kovidgoyal.kitty.plist new file mode 100644 index 0000000..47daebd --- /dev/null +++ b/Library/LaunchAgents/net.kovidgoyal.kitty.plist @@ -0,0 +1,21 @@ + + + + + KeepAlive + + Label + net.kovidgoyal.kitty + ProgramArguments + + /Applications/kitty.app/Contents/MacOS/kitty + --directory + /Users/dani + --listen-on + unix:/Users/dani/.cache/kitty/kitty.sock + --single-instance + + RunAtLoad + + + diff --git a/config/skhd/skhdrc b/config/skhd/skhdrc index 47c85b2..eea8b3e 100644 --- a/config/skhd/skhdrc +++ b/config/skhd/skhdrc @@ -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