diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-03-31 23:02:52 +1100 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-03-31 23:02:52 +1100 |
| commit | 8fab7d4b65cd16769d3ef48e44da3f8ed75582ed (patch) | |
| tree | cd711556a1f894f8ba8420fe6b249ae58733ca06 /src/modules/screencorners.tsx | |
| parent | bar: add error for no wireplumber (diff) | |
| download | caelestia-shell-8fab7d4b65cd16769d3ef48e44da3f8ed75582ed.tar.gz caelestia-shell-8fab7d4b65cd16769d3ef48e44da3f8ed75582ed.tar.bz2 caelestia-shell-8fab7d4b65cd16769d3ef48e44da3f8ed75582ed.zip | |
feat: fake screen rounding
Diffstat (limited to 'src/modules/screencorners.tsx')
| -rw-r--r-- | src/modules/screencorners.tsx | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/modules/screencorners.tsx b/src/modules/screencorners.tsx new file mode 100644 index 0000000..63e7221 --- /dev/null +++ b/src/modules/screencorners.tsx @@ -0,0 +1,24 @@ +import type { Monitor } from "@/services/monitors"; +import ScreenCorner from "@/widgets/screencorner"; +import { bind } from "astal/binding"; +import { Astal } from "astal/gtk3"; +import { bar } from "config"; + +export default ({ monitor }: { monitor: Monitor }) => ( + <window + namespace="caelestia-screencorners" + monitor={monitor.id} + anchor={bind(bar.vertical).as( + v => + Astal.WindowAnchor.BOTTOM | + Astal.WindowAnchor.RIGHT | + (v ? Astal.WindowAnchor.TOP : Astal.WindowAnchor.LEFT) + )} + > + <box vertical={bind(bar.vertical)}> + <ScreenCorner place={bind(bar.vertical).as(v => (v ? "topright" : "bottomleft"))} /> + <box expand /> + <ScreenCorner place="bottomright" /> + </box> + </window> +); |