markdown 如何切换FN按钮行为macbook

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown 如何切换FN按钮行为macbook相关的知识,希望对你有一定的参考价值。

# How to switch FN button behaviour macbook

1- Edit or create the file /etc/modprobe.d/hid_apple.conf, e.g.:
```
$ sudo vim /etc/modprobe.d/hid_apple.conf
```

2- Add this line to the previously open file.
```
options hid_apple fnmode=2
```
3- Save the file and execute the following command to notify hid_apple module to reload it's configuration.
```
$ sudo update-initramfs -u
```
4- Reboot

## Function code

```
0 = disabled : Disable the 'fn' key. Pressing 'fn'+'F8' will behave like you only press 'F8'
1 = fkeyslast : Function keys are used as last key. Pressing 'F8' key will act as a special key. Pressing 'fn'+'F8' will behave like a F8.
2 = fkeysfirst : Function keys are used as first key. Pressing 'F8' key will behave like a F8. Pressing 'fn'+'F8' will act as special key (play/pause)
```

---
### Sources
https://superuser.com/questions/79822/how-to-swap-the-fn-use-of-function-keys-on-an-apple-keyboard-in-linux

以上是关于markdown 如何切换FN按钮行为macbook的主要内容,如果未能解决你的问题,请参考以下文章

markdown 使用切换按钮播放多个序列

如何链接一组切换按钮,如单选按钮?

Word VBA:在选择更改时使 IRibbon 无效(实现粗体切换按钮的行为)

ThinkPad New X1 Carbon 键盘热键,按Fn键后 不能切换,如何可以切换?

无法使用切换行为来触发SWIFTUI中的.buttonStyle

在第二次按下时更改标签栏按钮的行为