nixos-configs/nixosModules/ags/v2/widgets/bar/wim.tsx
matt1432 2dcc17cbb2
All checks were successful
Discord / discord commits (push) Has been skipped
feat(agsV2): add clock
2024-09-27 16:52:33 -04:00

38 lines
877 B
TypeScript

import { Astal, Gtk } from 'astal';
import Battery from './items/battery';
import Clock from './items/clock';
import CurrentClient from './items/current-client';
import BarRevealer from './fullscreen';
import Separator from '../misc/separator';
export default () => (
<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}>
<CurrentClient />
</box>
<box>
<Clock />
</box>
<box hexpand halign={Gtk.Align.END}>
<Battery />
<Separator size={2} />
</box>
</centerbox>
</BarRevealer>
);