SugarRush
import { SugarRush } from "https://gist.githubusercontent.com/MindfulMinun/80ac136be45a5eb0fd2d0793da27ebb9/raw/sugarrush.ts";
An IPC wrapper to interface with Hyprland compositors.
class SugarRush {}
constructor(instanceSignature?: string);
private close1();
private async open1();
activewindow();
activeworkspace();
binds();
clients();
cursorpos();
decorations(query: string);
devices();
dismissnotify(count?: number);
dispatch<Dispatcher extends keyof DispatchersArgs>(dispatcher: Dispatcher, ...commands: DispatchersArgs[Dispatcher]);
async *events();
async hyprctl(cmd: string);
async hyprctlJson<T = unknown>(cmd: string);
instances();
layers();
layouts();
monitors();
notify({ icon, duration, color, message }: {
icon?: Icons;
duration?: number;
color?: number;
message: string;
});version();
workspaces();
§Methods
§
dispatch<Dispatcher extends keyof DispatchersArgs>(dispatcher: Dispatcher, ...commands: DispatchersArgs[Dispatcher])
[src]§
monitors()
[src]Lists active outputs with their properties, 'monitors all' lists active and inactive outputs