feat: move status-bar to seperate repository, initial commit
This commit is contained in:
10
widget/disk.tsx
Normal file
10
widget/disk.tsx
Normal file
@@ -0,0 +1,10 @@
|
||||
import { bind, Variable } from "astal"
|
||||
import { get_disk_space } from "./cpu"
|
||||
|
||||
let disk_space = Variable(get_disk_space()).poll(5000, () => get_disk_space())
|
||||
export default function Disk() {
|
||||
return <box className="status-box">
|
||||
<label label={bind(disk_space).as((s) => `${s}`)} />
|
||||
</box>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user