-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.sh
executable file
·55 lines (42 loc) · 1.54 KB
/
main.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/bin/bash
###############################################################################
#
# Re-create my workspace with the selected software.
#
# Created for the elementary OS 7
#
###############################################################################
set -e
#######################################
# Set the visual setings for the terminal
# Arguments:
# None
#######################################
set_terminal_visual_settings() {
palette1="#121212:#ff005f:#00af5f:#ffd787:#0087ff:#ff00ff:#00d4ff:#e4e4e4"
palette2="#1c1c1c:#ff005f:#00ad5f:#ffd787:#0087ff:#ff00ff:#00d4ff:#00875f"
gsettings set io.elementary.terminal.settings palette "$palette1:$palette2"
gsettings set io.elementary.terminal.settings foreground "#e4e4e4"
gsettings set io.elementary.terminal.settings background "#121212"
gsettings set io.elementary.terminal.settings cursor-color "#e4e4e4"
gsettings set io.elementary.terminal.settings cursor-shape "I-Beam"
gsettings set io.elementary.terminal.settings follow-last-tab "true"
gsettings set io.elementary.terminal.settings theme "custom"
}
#######################################
# Run the installation
# Arguments:
# None
#######################################
# shellcheck disable=2181
main() {
sudo ./install.sh
if [[ $? -ne 0 ]]; then
echo "Something gone wrong. Check the log above."
exit 1
fi
set_terminal_visual_settings
echo "Restart your computer to finish workspace setup"
notify-send "Restart your computer to finish workspace setup"
}
main