Files
tpanel/widgets/bar/gpu.tsx

12 lines
265 B
TypeScript

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>
);
};