-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathLAUNCH-TERMINATOR-TERMINAL.sh
More file actions
executable file
·32 lines (25 loc) · 1.11 KB
/
LAUNCH-TERMINATOR-TERMINAL.sh
File metadata and controls
executable file
·32 lines (25 loc) · 1.11 KB
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
#!/bin/bash
# Launches Terminator with a convenience layout.
# To run with another layout, add an argument, e.g.:
# ./LAUNCH-TERMINATOR-TERMINAL.sh rt
# Make sure that Terminator is not already running, so the config file can be read in correctly.
################################################################################
# Make a backup of the user's original Terminator configuration.
mkdir -p ~/.config/terminator/
if [ ! -f ~/.config/terminator/config.backup ]; then
cp ~/.config/terminator/config ~/.config/terminator/config.backup
fi
# Update the user's current Terminator configuration with the project's one.
cp ./terminator/config ~/.config/terminator/config
################################################################################
# Run Terminator with the project's custom layout.
case "$1" in
( "" )
terminator -m -l o2ac-autostart & # The standard layout for a single machine
;;
( "rt" )
terminator -m -l o2ac-rt-pc & # The layout for the realtime kernel machine (no roscore, no vision...)
;;
( "vision" )
terminator -m -l o2ac-vision-autostart & # The layout for the vision PC
esac