onsdriver |
| macOS • onsdriver 有没有什么软件可以把两个窗口粘起来 2024 年 9 月 5 日 • 最后回复来自 onsdriver | 10 |
| Blog • onsdriver 写了个 mkdocs AI 摘要插件 2024 年 5 月 27 日 |
onsdriver 最近回复了
| 回复了 vvvvvvvvvvvvv7 创建的主题 › Mac 可以创建这样的捷径吗, Mac 连接 AirPods 时,自动调节音量到 30% ?2025 年 4 月 7 日 |
考古,hammerspoon:
```
-- 切换到 AirPods Pro 的时候自动调整音量
-- 不然真的要聋了
hs.audiodevice.watcher.setCallback(function()
local now_device = hs.audiodevice.defaultEffectDevice()
if now_device:name() == "yang 的 AirPods Pro" then
hs.audiodevice.defaultOutputDevice():setVolume(25)
hs.alert.show("已切换到 yang 的 AirPods Pro")
end
end)
hs.audiodevice.watcher.start()
```
```
-- 切换到 AirPods Pro 的时候自动调整音量
-- 不然真的要聋了
hs.audiodevice.watcher.setCallback(function()
local now_device = hs.audiodevice.defaultEffectDevice()
if now_device:name() == "yang 的 AirPods Pro" then
hs.audiodevice.defaultOutputDevice():setVolume(25)
hs.alert.show("已切换到 yang 的 AirPods Pro")
end
end)
hs.audiodevice.watcher.start()
```
| 回复了 ddczl 创建的主题 › 最近想做一些擦边的东西,服务器想架在外面,哪家服务器实惠2024 年 11 月 8 日 |
链接发来,让我仔细研究一下你的法律风险
| 回复了 onsdriver 创建的主题 › 有没有什么软件可以把两个窗口粘起来2024 年 9 月 13 日 |
@rukeypei 用户的需求千奇百怪,自定义脚本永远的神
| 回复了 becomesilent 创建的主题 › 公司招了一个实习生,该怎么给他派活能让他快速上手已有项目?2024 年 9 月 11 日 |
@becomesilent 哎 全是关系户😭
| 回复了 onsdriver 创建的主题 › 有没有什么软件可以把两个窗口粘起来2024 年 9 月 10 日 |
已经使用 hammerspoon 解决,虽然不是很丝滑但也足矣!!
效果:
https://i.imgur.com/H2re4F9.gif
代码:
```lua
local function moveChatGPT()
local targetFrame = hs.application.applicationsForBundleID("ru.keepcoder.Telegram")[1]:focusedWindow():frame()
local gpt = hs.application.applicationsForBundleID("com.openai.chat")[1]:allWindows()[1]
targetFrame.y = targetFrame.y + targetFrame.h
targetFrame.h = targetFrame.h / 2
gpt:setFrame(targetFrame)
end
local telegramWindowFilter = hs.window.filter.new(false):setAppFilter('Telegram')
telegramWindowFilter:subscribe(hs.window.filter.windowMoved, moveChatGPT)
```
@q534 可以参考我的
@chenxuuu 感谢指路
效果:
https://i.imgur.com/H2re4F9.gif
代码:
```lua
local function moveChatGPT()
local targetFrame = hs.application.applicationsForBundleID("ru.keepcoder.Telegram")[1]:focusedWindow():frame()
local gpt = hs.application.applicationsForBundleID("com.openai.chat")[1]:allWindows()[1]
targetFrame.y = targetFrame.y + targetFrame.h
targetFrame.h = targetFrame.h / 2
gpt:setFrame(targetFrame)
end
local telegramWindowFilter = hs.window.filter.new(false):setAppFilter('Telegram')
telegramWindowFilter:subscribe(hs.window.filter.windowMoved, moveChatGPT)
```
@q534 可以参考我的
@chenxuuu 感谢指路
| 回复了 onsdriver 创建的主题 › 有没有什么软件可以把两个窗口粘起来2024 年 9 月 4 日 |
没找到什么靠谱的替代啊,AquaSnap 真是完美符合我所有的需求,但是不支持 MacOS😭😭😭😭
继续蹲,走过路过的朋友支支招
继续蹲,走过路过的朋友支支招
| 回复了 onsdriver 创建的主题 › 有没有什么软件可以把两个窗口粘起来2024 年 9 月 2 日 |
我去看看类似的软件,感谢!
@chenxuuu
@chenxuuu
| 回复了 onsdriver 创建的主题 › 有没有什么软件可以把两个窗口粘起来2024 年 9 月 2 日 |
@chenxuuu 好像不支持 MacOS
> AquaSnap is compatible with all Windows versions, from Windows 7 to Windows 11, with true 64-bit support. We will do our absolute best to support all future Windows versions.
> AquaSnap is compatible with all Windows versions, from Windows 7 to Windows 11, with true 64-bit support. We will do our absolute best to support all future Windows versions.
| 回复了 onsdriver 创建的主题 › 有没有什么软件可以把两个窗口粘起来2024 年 9 月 2 日 |
这个需求还是太怪了吗
| 回复了 ounxnpz 创建的主题 › 组了一个丐版 NAS,看看佬们还有没有更丐的2024 年 8 月 29 日 |
二手笔记本+硬盘仓