import { bind, Variable } from "astal";

export const GPU = () => {
  const gpu = Variable("").poll(5000, ["bash", "-c", "supergfxctl -g"]);

  return (
    <box cssClasses={["pill"]}>
      <label label={bind(gpu).as((val) => `GPU: ${val}`)} />
    </box>
  );
};
