nixos-configs/nixosModules/ags/v2/widgets/bar/main.tsx
matt1432 f1ed9770ed
All checks were successful
Discord / discord commits (push) Has been skipped
feat(nvim): make jsx and tsx respect js indentation
2024-09-26 11:11:31 -04:00

35 lines
911 B
TypeScript

import { App, Astal, Gtk, idle, Variable } from 'astal';
import FullscreenState from './fullscreen';
FullscreenState.subscribe((v) => {
console.log(v);
});
const isVisible = Variable<boolean>(false);
export default () => {
return (
<window
className="Bar"
exclusivity={Astal.Exclusivity.EXCLUSIVE}
anchor={
Astal.WindowAnchor.TOP |
Astal.WindowAnchor.LEFT |
Astal.WindowAnchor.RIGHT
}
application={App}
setup={() => idle(() => {
isVisible.set(true);
})}
>
<revealer
revealChild={isVisible()}
transitionType={Gtk.RevealerTransitionType.SLIDE_DOWN}
transitionDuration={500}
>
<label label="hi" />
</revealer>
</window>
);
};