hyprland client widget
This commit is contained in:
parent
9f2db8d7e9
commit
b616582728
2 changed files with 21 additions and 0 deletions
14
widget/Hyprland/client.tsx
Normal file
14
widget/Hyprland/client.tsx
Normal 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
7
widget/Hyprland/index.ts
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
import Client from "./client";
|
||||
|
||||
const Hyprland = {
|
||||
Client,
|
||||
};
|
||||
|
||||
export default Hyprland;
|
||||
Loading…
Add table
Reference in a new issue