mirror of
https://github.com/tuxdotrs/tshell.git
synced 2026-09-19 18:49:02 +05:30
feat: migrate to ags v3
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
import { bind, Variable } from "astal";
|
||||
import { createPoll } from "ags/time";
|
||||
|
||||
export const Profile = () => {
|
||||
const profile = Variable("").poll(5000, ["bash", "-c", "asusctl profile -p"]);
|
||||
const profile = createPoll("", 5000, ["bash", "-c", "asusctl profile -p"]);
|
||||
|
||||
return (
|
||||
<box cssClasses={["pill"]} spacing={5}>
|
||||
<image iconName="fa-speed-symbolic" />
|
||||
<label
|
||||
label={bind(profile).as((val) => {
|
||||
label={profile((val) => {
|
||||
const data = val.split(" ");
|
||||
return data[data.length - 1];
|
||||
})}
|
||||
|
||||
Reference in New Issue
Block a user