working bar
This commit is contained in:
parent
ed206ad7e5
commit
2c9ff9db2f
8 changed files with 121 additions and 126 deletions
22
widget/systray.tsx
Normal file
22
widget/systray.tsx
Normal file
|
@ -0,0 +1,22 @@
|
|||
import { bind } from "astal"
|
||||
import AstalTray from "gi://AstalTray?version=0.1"
|
||||
|
||||
export default function Systray() {
|
||||
const tray = AstalTray.get_default()
|
||||
|
||||
return <box cssClasses={["SysTray"]} >
|
||||
{
|
||||
bind(tray, "items").as(items => items.map(item => (
|
||||
<menubutton
|
||||
tooltipMarkup={bind(item, "tooltipMarkup")}
|
||||
menuModel={bind(item, "menuModel")}
|
||||
setup={(self) => {
|
||||
self.insert_action_group("dbusmenu", item.actionGroup)
|
||||
}}
|
||||
>
|
||||
<image gicon={bind(item, "gicon")} />
|
||||
</menubutton>
|
||||
)))
|
||||
}
|
||||
</box >
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue