-
Notifications
You must be signed in to change notification settings - Fork 11
/
local_launcher.sh
executable file
·39 lines (30 loc) · 1.18 KB
/
local_launcher.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/bash
TIME=`python -c "from datetime import datetime, timedelta; print(datetime.utcnow().replace(microsecond=0) + timedelta(seconds=20))"`
i3-msg workspace 7 &> /dev/null
i3-msg split horizontal
terminator &> /dev/null &
sleep 0.5
xdotool type --args 1 "pipenv run python hydrand 0 -n 7 --start-at '$TIME' $@" key Return
terminator &> /dev/null &
sleep 0.5
xdotool type --args 1 "pipenv run python hydrand 1 -n 7 --start-at '$TIME' $@" key Return
i3-msg split vertical
terminator &> /dev/null &
sleep 0.5
xdotool type --args 1 "pipenv run python hydrand 2 -n 7 --start-at '$TIME' $@" key Return
i3-msg focus parent
terminator &> /dev/null &
sleep 0.5
xdotool type --args 1 "pipenv run python hydrand 3 -n 7 --start-at '$TIME' $@" key Return
i3-msg split vertical
terminator &> /dev/null &
sleep 0.5
xdotool type --args 1 "pipenv run python hydrand 4 -n 7 --start-at '$TIME' $@" key Return
i3-msg focus parent
terminator &> /dev/null &
sleep 0.5
xdotool type --args 1 "pipenv run python hydrand 5 -n 7 --start-at '$TIME' $@" key Return
i3-msg split vertical
terminator &> /dev/null &
sleep 0.5
xdotool type --args 1 "pipenv run python hydrand 6 -n 7 --start-at '$TIME' $@" key Return