onsdriver 最近的时间轴更新
onsdriver

onsdriver

V2EX 第 626085 号会员,加入于 2023-04-26 19:36:01 +08:00
onsdriver 最近回复了
考古,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()
```
链接发来,让我仔细研究一下你的法律风险
213 天前
回复了 onsdriver 创建的主题 macOS 有没有什么软件可以把两个窗口粘起来
@rukeypei 用户的需求千奇百怪,自定义脚本永远的神
@becomesilent 哎 全是关系户😭
216 天前
回复了 onsdriver 创建的主题 macOS 有没有什么软件可以把两个窗口粘起来
已经使用 hammerspoon 解决,虽然不是很丝滑但也足矣!!

效果:


代码:
```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 感谢指路
222 天前
回复了 onsdriver 创建的主题 macOS 有没有什么软件可以把两个窗口粘起来
没找到什么靠谱的替代啊,AquaSnap 真是完美符合我所有的需求,但是不支持 MacOS😭😭😭😭

继续蹲,走过路过的朋友支支招
224 天前
回复了 onsdriver 创建的主题 macOS 有没有什么软件可以把两个窗口粘起来
我去看看类似的软件,感谢!
@chenxuuu
224 天前
回复了 onsdriver 创建的主题 macOS 有没有什么软件可以把两个窗口粘起来
@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.
224 天前
回复了 onsdriver 创建的主题 macOS 有没有什么软件可以把两个窗口粘起来
这个需求还是太怪了吗
228 天前
回复了 ounxnpz 创建的主题 NAS 组了一个丐版 NAS,看看佬们还有没有更丐的
二手笔记本+硬盘仓
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2919 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 14ms · UTC 14:48 · PVG 22:48 · LAX 07:48 · JFK 10:48
Developed with CodeLauncher
♥ Do have faith in what you're doing.