mirror of
https://github.com/tuxdotrs/tpanel.git
synced 2025-10-10 12:51:54 +05:30
12 lines
265 B
TypeScript
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>
|
|
);
|
|
};
|