1
|
1
|
new file mode 100644
|
...
|
...
|
@@ -0,0 +1,37 @@
|
|
1
|
+[ "$(command -v gnome-terminal)" ] || return 0
|
|
2
|
+[ "$(command -v gsettings )" ] || return 0
|
|
3
|
+
|
|
4
|
+# https://wiki.gnome.org/Apps/Terminal/FAQ#How_can_I_change_a_profile_setting_from_the_command_line.3F
|
|
5
|
+__gnome_terminal_gsettings()
|
|
6
|
+{
|
|
7
|
+ gsettings set \
|
|
8
|
+ "$(printf '%s:/%s:/:%s/' \
|
|
9
|
+ 'org.gnome.Terminal.Legacy.Profile' \
|
|
10
|
+ 'org/gnome/terminal/legacy/profiles' \
|
|
11
|
+ "$(gsettings get 'org.gnome.Terminal.ProfilesList' "$1" | tr -d "'")"
|
|
12
|
+ )" \
|
|
13
|
+ "$2" \
|
|
14
|
+ "$3"
|
|
15
|
+}
|
|
16
|
+
|
|
17
|
+gsettings set 'org.gnome.Terminal.Legacy.Settings' \
|
|
18
|
+ 'headerbar' 'false'
|
|
19
|
+gsettings set 'org.gnome.Terminal.Legacy.Settings' \
|
|
20
|
+ 'default-show-menubar' 'false'
|
|
21
|
+
|
|
22
|
+__gnome_terminal_gsettings 'default' 'rewrap-on-resize' 'true'
|
|
23
|
+__gnome_terminal_gsettings 'default' 'scrollbar-policy' 'never'
|
|
24
|
+__gnome_terminal_gsettings 'default' 'scrollback-unlimited' 'true'
|
|
25
|
+__gnome_terminal_gsettings 'default' 'scroll-on-output' 'false'
|
|
26
|
+__gnome_terminal_gsettings 'default' 'scroll-on-keystroke' 'true'
|
|
27
|
+
|
|
28
|
+__gnome_terminal_gsettings 'default' 'enable-sixel' 'true'
|
|
29
|
+
|
|
30
|
+__gnome_terminal_gsettings 'default' 'use-system-font' 'false'
|
|
31
|
+__gnome_terminal_gsettings 'default' 'font' 'Monospace 10'
|
|
32
|
+
|
|
33
|
+__gnome_terminal_gsettings 'default' 'use-theme-transparency' 'false'
|
|
34
|
+__gnome_terminal_gsettings 'default' 'use-transparent-background' 'true'
|
|
35
|
+__gnome_terminal_gsettings 'default' 'background-transparency-percent' '25'
|
|
36
|
+
|
|
37
|
+__gnome_terminal_gsettings 'default' 'use-theme-colors' 'false'
|