Last active
March 18, 2017 20:25
-
-
Save rohmann/d019846549fd3dfe59ce to your computer and use it in GitHub Desktop.
Cleanup cmd+tab and the dock by launching apps in the background. You can still open their main windows with Alfred/Spotlight.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Go away | |
defaults write "$(mdfind kMDItemCFBundleIdentifier = 'com.skype.skype')/Contents/Info.plist" "LSUIElement" -string "1" && killall Skype | |
# Come back | |
defaults write "$(mdfind kMDItemCFBundleIdentifier = 'com.skype.skype')/Contents/Info.plist" "LSUIElement" -string "0" && killall Skype | |
# If you get any requests to use the keychain, they should go away the next time you restart your mac. You may be asked to sign into Skype again. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Go away | |
defaults write "$(mdfind kMDItemCFBundleIdentifier = 'com.spotify.client')/Contents/Info.plist" "LSUIElement" -string "1" && killall Spotify | |
# Come back | |
defaults write "$(mdfind kMDItemCFBundleIdentifier = 'com.spotify.client')/Contents/Info.plist" "LSUIElement" -string "0" && killall Spotify |
Spotify crashes on startup for me if LSUIElement is set to 1
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To determine a bundle ID for any given application you can use
mdls
. Here's an example of how to do it for Skype:You'll see the bundle identifier show up in quotes