mirror of
https://github.com/tuxdotrs/tpanel.git
synced 2025-10-10 21:01:54 +05:30
13 lines
317 B
TypeScript
13 lines
317 B
TypeScript
import { bind, Variable } from "astal";
|
|
|
|
export const GPU = () => {
|
|
const gpu = Variable("").poll(5000, ["bash", "-c", "supergfxctl -g"]);
|
|
|
|
return (
|
|
<box cssClasses={["pill"]} spacing={5}>
|
|
<image iconName="fa-video-card-symbolic" />
|
|
<label label={bind(gpu).as((val) => val)} />
|
|
</box>
|
|
);
|
|
};
|