使用 iPad 作为 Mac 的唯一显示器教程
简介
心心念念的Mac Mini终于到货了 但是没有第二个显示器 刚好很久以前买的ipad pro吃灰很久了 刚好可以拿来当显示器来床上办公(蓄谋已久)
效果图:
准备工作
设备要求
- Mac: 需要运行 macOS Catalina (10.15) 或更高版本。
- iPad: 需要运行 iPadOS 13 或更高版本。
- Apple Pencil (可选): 用于更精确的控制和绘图。
软件要求
- 确保 Mac 和 iPad 都已更新到最新的操作系统版本。
- 确保两台设备都使用相同的 Apple ID 登录 iCloud。
调整显示设置防止熄屏
-
在 Mac 上:
-
打开
系统偏好设置
->用户与群组
->勾选用户名
。 -
打开
系统偏好设置
->通用
->共享
->开启远程登陆选项
。 -
打开
系统偏好设置
->锁定屏幕
->下方三项改为永不
。
-
安装软件并配置连接
-
在 Mac 上:
-
安装
BetterDisplay
点我下载 -
打开软件并创建虚拟屏幕(数值默认即可)
-
打开
系统偏好设置
->通用
->登陆项
->添加BetterDisplay
。 -
打开
系统偏好设置
->显示器
->连接到ipad
。 -
将虚拟屏幕设置为ipad的镜像。
-
创建自动连接ipad快捷指令(将其中ipad名字替换为自己的 例如上图为ipad的镜像 则替换为iPad)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103
on findLastTargetIndex(targetItem, itemList) set lastIndex to 0 repeat with i from (count of itemList) to 1 by -1 if item i of itemList is targetItem then set lastIndex to i exit repeat end if end repeat return lastIndex end findLastTargetIndex beep 1 beep 1 tell application "System Settings" activate delay 1 tell application "System Events" tell process "System Settings" -- 点击菜单栏中的 "Display" 菜单项 click menu item "显示器" of menu "显示" of menu bar item "显示" of menu bar 1 delay 0.3 tell group 1 of group 2 of splitter group 1 of group 1 of window "显示器" try -- 系统设置在冷启动后需要时间加载右侧界面 delay 1 click pop up button "添加" -- 获取 "Add" 菜单中的所有菜单项名称 set menuItems to name of menu items of menu "添加" of pop up button "添加" -- 通过名称查找最后一个匹的索引 set targetIndex to (my findLastTargetIndex("ipad的名字", menuItems)) -- 点击目标菜单项 delay 0.3 click menu item targetIndex of menu "添加" of pop up button "添加" say "" on error delay 0.5 say "" end try end tell end tell end tell end tell delay 1 beep 1 -- 可选:退出系统设置 tell application "System Settings" to quit
-
拓展 启动后自动连接ipad快捷指令(创建后将快捷指令添加到程序坞并勾选“登陆时打开按钮”)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103
on findLastTargetIndex(targetItem, itemList) set lastIndex to 0 repeat with i from (count of itemList) to 1 by -1 if item i of itemList is targetItem then set lastIndex to i exit repeat end if end repeat return lastIndex end findLastTargetIndex beep 1 beep 1 tell application "System Settings" activate delay 1 tell application "System Events" tell process "System Settings" -- 点击菜单栏中的 "Display" 菜单项 click menu item "显示器" of menu "显示" of menu bar item "显示" of menu bar 1 delay 0.3 tell group 1 of group 2 of splitter group 1 of group 1 of window "显示器" try -- 系统设置在冷启动后需要时间加载右侧界面 delay 20 click pop up button "添加" -- 获取 "Add" 菜单中的所有菜单项名称 set menuItems to name of menu items of menu "添加" of pop up button "添加" -- 通过名称查找最后一个匹的索引 set targetIndex to (my findLastTargetIndex("iPad", menuItems)) -- 点击目标菜单项 delay 0.3 click menu item targetIndex of menu "添加" of pop up button "添加" say "" on error delay 0.5 say "" end try end tell end tell end tell end tell delay 1 beep 1 -- 可选:退出系统设置 ----tell application "System Settings" to quit
-
-
在 iPad 上:
-
创建ssh连接快捷指令(用户名和密码都为mac的开机账户密码 主机名为
系统偏好设置
->通用
->共享
->本地主机名
)
-