From 3c579d0e275cdaf6f2c9589abade94bde7905c82 Mon Sep 17 00:00:00 2001
From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>
Date: Sat, 26 Apr 2025 22:36:23 +1000
Subject: clean

Remove everything
---
 src/modules/screencorners.tsx | 51 -------------------------------------------
 1 file changed, 51 deletions(-)
 delete mode 100644 src/modules/screencorners.tsx

(limited to 'src/modules/screencorners.tsx')

diff --git a/src/modules/screencorners.tsx b/src/modules/screencorners.tsx
deleted file mode 100644
index 4368b87..0000000
--- a/src/modules/screencorners.tsx
+++ /dev/null
@@ -1,51 +0,0 @@
-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";
-import Cairo from "gi://cairo";
-
-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)
-        )}
-        setup={self =>
-            self.connect("size-allocate", () => self.get_window()?.input_shape_combine_region(new Cairo.Region(), 0, 0))
-        }
-    >
-        <box vertical={bind(bar.vertical)}>
-            <ScreenCorner place={bind(bar.vertical).as(v => (v ? "topright" : "bottomleft"))} />
-            <box expand />
-            <ScreenCorner place="bottomright" />
-        </box>
-    </window>
-);
-
-export const BarScreenCorners = ({ monitor }: { monitor: Monitor }) => (
-    <window
-        namespace="caelestia-screencorners"
-        monitor={monitor.id}
-        anchor={bind(bar.vertical).as(
-            v =>
-                Astal.WindowAnchor.TOP |
-                Astal.WindowAnchor.LEFT |
-                (v ? Astal.WindowAnchor.BOTTOM : Astal.WindowAnchor.RIGHT)
-        )}
-        visible={bind(bar.style).as(s => s === "embedded")}
-        setup={self =>
-            self.connect("size-allocate", () => self.get_window()?.input_shape_combine_region(new Cairo.Region(), 0, 0))
-        }
-    >
-        <box vertical={bind(bar.vertical)}>
-            <ScreenCorner place="topleft" />
-            <box expand />
-            <ScreenCorner place={bind(bar.vertical).as(v => (v ? "bottomleft" : "topright"))} />
-        </box>
-    </window>
-);
-- 
cgit v1.2.3-freya

