summaryrefslogtreecommitdiff
path: root/src/utils/types.ts
blob: d2c1943edcbfc4ef95bb9816abb88b31b42a72c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import type { astalify } from "astal/gtk3";
import type AstalHyprland from "gi://AstalHyprland";

export type AstalWidget = InstanceType<ReturnType<typeof astalify>>;

export type Address = `0x${string}`;

export interface Client {
    address: Address;
    mapped: boolean;
    hidden: boolean;
    at: [number, number];
    size: [number, number];
    workspace: {
        id: number;
        name: string;
    };
    floating: boolean;
    pseudo: boolean;
    monitor: number;
    class: string;
    title: string;
    initialClass: string;
    initialTitle: string;
    pid: number;
    xwayland: boolean;
    pinned: boolean;
    fullscreen: AstalHyprland.Fullscreen;
    fullscreenClient: AstalHyprland.Fullscreen;
    grouped: Address[];
    tags: string[];
    swallowing: string;
    focusHistoryID: number;
    inhibitingIdle: boolean;
}