nixos-configs/nixosModules/ags/v2/widgets/bar/wim.tsx
matt1432 11223860f7
All checks were successful
Discord / discord commits (push) Has been skipped
fix(agsV2): use agsV1 logic for battery icons
2024-09-27 13:56:39 -04:00

31 lines
737 B
TypeScript

import { Astal, Gtk } from 'astal';
import Battery from './items/battery';
import BarRevealer from './fullscreen';
export default () => {
return (
<BarRevealer
exclusivity={Astal.Exclusivity.EXCLUSIVE}
anchor={
Astal.WindowAnchor.TOP |
Astal.WindowAnchor.LEFT |
Astal.WindowAnchor.RIGHT
}
>
<centerbox className="bar widget">
<box hexpand halign={Gtk.Align.START}>
</box>
<box>
</box>
<box hexpand halign={Gtk.Align.END}>
<Battery />
</box>
</centerbox>
</BarRevealer>
);
};