musicx
V2EX  ›  macOS

Dock 位置如何实现自动调整

  •  
  •   musicx · Nov 23, 2014 · 2834 views
    This topic created in 4227 days ago, the information mentioned may be changed or developed.
    我想让dock能在不连接外接显示器的时候放置在屏幕的左边,在连接了外接显示器的时候放在屏幕下方。

    有什么工具可以实现么???
    2 replies    2014-11-23 13:58:17 +08:00
    Daniel65536
        1
    Daniel65536  
       Nov 23, 2014 via iPhone
    defaults write com.apple.dock orientation -string bottom;killall Dock

    defaults write com.apple.dock orientation -string left;killall Dock

    现在,你只需要一个检测是否插了外接显示器的命令了。
    musicx
        2
    musicx  
    OP
       Nov 23, 2014
    @Daniel65536 GOOD!!! 感谢!!!
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2665 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 04:38 · PVG 12:38 · LAX 21:38 · JFK 00:38
    ♥ Do have faith in what you're doing.