2024-09-27 13:56:39 -04:00
|
|
|
import { Astal, Gtk } from 'astal';
|
2024-09-24 16:19:56 -04:00
|
|
|
|
2024-09-26 23:55:06 -04:00
|
|
|
import Battery from './items/battery';
|
2024-09-27 16:35:32 -04:00
|
|
|
import CurrentClient from './items/current-client';
|
2024-09-26 23:55:06 -04:00
|
|
|
|
2024-09-26 15:55:32 -04:00
|
|
|
import BarRevealer from './fullscreen';
|
2024-09-27 16:35:32 -04:00
|
|
|
import Separator from '../misc/separator';
|
2024-09-24 16:19:56 -04:00
|
|
|
|
2024-09-26 11:11:31 -04:00
|
|
|
|
2024-09-24 16:19:56 -04:00
|
|
|
export default () => {
|
|
|
|
return (
|
2024-09-26 15:55:32 -04:00
|
|
|
<BarRevealer
|
2024-09-24 16:19:56 -04:00
|
|
|
exclusivity={Astal.Exclusivity.EXCLUSIVE}
|
|
|
|
anchor={
|
|
|
|
Astal.WindowAnchor.TOP |
|
|
|
|
Astal.WindowAnchor.LEFT |
|
|
|
|
Astal.WindowAnchor.RIGHT
|
|
|
|
}
|
|
|
|
>
|
2024-09-27 16:35:32 -04:00
|
|
|
|
2024-09-27 13:56:39 -04:00
|
|
|
<centerbox className="bar widget">
|
|
|
|
<box hexpand halign={Gtk.Align.START}>
|
2024-09-27 16:35:32 -04:00
|
|
|
<CurrentClient />
|
2024-09-27 13:56:39 -04:00
|
|
|
</box>
|
|
|
|
|
|
|
|
<box>
|
|
|
|
</box>
|
|
|
|
|
|
|
|
<box hexpand halign={Gtk.Align.END}>
|
|
|
|
<Battery />
|
2024-09-27 16:35:32 -04:00
|
|
|
|
|
|
|
<Separator size={2} />
|
2024-09-27 13:56:39 -04:00
|
|
|
</box>
|
|
|
|
</centerbox>
|
2024-09-27 16:35:32 -04:00
|
|
|
|
2024-09-26 15:55:32 -04:00
|
|
|
</BarRevealer>
|
2024-09-24 16:19:56 -04:00
|
|
|
);
|
|
|
|
};
|