Skip to content

dwm msg

Mihir Lad edited this page Jul 31, 2020 · 1 revision

dwm-msg is a simple CLI client for interacting with dwm over IPC. It is a great tool for using in bash scripts and the like.

Usage

usage: dwm-msg [options] <command> [...]

Commands:
  run_command <name> [args...]    Run an IPC command

  get_monitors                    Get monitor properties

  get_tags                        Get list of tags

  get_layouts                     Get list of layouts

  get_dwm_client <window_id>      Get dwm client properties

  subscribe [events...]           Subscribe to specified events
                                  Options: tag_change_event,
                                  layout_change_event,
                                  client_focus_change_event,
                                  monitor_focus_change_event,
                                  focused_title_change_event,
                                  focused_state_change_event

  help                            Display this message

Options:
  --ignore-reply                  Don't print reply messages from
                                  run_command and subscribe.

Related Tools

jq is a command-line JSON parser that works great with dwm-msg. The output of dwm-msg commands can be piped into jq to manipulate and/or retrieve information into a more useable format.

Clone this wiki locally