skhd: Fix conflicts, fix iT2 script

This commit is contained in:
Salt 2020-04-06 06:54:55 -05:00
parent 3283aa4889
commit 3f56f6a3ee
2 changed files with 4 additions and 2 deletions

View File

@ -48,7 +48,7 @@ lctrl + cmd - l : \
yabai -m window --resize right:20:0
# Float window
cmd - f : yabai -m window --toggle float
lctrl - f : yabai -m window --toggle float
# Fullscreen window
alt + shift - f : yabai -m window --toggle zoom-fullscreen

View File

@ -6,9 +6,11 @@
# Distributed under terms of the MIT license.
#
if pgrep -f "iTerm" > /dev/null 2>&1; then
if ! pgrep -f "iTerm" > /dev/null 2>&1; then
echo "Opening iTerm"
exec open -a "/Applications/iTerm.app"
elif ! osascript -e 'tell application "iTerm2" to create window with default profile' > /dev/null 2>&1; then
echo "Killing iTerm and restarting"
killall "iTerm"
exec open -a "/Applications/iTerm.app"
fi