skhd: Fix conflicts, fix iT2 script
This commit is contained in:
parent
3283aa4889
commit
3f56f6a3ee
@ -48,7 +48,7 @@ lctrl + cmd - l : \
|
|||||||
yabai -m window --resize right:20:0
|
yabai -m window --resize right:20:0
|
||||||
|
|
||||||
# Float window
|
# Float window
|
||||||
cmd - f : yabai -m window --toggle float
|
lctrl - f : yabai -m window --toggle float
|
||||||
|
|
||||||
# Fullscreen window
|
# Fullscreen window
|
||||||
alt + shift - f : yabai -m window --toggle zoom-fullscreen
|
alt + shift - f : yabai -m window --toggle zoom-fullscreen
|
||||||
|
@ -6,9 +6,11 @@
|
|||||||
# Distributed under terms of the MIT license.
|
# 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"
|
exec open -a "/Applications/iTerm.app"
|
||||||
elif ! osascript -e 'tell application "iTerm2" to create window with default profile' > /dev/null 2>&1; then
|
elif ! osascript -e 'tell application "iTerm2" to create window with default profile' > /dev/null 2>&1; then
|
||||||
|
echo "Killing iTerm and restarting"
|
||||||
killall "iTerm"
|
killall "iTerm"
|
||||||
exec open -a "/Applications/iTerm.app"
|
exec open -a "/Applications/iTerm.app"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user