hyprland client widget

This commit is contained in:
Benjamin Palko 2025-04-04 09:49:43 -04:00
parent 9f2db8d7e9
commit b616582728
2 changed files with 21 additions and 0 deletions

View file

@ -0,0 +1,14 @@
import { bind } from "astal";
import Hyprland from "gi://AstalHyprland";
const hyprland = Hyprland.get_default();
function Client() {
return (
<label
label={bind(hyprland, "focused_client").as((fc) => fc.initialTitle)}
/>
);
}
export default Client;

7
widget/Hyprland/index.ts Normal file
View file

@ -0,0 +1,7 @@
import Client from "./client";
const Hyprland = {
Client,
};
export default Hyprland;