Fix ags
This commit is contained in:
parent
338b27ab88
commit
e6ed56ade3
|
@ -18,23 +18,15 @@ function SysTray(): JSX.Element {
|
||||||
{bind(tray, "items").as((items) =>
|
{bind(tray, "items").as((items) =>
|
||||||
items.map((item) => {
|
items.map((item) => {
|
||||||
if (item.iconThemePath) App.add_icons(item.iconThemePath);
|
if (item.iconThemePath) App.add_icons(item.iconThemePath);
|
||||||
const menu = item.create_menu();
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<button
|
<menubutton
|
||||||
className="systray"
|
className="systray"
|
||||||
tooltipMarkup={bind(item, "tooltipMarkup")}
|
tooltipMarkup={bind(item, "tooltipMarkup")}
|
||||||
onDestroy={() => menu?.destroy()}
|
usePopover={false}
|
||||||
onClickRelease={(self) => {
|
actionGroup={bind(item, "actionGroup").as(ag => ["dbusmenu", ag])}
|
||||||
menu?.popup_at_widget(
|
menuModel={bind(item, "menuModel")}>
|
||||||
self,
|
<icon gicon={bind(item, "gicon")} className="systray-item" />
|
||||||
Gdk.Gravity.SOUTH,
|
</menubutton>
|
||||||
Gdk.Gravity.NORTH,
|
|
||||||
null,
|
|
||||||
);
|
|
||||||
}}>
|
|
||||||
<icon gIcon={bind(item, "gicon")} className="systray-item" />
|
|
||||||
</button>
|
|
||||||
);
|
);
|
||||||
}),
|
}),
|
||||||
)}
|
)}
|
||||||
|
|
|
@ -184,6 +184,7 @@ return {
|
||||||
rust_analyzer = {},
|
rust_analyzer = {},
|
||||||
gopls = {},
|
gopls = {},
|
||||||
ruff = {},
|
ruff = {},
|
||||||
|
ts_ls= {},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for server, config in pairs(lsp_opts.servers) do
|
for server, config in pairs(lsp_opts.servers) do
|
||||||
|
|
|
@ -23,6 +23,7 @@ local function get_entries() {
|
||||||
entry=$(realpath "$entry")
|
entry=$(realpath "$entry")
|
||||||
fi
|
fi
|
||||||
if [ -d "$entry" ]; then
|
if [ -d "$entry" ]; then
|
||||||
|
echo $entry
|
||||||
fd . "$entry" -t "$file_type"
|
fd . "$entry" -t "$file_type"
|
||||||
else
|
else
|
||||||
cat "$entry"
|
cat "$entry"
|
||||||
|
|
Loading…
Reference in New Issue