- AGS v3.1.0 (Astal/GTK3) Ghost Shell avec ghost mode (heartbeat + hover reveal) - Modules : clock, battery, volume (interactif), network, MPRIS, CPU/RAM, systray - Brain Power panel (Super + B) — lecture live focus/todos/session - tetardtek_ prompt avec curseur clignotant - Palette violet-chaton v2 documentée (Mitsuri Kanroji gradient magenta → green) - Autostart COSMIC via .desktop - Archive AGS v1 conservée pour référence
25 lines
634 B
TypeScript
25 lines
634 B
TypeScript
import AstalTray from "gi://AstalTray"
|
|
import Gtk from "gi://Gtk?version=3.0"
|
|
import { createBinding, For } from "ags"
|
|
|
|
export default function SysTray() {
|
|
const tray = AstalTray.get_default()
|
|
const items = createBinding(tray, "items")
|
|
|
|
return (
|
|
<box class="systray">
|
|
<For each={items}>
|
|
{(item) => (
|
|
<button
|
|
class="systray-item"
|
|
tooltipText={createBinding(item, "tooltipMarkup")}
|
|
onClicked={() => item.activate(0, 0)}
|
|
>
|
|
<icon pixelSize={16} gicon={createBinding(item, "gicon")} />
|
|
</button>
|
|
)}
|
|
</For>
|
|
</box>
|
|
)
|
|
}
|