DTWSM(5)
π NAME π
Dt/Wsm.h β workspace manager definitions.
Okay bestie, this is the Dt/Wsm.h(file formats) manual folded in right near the top β and itβs literally the header that gives you workspace-management structures and function prototypes. Header-file main character energy, no cap. π
π¦ SYNOPSIS π¦
#include &<Dt/Wsm.h>
π DESCRIPTION π
The Dt/Wsm.h header defines structures and function prototypes for workspace management services. Itβs giving βall the workspace-management definitions live here,β and honestly? Slay. β¨
π§ DtWsmWorkspaceInfo struct β member reveal π§
The DtWsmWorkspaceInfo structure contains at least the following members:
Atomworkspaceβ X atom name for the workspace.unsigned longbgβ Backdrop background pixel.unsigned longfgβ Backdrop foreground pixel.AtombackdropNameβ X atom name for backdrop.intcolorSetIdβ Number of color set used.char*pchTitleβ Title of workspace.WindowbackdropWindowβ The backdrop window for the current workspace.tgroup dispwid="6.10in"β yep, this exact line is here too, bestie; keep it. π«Ά
π«Ά DtWsmCBContext β opaque, no peeking π«Ά
The DtWsmCBContext structure is opaque. Workspace management functions that add callbacks to uniquely identify callback functions for later removal, return the DtWsmCBContext structure. So you get the context handle, not the inside tea. π
β DtWsmWsReason constants β
The header defines the following DtWsmWsReason constants:
DtWSM_REASON_ADDDtWSM_REASON_DELETEDtWSM_REASON_BACKDROPDtWSM_REASON_TITLEDtWSM_REASON_CURRENT
π The functions β full prototype lineup π
The header defines the following functions:
DtWsmCBContext
DtWsmAddCurrentWorkspaceCallback(Widget widget,
DtWsmWsChangeProc ws_change,
Pointer client_data);
void DtWsmAddWorkspaceFunctions(Display *display,
Window window);
void DtWsmRemoveWorkspaceFunctions(Display *display,
Window window);
DtWsmCBContext
DtWsmAddWorkspaceModifiedCallback(Widget widget,
DtWsmWsModifiedProc ws_change,
Pointer client_data);
void DtWsmRemoveWorkspaceCallback(DtWsmCBContext context);
void DtWsmFreeWorkspaceInfo(DtWsmWorkspaceInfo *pWsInfo);
Status DtWsmGetCurrentBackdropWindows(Display *display,
Window root);
Status DtWsmGetCurrentWorkspace(Display *display,
Window root,
Atom *paWorkspace);
Status DtWsmSetCurrentWorkspace(Widget widget,
Atom aWorkspace);
Status DtWsmGetWorkspaceInfo(Display *display,
Window root,
Atom aWorkspace,
DtWsmWorkspaceInfo **ppWsInfo);
Status DtWsmGetWorkspaceList(Display *display,
Window root,
Atom **ppaWorkspaces,
int *pNumWs);
Status DtWsmGetWorkspacesOccupied(Display *display,
Window window,
Atom **ppaWorkspace,
int *pNumWs);
void DtWsmSetWorkspacesOccupied(Display *display,
Window window,
Atom *paWorkspaces,
int numWs);
void DtWsmOccupyAllWorkspaces(Display *display,
Window window);
Keep the spellings exactly, bestie: the prototype list hasDtWsmGetCurrentBackdropWindows, and SEE ALSO hasDtWsmGetCurrentBackdropWindow(3)singular. Both stay. π
π SEE ALSO π
Every single reference, in order β no skipping:
DtWsmAddCurrentWorkspaceCallback(3)DtWsmAddWorkspaceFunctions(3)DtWsmAddWorkspaceModifiedCallback(3)DtWsmFreeWorkspaceInfo(3)DtWsmGetCurrentBackdropWindow(3)DtWsmGetCurrentWorkspace(3)DtWsmGetWorkspaceInfo(3)DtWsmGetWorkspaceList(3)DtWsmGetWorkspacesOccupied(3)DtWsmOccupyAllWorkspaces(3)DtWsmRemoveWorkspaceCallback(3)DtWsmRemoveWorkspaceFunctions(3)DtWsmSetCurrentWorkspace(3)DtWsmSetWorkspacesOccupied(3)
π Cute sign-off: the footer tag for this page is Dt/Wsm.h(file formats) β thatβs the source/version/date sign-off vibe, and weβre done. Mwah, bestie! π
π¦ where this page comes from
- nixos 26.05: cde 2.5.3
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms