nixos-configs/nixosModules/ags/v2/widgets/bar/wim.tsx
matt1432 cb617cbb91
All checks were successful
Discord / discord commits (push) Has been skipped
feat(agsV2): add workspaces and fix types
2024-09-27 21:14:58 -04:00

43 lines
994 B
TypeScript

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