Wenfang 最近的时间轴更新
Wenfang

Wenfang

V2EX 第 418786 号会员,加入于 2019-06-04 22:17:27 +08:00
Wenfang 最近回复了
29 天前
回复了 dawee2y 创建的主题 macOS mac 系统无法记住 AirPods 音量
补充 #24 ,用下面的 hammerspoon 配置可以用快捷键提示当前的音量

```lua
-- Function to print the current volume
function printCurrentVolume()
local volume = hs.audiodevice.defaultOutputDevice():volume()
hs.alert.show("Current volume: " .. volume)
end

-- Bind the function to a hotkey, for example, Ctrl + Alt + V
hs.hotkey.bind({"ctrl", "alt"}, "V", printCurrentVolume)
```
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2942 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 11ms · UTC 14:12 · PVG 22:12 · LAX 06:12 · JFK 09:12
Developed with CodeLauncher
♥ Do have faith in what you're doing.