mirror of
https://github.com/tuxdotrs/tpanel.git
synced 2025-10-11 05:11:55 +05:30
feat: migrate to ags v3
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
import { bind, Variable } from "astal";
|
||||
import { createPoll } from "ags/time";
|
||||
|
||||
export const GPU = () => {
|
||||
const gpu = Variable("").poll(5000, ["bash", "-c", "supergfxctl -g"]);
|
||||
const gpu = createPoll("", 5000, ["bash", "-c", "supergfxctl -g"]);
|
||||
|
||||
return (
|
||||
<box cssClasses={["pill"]} spacing={5}>
|
||||
<image iconName="fa-video-card-symbolic" />
|
||||
<label label={bind(gpu).as((val) => val)} />
|
||||
<label label={gpu((val) => val)} />
|
||||
</box>
|
||||
);
|
||||
};
|
||||
|
Reference in New Issue
Block a user