Skip to content
This repository was archived by the owner on Sep 8, 2022. It is now read-only.

Interfacing with sara via sarasock

gitluin edited this page Apr 5, 2020 · 6 revisions

Below are the functions that are exposed to the socket client, sarasock, that communicates with sara and passes function calls:

  • view
  • toggledesktop
  • toggleview
  • todesktop
  • changemsize
  • setlayout
  • focusmon
  • tomon
  • zoom (promote to master area)
  • togglefs (fullscreen)
  • togglefloat
  • moveclient
  • movefocus
  • killclient
  • quit (shuts down X and the window manager)

These are all listed in the conversions struct in sara.c.

Functions that cause client movement, focus movement, desktop interfacing, etc. require function arguments. See examples/sxhkdrc. Functions like killclient have arguments like 0 as a passthrough, i.e. values of 1, 5, etc. won't do anything.

Clone this wiki locally