1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,14 @@ |
1 |
+i3 & |
|
2 |
+I3_PID="$!" |
|
3 |
+ |
|
4 |
+# Running `i3 --get-socketpath` seems to interfere with the startup of the `i3` |
|
5 |
+# running in the background. |
|
6 |
+# while ! i3 --get-socketpath > '/dev/null' |
|
7 |
+while ! [ -e '/run/user/1000/i3/ipc-socket.'* ] |
|
8 |
+do |
|
9 |
+ if ! [ "$(ps -p "$I3_PID" -o pid=)" ] |
|
10 |
+ then |
|
11 |
+ wait "$I3_PID" |
|
12 |
+ exit $? |
|
13 |
+ fi |
|
14 |
+done |