working bar
This commit is contained in:
parent
ed206ad7e5
commit
2c9ff9db2f
8 changed files with 121 additions and 126 deletions
11
widget/time.tsx
Normal file
11
widget/time.tsx
Normal file
|
@ -0,0 +1,11 @@
|
|||
import { GLib, Variable, } from "astal"
|
||||
|
||||
export default function Time({ }) {
|
||||
const time = Variable<string>("").poll(1000, () => GLib.DateTime.new_now_local().format("%H:%M")!)
|
||||
|
||||
return <label
|
||||
cssName="Time"
|
||||
onDestroy={() => time.drop()}
|
||||
label={time()} />
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue