diff --git a/widget/bar/index.tsx b/widget/bar/index.tsx index 914d8ea..5c45a77 100644 --- a/widget/bar/index.tsx +++ b/widget/bar/index.tsx @@ -2,6 +2,7 @@ import { App, Astal, Gdk } from "astal/gtk4"; import { FocusedClient, WorkspaceButton } from "./workspace"; import { Battery } from "./battery"; import { Launcher } from "./launcher"; +import { Tailscale } from "./tailscale"; export const WINDOW_NAME = "bar"; @@ -41,5 +42,10 @@ const Center = () => { }; const End = () => { - return ; + return ( + + + + + ); }; diff --git a/widget/bar/tailscale.tsx b/widget/bar/tailscale.tsx new file mode 100644 index 0000000..d1ce343 --- /dev/null +++ b/widget/bar/tailscale.tsx @@ -0,0 +1,20 @@ +import { bind, Variable } from "astal"; + +export const Tailscale = () => { + const tailscale = Variable("").poll(5000, [ + "bash", + "-c", + "tailscale ping vega", + ]); + + return ( + + + ); +};