summaryrefslogtreecommitdiffstats
path: root/workspace.txt
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2021-06-04 00:37:48 +0200
committertv <tv@krebsco.de>2021-06-04 00:37:48 +0200
commitf51618000e1d96543e5e0ad72219855e9dea42d8 (patch)
treedc63bb05e748c008f2d816f4079e659dffe0cafb /workspace.txt
parent032cb86ff8108eb4915a692015da344a41f78506 (diff)
wipwip2
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
+ }