skhd: Fix conflicts, fix iT2 script
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user