Ticket #3724: mc-seasons-prepare-screenshot.sh

File mc-seasons-prepare-screenshot.sh, 1.7 KB (added by egmont, 8 years ago)

Script for creating the screenshot

Line 
1#!/bin/sh
2
3tx() {
4  terminix "$@"
5  sleep 0.5
6}
7
8xd1() {
9  xdotool key Down Down Down Down Insert Insert Insert Insert
10}
11xd2() {
12  xdotool key F9 l Down Down
13}
14xd3() {
15  xdotool key Down F5 Down Down
16}
17xd4() {
18  xdotool key F5
19}
20
21spring="mc -S seasons-spring16M /bin /etc"
22summer="mc -S seasons-summer16M /bin /etc"
23autumn="mc -S seasons-autumn16M /bin /etc"
24winter="mc -S seasons-winter16M /bin /etc"
25
26terminix --geometry 80x72 -x "$spring" &
27sleep 1.5
28xd1
29tx -a session-add-down -x "$spring"
30xd2
31tx -a session-add-down -x "$spring"
32xd3
33tx -a session-add-down -x "$spring"
34xd4
35
36tx -a session-switch-to-terminal-up
37tx -a session-switch-to-terminal-up
38tx -a session-switch-to-terminal-up
39
40tx -a session-add-right -x "$summer"
41xd1
42tx -a session-switch-to-terminal-down
43tx -a session-add-right -x "$summer"
44xd2
45tx -a session-switch-to-terminal-down
46tx -a session-add-right -x "$summer"
47xd3
48tx -a session-switch-to-terminal-down
49tx -a session-add-right -x "$summer"
50xd4
51
52tx -a session-switch-to-terminal-up
53tx -a session-switch-to-terminal-up
54tx -a session-switch-to-terminal-up
55
56tx -a session-add-right -x "$autumn"
57xd1
58tx -a session-switch-to-terminal-down
59tx -a session-add-right -x "$autumn"
60xd2
61tx -a session-switch-to-terminal-down
62tx -a session-add-right -x "$autumn"
63xd3
64tx -a session-switch-to-terminal-down
65tx -a session-add-right -x "$autumn"
66xd4
67
68tx -a session-switch-to-terminal-up
69tx -a session-switch-to-terminal-up
70tx -a session-switch-to-terminal-up
71
72tx -a session-add-right -x "$winter"
73xd1
74tx -a session-switch-to-terminal-down
75tx -a session-add-right -x "$winter"
76xd2
77tx -a session-switch-to-terminal-down
78tx -a session-add-right -x "$winter"
79xd3
80tx -a session-switch-to-terminal-down
81tx -a session-add-right -x "$winter"
82xd4