V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
musicx
V2EX  ›  macOS

Dock 位置如何实现自动调整

  •  
  •   musicx · 2014-11-23 13:20:18 +08:00 · 2289 次点击
    这是一个创建于 3439 天前的主题,其中的信息可能已经有所发展或是发生改变。
    我想让dock能在不连接外接显示器的时候放置在屏幕的左边,在连接了外接显示器的时候放在屏幕下方。

    有什么工具可以实现么???
    2 条回复    2014-11-23 13:58:17 +08:00
    Daniel65536
        1
    Daniel65536  
       2014-11-23 13:43:38 +08:00 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
       2014-11-23 13:58:17 +08:00
    @Daniel65536 GOOD!!! 感谢!!!
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1053 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 19:07 · PVG 03:07 · LAX 12:07 · JFK 15:07
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.