1
0
Fork 0
mirror of https://github.com/pnx/dotfiles synced 2026-08-18 09:38:12 +02:00

opencode: add OAC

This commit is contained in:
Henrik Hautakoski 2026-07-08 10:26:58 +02:00
parent a9fc1ca56e
commit 863c63a84b
216 changed files with 39215 additions and 37 deletions

17
opencode/plugin/notify.ts Normal file
View file

@ -0,0 +1,17 @@
import type { Plugin } from "@opencode-ai/plugin"
// CONFIGURATION: Set to true to enable this plugin
const ENABLED = true
export const Notify: Plugin = async ({ $ }) => {
// Plugin disabled - set ENABLED = true to activate
if (!ENABLED) return {}
return {
async event(input) {
if (input.event.type === "session.idle") {
await $`notify-send t 10000 "Opencode" "Your code is done!"`
}
},
}
}