refactor and add modules directory

This commit is contained in:
wt committed 2025-03-10 21:51:05 +07:00
1 parent b272840eae
commit 8f5ad70ed3
13 files changed
+209 -90

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
import Hyprland from "gi://AstalHyprland"
import { bind } from "astal"
export default function FocusedClient() {
const hypr = Hyprland.get_default()
const focused = bind(hypr, "focusedClient")
return <box
className="Focused"
visible={focused.as(Boolean)}>
{focused.as(client => (
client && <label label={bind(client, "title").as(String)} />
))}
</box>
}