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

OSX 如何快速切换媒体键/Fn 功能键

  •  
  •   Suclogger · 2015-09-13 23:33:12 +08:00 · 2330 次点击
    这是一个创建于 3362 天前的主题,其中的信息可能已经有所发展或是发生改变。

    如图中的设置项:
    因为写代码的时候要用到 Fn ,但是不写代码的时候媒体控制功能就比较实用
    ps.没带外接键盘

    第 1 条附言  ·  2015-09-14 09:06:08 +08:00
    将 @ffffwh 提供的 applescript 包装成了一个 alfred workflow ,感兴趣的可以下载使用。谢谢 @ffffwh

    https://github.com/suclogger/alfred-toggle-function-media-key
    11 条回复    2015-09-14 11:40:40 +08:00
    Suclogger
        1
    Suclogger  
    OP
       2015-09-13 23:33:29 +08:00
    crystone
        2
    crystone  
       2015-09-13 23:58:47 +08:00
    如果能设置一个全局快捷键最好了
    gongziheng1995
        3
    gongziheng1995  
       2015-09-14 00:16:27 +08:00   ❤️ 1
    Palua will do exactlly what you need.


    Introducing Palua, the easy way to quickly switch the mode of your Function Keys on any Mac keyboard!

    You need to run a game, or start a graphic application, or work on a project that need F1-F12 as function keys, just hit option+command+TAB and the switch will happen.

    Smart Mode: Key mode changes with the application that has the focus.


    https://itunes.apple.com/us/app/palua/id431494195?mt=12
    gongziheng1995
        4
    gongziheng1995  
       2015-09-14 00:17:27 +08:00   ❤️ 2
    FunctionFlip might be what you're looking for.


    FunctionFlip's purpose is simply to disable the special features — rewind, play, mute, etc. — on the function keys. For example, if you "flip" F7, F8, and F9, those keys — only those keys — will revert back to normal F keys. Press the fn key with the special key to get the special function back. That is, the "special" and "normal" functions are flipped.

    To assign a custom shortcuts to your reclaimed keys, use a program like Quicksilver or Keyboard Maestro.


    http://kevingessner.com/software/functionflip/
    paicha
        5
    paicha  
       2015-09-14 00:21:21 +08:00
    ffffwh
        6
    ffffwh  
       2015-09-14 00:53:29 +08:00   ❤️ 1
    Here is an apple script doing this
    >>>>
    tell application "System Preferences"
    set current pane to pane "com.apple.preference.keyboard"
    end tell

    tell application "System Events"
    tell tab group 1 of window 1 of process "System Preferences"
    click radio button 1
    click checkbox 1
    end tell
    end tell
    quit application "System Preferences"
    <<<<
    Save it as an application, grant accessiblity to it, and make a service to run it. Assign a shortcut if you would like to.
    pH
        7
    pH  
       2015-09-14 06:49:10 +08:00 via iPad
    我好奇一点,这个和没外接键盘有啥关系
    Suclogger
        8
    Suclogger  
    OP
       2015-09-14 08:22:50 +08:00
    @pH 外接如果是全键盘的话自带 Fn 嘛,媒体键可以用自带键盘上的
    Suclogger
        9
    Suclogger  
    OP
       2015-09-14 08:25:53 +08:00
    @gongziheng1995 很棒,可惜作者 12 年以来都没有更新了
    xiaket
        10
    xiaket  
       2015-09-14 11:13:30 +08:00
    Karabiner 加少量配置就可以实现.
    canautumn
        11
    canautumn  
       2015-09-14 11:40:40 +08:00
    @Suclogger 不更新是不需要更新…… Paula 我用的挺好。这种功能稳定的 App 总更新其实是坏事,那样岂不是 Bug 太多?
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   3383 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 00:41 · PVG 08:41 · LAX 16:41 · JFK 19:41
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.