summaryrefslogtreecommitdiff
path: root/placement.proto
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-09-10 17:31:25 -0500
committerJeff Carr <[email protected]>2025-09-10 17:31:25 -0500
commit94bd4728ba260bbda7643e51f1beb9629b6b90d5 (patch)
tree6b982dac41a9ee6a9bbaa72eb166b3c2fc7ef4df /placement.proto
parentc3f5588365c1c68a1d87e5a6415eac18876dfce9 (diff)
Diffstat (limited to 'placement.proto')
-rw-r--r--placement.proto31
1 files changed, 31 insertions, 0 deletions
diff --git a/placement.proto b/placement.proto
new file mode 100644
index 0000000..a28c819
--- /dev/null
+++ b/placement.proto
@@ -0,0 +1,31 @@
+syntax = "proto3";
+
+package main;
+
+message Placement {
+ message Size {
+ int64 w = 1;
+ int64 h = 2;
+ }
+ message Offset {
+ int64 x = 1;
+ int64 y = 2;
+ }
+ message Geom {
+ Size size = 1;
+ Offset offset = 2;
+ }
+ // used for grid layouts
+ string name = 1; // `autogenpb:sort` `autogenpb:unique`
+ Geom geom = 2;
+ int32 workspace = 3; // what workspace to show the app on
+ string wd = 4; // working dir. Tries to set xterm path at start to this
+ repeated string argv = 5; // argv. argv[0] should be the executable name
+ string namespace = 6; // namespace of the executable (go.wit.com/apps/forge)
+}
+message Placements { // `autogenpb:marshal` `autogenpb:mutex`
+ string uuid = 1; // `autogenpb:uuid:31769bcb-5865-4926-b7d6-501083312eea`
+ string version = 2; // `autogenpb:version:v0.0.1`
+ repeated Placement Placement = 3;
+ string filename = 4; // used by the config save function
+}