This commit is contained in:
wt committed 2025-03-12 11:47:42 +07:00
1 parent 3edfbc19f6
commit 2f416a1325
15 files changed
+112 -118

No files matched your search

@@ -0,0 +1,4 @@
.Focused {
padding: 0 15px 0 5px;
transition: 300ms;
}
@@ -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>
}