summaryrefslogtreecommitdiffstats
path: root/workspace.txt
diff options
context:
space:
mode:
Diffstat (limited to 'workspace.txt')
-rw-r--r--workspace.txt35
1 files changed, 35 insertions, 0 deletions
diff --git a/workspace.txt b/workspace.txt
new file mode 100644
index 0000000..d9b3020
--- /dev/null
+++ b/workspace.txt
@@ -0,0 +1,35 @@
+# https://raw.githubusercontent.com/swaywm/sway/master/sway/sway-ipc.7.scd
+
+
+node types:
+
+ root
+ output
+ workspace
+ floating_con
+ con
+
+
+
+GET /workspaces :: [Workspace] (in arbitrary order; may be reordered)
+GET /workspace/:name/windows :: [Window] (in decreasing z-order)
+GET /workspace/:name/window/:id :: Window
+GET /workspace/:name/window/:id/title :: Text
+...
+
+
+
+data Workspace = Workspace
+ { workspace_geometry :: Geometry -- sway:rect xmonad:screen-geometry?
+ , workspace_focused :: Bool -- sway:focused xmonad:?
+ , workspace_name :: Text -- sway:name xmonad:tag -- uniqueness is assumed
+ , workspace_windows :: [Window] -- sway:nodes xmonad:[focus]<>down<>up
+ }
+
+data Window = Window
+ { window_id :: Int -- sway:id xmonad:id -- uniqueness is assumed
+ , window_title :: Text -- sway:name xmonad:title
+ , window_geometry :: Geometry -- sway:rect
+ , window_focused :: Bool -- sway:focused xmonad:implict-from-workspace
+ , window_urgent :: Bool -- sway:urgent xmonad:urgent
+ }