V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
goool
V2EX  ›  macOS

如何让 OS X 顶部菜单自动隐藏?

  •  
  •   goool · May 9, 2015 · 5087 views
    This topic created in 4007 days ago, the information mentioned may be changed or developed.
    OS X 给底部的 Dock 提供了自动隐藏的选项,但顶部的菜单没有。

    以往有一个对每个程序修改 LSUIPresentationMode = 4 的办法,但现在无效了(Yosemite)。

    请教下大家,有什么办法没?
    13 replies    2015-05-11 10:07:17 +08:00
    SolLo
        1
    SolLo  
    PRO
       May 9, 2015
    Bartender
    pH
        2
    pH  
       May 9, 2015
    感谢告知,现在才知道原来这个是可以的。
    nikolai
        3
    nikolai  
       May 9, 2015
    如果 App 是从 AppStore 下的,修改参数后需要重新签名:

    sudo codesign -f -s - [/path/to.app]

    例如:sudo codesign -f -s - /Applications/Twitter.app

    **ps: 系统自带的 App 慎用。**
    xx0219
        4
    xx0219  
       May 9, 2015
    @somkanel 好像 没发现 bartender 有这功能啊 能具体点么 谢谢
    txl263
        5
    txl263  
       May 9, 2015
    @somkanel @xx0219 Bartender还能隐藏顶部菜单?
    SolLo
        6
    SolLo  
    PRO
       May 10, 2015
    @txl263
    @xx0219

    抱歉,当做我没说过XD
    codeplay
        7
    codeplay  
       May 10, 2015
    有个软件叫Focus,就是那种让你集中注意力的,他在这种Focus模式下,是完全隐藏菜单栏的
    starklu
        8
    starklu  
       May 10, 2015
    为什么不用全屏呢
    txl263
        9
    txl263  
       May 10, 2015
    @somkanel 哈哈哈,是吧,其实现在10.10自带全屏模式的,直接用就好了,之前也有用bundle进入全屏的方法。
    ariza
        10
    ariza  
       May 10, 2015
    全屏不就可以了
    goool
        11
    goool  
    OP
       May 10, 2015
    @nikolai 不是很明白你的意思。

    全屏有个问题,就是 command + tab 切换应用时,有一个过场动画 which 让我极为讨厌。
    nikolai
        12
    nikolai  
       May 10, 2015   ❤️ 1
    @goool 就是修改 LSUIPresentationMode 后,对用上面的命令对程序重新签名。
    goool
        13
    goool  
    OP
       May 11, 2015
    @nikolai 在 Thunderbird 上试了你说的办法,菜单的确隐藏了,但程序窗口无法利用到菜单原先占据的空间,具体表现为把窗口向上拖,释放光标,窗口会自己向下掉,回到原来的高度。这个表现与我原先没有做 codesign 的表现好像没什么不同。但仍然谢谢你的帮助。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1407 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 72ms · UTC 17:03 · PVG 01:03 · LAX 10:03 · JFK 13:03
    ♥ Do have faith in what you're doing.