onsdriver's recent timeline updates
onsdriver

onsdriver

V2EX member #626085, joined on 2023-04-26 19:36:01 +08:00
onsdriver's recent replies
考古,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()
```
链接发来,让我仔细研究一下你的法律风险
Sep 13, 2024
Replied to a topic by onsdriver macOS 有没有什么软件可以把两个窗口粘起来
@rukeypei 用户的需求千奇百怪,自定义脚本永远的神
@becomesilent 哎 全是关系户😭
Sep 10, 2024
Replied to a topic by 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 感谢指路
Sep 4, 2024
Replied to a topic by onsdriver macOS 有没有什么软件可以把两个窗口粘起来
没找到什么靠谱的替代啊,AquaSnap 真是完美符合我所有的需求,但是不支持 MacOS😭😭😭😭

继续蹲,走过路过的朋友支支招
Sep 2, 2024
Replied to a topic by onsdriver macOS 有没有什么软件可以把两个窗口粘起来
我去看看类似的软件,感谢!
@chenxuuu
Sep 2, 2024
Replied to a topic by 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.
Sep 2, 2024
Replied to a topic by onsdriver macOS 有没有什么软件可以把两个窗口粘起来
这个需求还是太怪了吗
Aug 29, 2024
Replied to a topic by ounxnpz NAS 组了一个丐版 NAS,看看佬们还有没有更丐的
二手笔记本+硬盘仓
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3165 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 16ms · UTC 13:38 · PVG 21:38 · LAX 06:38 · JFK 09:38
♥ Do have faith in what you're doing.