koekeishiya / skhd

Simple hotkey daemon for macOS
MIT License
6.42k stars 211 forks source link

'open' doesn't work for some apps #224

Open alloc33 opened 2 years ago

alloc33 commented 2 years ago

this is my config:

# Applications 

cmd + shift - 0 : open /Applications/GitKraken.app
cmd + shift - 1 : open /Users/nshv/Repos/neovide/target/release/bundle/osx/Neovide.app
cmd + shift - 2 : open /Applications/Safari.app
cmd + shift - 3 : open /Applications/Discord.app
cmd + shift - 4 : open /Applications/Telegram.app
cmd + shift - 5 : open /Applications/Twitter.app

cmd + shift - e : open /System/Library/CoreServices/Finder.app
cmd + shift - j : open /Users/nshv/Library/Application Support/JetBrains/Toolbox/apps/AppCode/ch-0/222.4167.29/AppCode.app
cmd + shift - h : open /Users/nshv/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/213.7172.25.2113.9014738/Android Studio.app
cmd + shift - b : open /Applications/Books.app
cmd + shift - x : open /Applications/Xcode.app
cmd + shift - d : open /Applications/Dash.app

# ~/~/~/~/~/~/~/~/~/~/~/~/~/~/~/~/~/~/~/~/~/~/~/~/~/~/~/~/~/~/~/~/~/~/~/~/~/~/~/~/~/~/~/~/~/~/~/~/~/~/

# Commands

cmd + shift - f9 : command /Applications/Vpnify.app/Contents/MacOS/CLI/vpnify connect -c hkg
cmd + shift - f6 : command /Applications/Vpnify.app/Contents/MacOS/CLI/vpnify disconnect

ctrl + shift + alt - r : command /opt/homebrew/bin/brew services restart yabai
cmd + ctrl - l : command /opt/homebrew/bin/yabai -m window --focus east
cmd + ctrl - h : command /opt/homebrew/bin/yabai -m window --focus west
cmd + ctrl - j : command /opt/homebrew/bin/yabai -m window --focus south
cmd + ctrl - k : command /opt/homebrew/bin/yabai -m window --focus north
ctrl + shift - l : command /opt/homebrew/bin/yabai -m window --swap east
ctrl + shift - h : command /opt/homebrew/bin/yabai -m window --swap west
ctrl + shift - j : command /opt/homebrew/bin/yabai -m window --swap south
ctrl + shift - k : command /opt/homebrew/bin/yabai -m window --swap north
cmd + shift - return : command /opt/homebrew/bin/yabai -m window --toggle zoom-fullscreen

# ~/~/~/~/~/~/~/~/~/~/~/~/~/~/~/~/~/~/~/~/~/~/~/~/~/~/~/~/~/~/~/~/~/~/~/~/~/~/~/~/~/~/~/~/~/~/~/~/~/~/

'open' doesn't work for several apps such as Books, Android Studio, AppCode... I tried to use different shortcut - same. Is there any solution?

prgres commented 2 years ago

Let's try with open -a Books

alloc33 commented 2 years ago

Let's try with open -a Books

tried before - doesn't work

esbenboye commented 1 year ago

tried before - doesn't work

Did you use the full path open -a /Applications/Books or just open -a Books?

Have you tried to run a which Books to confirm that the Books application is actually located where you think it is?