refactor and add modules directory
This commit is contained in:
1 parent
b272840eae
commit
8f5ad70ed3
13 files changed
+209
-90
No files matched your search
@@ -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>
|
||||
}
|
||||
Reference in new issue
Block a user