WCTL(3)

๐Ÿ“ฆ
version 0_git20260208 ยท 2 versions
  • 0_git20260208 ยท alpine 3.24, nixos 26.05, nixpkgs unstable (latest)
  • arch rolling
, in alpine 3.24, nixos 26.05, nixpkgs unstable

๐Ÿซถ WCTL(3): window management, but make it group-chat ๐Ÿซถ

okay so this is the WCTL(3) page from the Library Functions Manual, and itโ€™s literally about three little routines that talk to your window manager for you. Theyโ€™re giving โ€œmiddleman bestieโ€ energy, no cap. ๐Ÿ’…

โœจ NAME โœจ

drawresizewindow, drawsetlabel, drawtopwindow โ€” window management. periodt. ๐ŸŽ€

๐Ÿ› ๏ธ SYNOPSIS ๐Ÿ› ๏ธ

#include <draw.h>

void drawresizewindow(Rectangle r)

int  drawsetlabel(Display *d, char *name)

void drawtopwindow(void)

๐Ÿ’– DESCRIPTION ๐Ÿ’–

These routines interact with a window manager to set the properties of the window running the current program. They substitute for interacting directly with Plan 9 rioโ€™s /dev/wctl. iykyk โ€” theyโ€™re the substitute bestie for that direct /dev/wctl interaction. ๐Ÿฆ‹

  • drawresizewindow โ€” requests that the programโ€™s window be resized to have the width and height of the rectangle r. Only the width and height are important; the offset is ignored, so donโ€™t stress the offset, bestie. ๐ŸŒธ
  • drawsetlabel โ€” requests that the programโ€™s window title be set to name. Itโ€™s giving rename-your-window realness. ๐ŸŽ€
  • drawtopwindow โ€” requests that the programโ€™s window be moved above all other windows and given the input focus. Main character energy: front and center, focused. ๐Ÿ‘‘

๐Ÿ“ SOURCE ๐Ÿ“

/src/libdraw/wsys.c โ€” thatโ€™s where this lives, iykyk. โญ


later, bestie โ€” signing off from the WCTL(3) page in the Library Functions Manual, undated in this page so no timestamp to spill, with source at /src/libdraw/wsys.c. bye and slay ๐Ÿซถ๐ŸŒˆ๐Ÿ’œ