V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
V2EX  ›  Wenfang  ›  全部回复第 1 页 / 共 1 页
回复总数  1
2025 年 1 月 22 日
回复了 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)
```
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1089 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 14ms · UTC 18:40 · PVG 02:40 · LAX 11:40 · JFK 14:40
♥ Do have faith in what you're doing.