summaryrefslogtreecommitdiffstats
path: root/workspace.txt
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2021-03-14 22:32:35 +0100
committertv <tv@krebsco.de>2021-03-14 22:32:35 +0100
commitd151f66a8500f1b0a6aa2224f19e18062b172931 (patch)
tree24199e10c9ebc72b898188a0f2bdcf4b2e6ee244 /workspace.txt
parent032cb86ff8108eb4915a692015da344a41f78506 (diff)
wipwip
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
+ }