send ipc messages to dwl
  • C 93.5%
  • Makefile 6.5%
Find a file
2025-07-02 23:30:30 +08:00
protocols dwlmsg: initial commit 2023-11-03 23:58:35 +08:00
arg.h dwlmsg: initial commit 2023-11-03 23:58:35 +08:00
dwlmsg.c fix usage printf to use 1$ instead of repeat argv0 2025-07-02 23:30:30 +08:00
LICENSE LICENSE 2025-07-01 09:34:58 +08:00
Makefile Makefile: use pkg-config to find wayland-client 2025-01-14 12:02:24 +08:00
README dwlmsg: allow toggling seltags 2024-05-06 12:44:01 +08:00

dwlmsg - send ipc messages to dwl

usage:	dwlmsg [-OTLP]
	dwlmsg [-o <output>] -s [-t <tags>] [-l <layout>] [-c <tags>]
	dwlmsg [-o <output>] (-g | -w) [-Ootlcvmf]

options:
-g	get
-s	set
-w	watch
-O	get all outputs
-T	get number of tags
-L	get all available layouts
-P	get compositor pid
-o	select output
-t	get/set selected tags (set with [+-^.], overwrite with ! prefix)
-l	get/set current layout
-c	get title and appid of focused client
-v	get visibility of statusbar
-m	get fullscreen status
-f	get floating status

examples:
	# act like dwl stdout
	dwlmsg -w

	# watch focused client appid and title
	dwlmsg -w -c

	# get all available outputs
	dwlmsg -O

	# watch available outputs
	dwlmsg -w -O

	# select tag 1, deselect tag 2, toggle tag 4 on output eDP-1
	dwlmsg -o eDP-1 -s -t +-.^

	# toggle tag 3, overwriting current tagset (yes, zero-indexed)
	dwlmsg -t !2^

	# select tag 8 on current output
	dwlmsg -s -t 7

	# deselect tag 8 on current output
	dwlmsg -s -t 7-

	# switch to first layout (order given by dwlmsg -L)
	dwlmsg -l 0

	# switch to floating layout
	dwlmsg -l '><>'