nosignal-shell/src/utils/types.ts
2 * r + 2 * t 0274360617 refactor: astal widget type
There is no base type, but the return type of astalify works
2025-02-11 20:58:53 +11:00

35 lines
849 B
TypeScript

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;
}