用于菜单栏或托盘中的小型桌面应用构建模块
概览
这些都是菜单栏、托盘或口袋里小巧配套应用的构建模块:每个应用都需要的部分,没人愿意重复写。Swift适用于macOS和iOS,.NET适用于Windows,Kotlin用于Android。麻省理工学院。 Deskling 起源于 mybackhurts(它被发货),以及正在开发中的桌面伙伴 sunnysays,其角色成为了伴侣层。Mister Pagliacci,一个从菜单栏讲笑话的小丑,是基于该层构建的第二个伴随应用(设计上)。在第二个应用确定 API 之前,它是 0.x,因此次要版本可能会改变公开类型。 Deskling 是原样共享的,任何人都可以使用,但它是为这些应用设计的:它的问题是拥有者自己的计划,问题和他人的拉取请求不会被监控,发布内容也遵循应用的需求。 Kotlin,适用于Android(kotlin/,一个Gradle构建,应用包含在子模块中;tools/README.md):deskling。
概述(AI 翻译)
为菜单栏、托盘或口袋里的小型伴随应用构建模块:每个部件都是这样的 应用需要,没人愿意重复写。macOS和iOS用Swift,Windows用.NET,Android用Kotlin。麻省理工。
拉钦是从我的背痛中生长出来的,这让它成为配对,Sunny说,一个
正在开发中的桌上伙伴,其角色成为了伴侣层。丑角先生,一位
Clown 会从菜单栏讲笑话,是第二个基于该层(设计上)的配套应用。它一直处于0.x直到
第二个应用已经确定了API,因此小版本可能会改变公共类型。
无支持。 Laching 是按原样共享的,任何人都可以使用,但它是为这些应用设计的:它的 问题是所有者自己的计划、问题和从 其他的则不受监控,发布内容遵循应用的需求。
里面是什么
| Swift 产品 | .NET 软件包 | 它的作用 |
|---|---|---|
LachingCore |
Laching.Core |
纯逻辑。ReminderScheduler:一个带有活跃时间和工作日的间隔计时器,安静时间,闲置重置(“你不在,计时器重新开始”),用户忙碌时的等待,之后有宽限期,贪睡,“下次通话后”和暂停。 |
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Laching
Building blocks for little companion apps that live in the menu bar, the tray or your pocket: the parts every such app needs and nobody wants to write twice. Swift for macOS and iOS, .NET for Windows, Kotlin for Android. MIT.
Laching grew out of mybackhurts, which ships it, and sunnysays, a
desk companion in development whose character became the companion layer. Mister Pagliacci, a
clown who tells jokes from the menu bar or the tray, is the second companion app built on that layer (in development,
for Mac and Windows). It is 0.x until the second app has settled the API, so minor versions may change public types.
No support. Laching is shared as is, for anyone to use, but it is built for these apps: its issues are the owner’s own plans, issues and pull requests from others aren’t monitored, and releases follow what the apps need.
What’s inside
| Swift product | .NET package | What it does |
|---|---|---|
LachingCore |
Laching.Core |
Pure logic. ReminderScheduler: an interval timer with active hours and weekdays, quiet hours, an idle reset (“you were away, the timer restarts”), a hold while the user is busy with a grace period after, snooze, “after my next call” and pause. Clock, IdleTimeProvider and BusyStateProvider protocols so it runs on an injected clock. A seeded SplitMix64 random source for deterministic jitter. The drawing math (SVG path sampling, keyframes, polylines, a hand-drawn wobble), in Swift on Apple platforms (over CoreGraphics) and in Kotlin only: it has no C# port. Otherwise no OS or UI dependencies, so it builds anywhere Swift, .NET or Kotlin runs. |
LachingCompanion |
Laching.Companion |
The pure core of a desk companion: a phrase bank and picker (lines, jokes told in beats, tunes; scoped by skin, flavor and language), chatter cadence presets, quiet rules and mood, write-through settings an app subclasses, a coordinator that replays a whole day from a seed, desktop presence, skins, and a rig that animates vector or raster character art. The app injects its lines, defaults, skins and palette; the .NET side loads them from the JSON the Swift side writes (PhraseBank.Parse, CharacterArt.Parse). |
LachingSystem |
Laching.Windows |
The real providers. Idle time from the last input event. Call detection without permissions: whether another app is using the camera or the microphone, read from device state (CoreAudio’s process list on macOS, the capability consent store on Windows), never by opening a device. Full-screen detection. Power source (battery, charging, level). Output muted and route. Screen locked. Appearance changes. |
推荐工具
换一个关键词,或者移除筛选条件。
安装
npx skillfish add vmihalachi/deskling