summaryrefslogtreecommitdiff
path: root/src/set_window_location
diff options
context:
space:
mode:
Diffstat (limited to 'src/set_window_location')
-rwxr-xr-xsrc/set_window_location19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/set_window_location b/src/set_window_location
new file mode 100755
index 0000000..9da8e87
--- /dev/null
+++ b/src/set_window_location
@@ -0,0 +1,19 @@
+#! /bin/bash
+
+# function to get the window id
+function get_window_id()
+{
+ window_id=$(wmctrl -l | grep "$1" | tail -1 | cut -f1 -d" ")
+}
+
+get_window_id "hmi-launcher"
+wmctrl -i -r "$window_id" -e 0,100,100,800,480
+
+get_window_id "navit"
+wmctrl -i -r "$window_id" -e 0,100,72,800,480
+
+wmctrl -a "hmi-launcher"
+
+get_window_id "Simulation dashboard"
+wmctrl -i -r "$window_id" -e 0,100,600,800,480
+