|
15 | 15 | key: /org/gnome/desktop/input-sources/xkb-options |
16 | 16 | value: "['lv3:switch', 'compose:ralt']" |
17 | 17 |
|
18 | | -- name: Getting the internal ID of the GNOME Terminal profile |
19 | | - ansible.builtin.shell: >- |
20 | | - set -e -o pipefail; |
21 | | - dconf list /org/gnome/terminal/legacy/profiles:/ | head -n1 | |
22 | | - awk -F: '{print $2}' | awk -F/ '{print $1}' |
23 | | - register: gnome_terminal_profile |
24 | | - changed_when: false |
25 | | - args: |
26 | | - executable: /bin/bash |
27 | | - |
28 | | -- name: Configuring GNOME Terminal |
29 | | - community.general.dconf: |
30 | | - key: "/org/gnome/terminal/legacy/profiles:/:\ |
31 | | - {{ gnome_terminal_profile.stdout }}/{{ item.key }}" |
32 | | - value: "{{ item.value | string }}" |
33 | | - loop: |
34 | | - - key: visible-name |
35 | | - value: "'mario'" |
36 | | - - key: use-system-font |
37 | | - value: "false" |
38 | | - - key: font |
39 | | - value: "'{{ gnome_terminal_font[ansible_os_family] }} 12'" |
40 | | - - key: use-theme-colors |
41 | | - value: "false" |
42 | | - - key: audible-bell |
43 | | - value: "false" |
44 | | - - key: foreground-color |
45 | | - value: "'rgb(255,255,255)'" |
46 | | - - key: background-color |
47 | | - value: "'rgb(0,0,0)'" |
48 | | - - key: palette |
49 | | - value: >- |
50 | | - ['rgb(0,0,0)', 'rgb(170,0,0)', 'rgb(0,170,0)', 'rgb(170,85,0)', |
51 | | - 'rgb(0,0,170)', 'rgb(170,0,170)', 'rgb(0,170,170)', 'rgb(170,170,170)', |
52 | | - 'rgb(85,85,85)', 'rgb(255,85,85)', 'rgb(85,255,85)', 'rgb(255,255,85)', |
53 | | - 'rgb(85,85,255)', 'rgb(255,85,255)', 'rgb(85,255,255)', |
54 | | - 'rgb(255,255,255)'] |
55 | | - - key: bold-is-bright |
56 | | - value: "true" |
57 | | - |
58 | 18 | - name: Configuring screen lock settings |
59 | 19 | community.general.dconf: |
60 | 20 | key: "{{ item.key }}" |
|
93 | 53 | - /org/gnome/desktop/interface/clock-format |
94 | 54 | - /org/gtk/settings/file-chooser/clock-format |
95 | 55 |
|
96 | | -- name: Configuring World Clocks |
97 | | - community.general.dconf: |
98 | | - key: "{{ item.key }}" |
99 | | - value: "{{ item.value }}" |
100 | | - loop: |
101 | | - - key: /org/gnome/clocks/world-clocks |
102 | | - value: >- |
103 | | - [{'location': <(uint32 2, <('Los Angeles', 'KCQT', true, |
104 | | - [(0.59370283970450188, -2.0644336110828618)], [(0.59432360095955872, |
105 | | - -2.063741622941031)])>)>}, {'location': <(uint32 2, <('New York', |
106 | | - 'KNYC', true, [(0.71180344078725644, -1.2909618758762367)], |
107 | | - [(0.71059804659265924, -1.2916478949920254)])>)>}, {'location': |
108 | | - <(uint32 2, <('Coordinated Universal Time (UTC)', '@UTC', false, |
109 | | - @a(dd) [], @a(dd) [])>)>}, {'location': <(uint32 2, <('Rome', 'LIRU', |
110 | | - true, [(0.73216562121162132, 0.21816615649929119)], |
111 | | - [(0.73129295658562399, 0.21787526247286132)])>)>}, {'location': |
112 | | - <(uint32 2, <('London', 'EGWU', false, [(0.89971722940307675, |
113 | | - -0.007272211034407213)], [(0.89971722940307675, |
114 | | - -0.007272211034407213)])>)>}] |
115 | | - - key: /org/gnome/shell/world-clocks/locations |
116 | | - value: >- |
117 | | - [<(uint32 2, <('Los Angeles', 'KCQT', true, [(0.59370283970450188, |
118 | | - -2.0644336110828618)], [(0.59432360095955872, -2.063741622941031)])>)>, |
119 | | - <(uint32 2, <('New York', 'KNYC', true, [(0.71180344078725644, |
120 | | - -1.2909618758762367)], [(0.71059804659265924, |
121 | | - -1.2916478949920254)])>)>, <(uint32 2, <('Coordinated Universal Time |
122 | | - (UTC)', '@UTC', false, @a(dd) [], @a(dd) [])>)>, <(uint32 2, <('Rome', |
123 | | - 'LIRU', true, [(0.73216562121162132, 0.21816615649929119)], |
124 | | - [(0.73129295658562399, 0.21787526247286132)])>)>, <(uint32 2, |
125 | | - <('London', 'EGWU', false, [(0.89971722940307675, |
126 | | - -0.007272211034407213)], [(0.89971722940307675, |
127 | | - -0.007272211034407213)])>)>] |
| 56 | +- name: Configuring World clocks |
| 57 | + ansible.builtin.import_tasks: clocks.yml |
128 | 58 |
|
129 | 59 | - name: Enabling GNOME Shell extensions |
130 | 60 | when: ansible_os_family == 'Archlinux' |
|
133 | 63 | value: "false" |
134 | 64 |
|
135 | 65 | - name: Activating SimpleWeather extension |
136 | | - when: ansible_os_family == 'Archlinux' |
| 66 | + when: ansible_os_family == 'Archlinux' or ansible_os_family == 'Debian' |
137 | 67 | community.general.dconf: |
138 | 68 | key: /org/gnome/shell/extensions/simple-weather/is-activated |
139 | 69 | value: "true" |
140 | 70 |
|
141 | 71 | - name: Enabling individual GNOME Shell extensions |
142 | | - when: ansible_os_family == 'Archlinux' |
| 72 | + when: ansible_os_family == 'Archlinux' or ansible_os_family == 'Debian' |
143 | 73 | community.general.dconf: |
144 | 74 | key: /org/gnome/shell/enabled-extensions |
145 | 75 | value: "[{{ gnome_extensions[ansible_os_family] | join(', ') }}]" |
|
205 | 135 | - key: /org/gnome/shell/extensions/arcmenu/searchbar-default-bottom-location |
206 | 136 | value: "'Top'" |
207 | 137 | - key: /org/gnome/shell/extensions/arcmenu/distro-icon |
208 | | - value: "6" # archlinux |
| 138 | + value: "{{ gnome_arcmenu_icon }}" |
209 | 139 |
|
210 | 140 | - name: Enabling location services # required for night light |
211 | 141 | when: ansible_os_family == 'Archlinux' or ansible_os_family == 'Debian' |
|
283 | 213 | value: "true" |
284 | 214 |
|
285 | 215 | - name: Configuring SimpleWeather extension |
286 | | - when: ansible_os_family == 'Archlinux' |
287 | | - community.general.dconf: |
288 | | - key: /org/gnome/shell/extensions/simple-weather/theme |
289 | | - value: "'immersive'" |
290 | | - |
291 | | -- name: Configuring OpenWeather Refined extension |
292 | | - when: ansible_os_family == 'Archlinux' |
| 216 | + when: ansible_os_family == 'Archlinux' or ansible_os_family == 'Debian' |
293 | 217 | community.general.dconf: |
294 | 218 | key: "{{ item.key }}" |
295 | 219 | value: "{{ item.value }}" |
296 | 220 | loop: |
297 | | - - key: /org/gnome/shell/extensions/openweatherrefined/simplify-degrees |
| 221 | + - key: /org/gnome/shell/extensions/simple-weather/theme |
| 222 | + value: "'immersive'" |
| 223 | + - key: /org/gnome/shell/extensions/simple-weather/symbolic-icons-panel |
298 | 224 | value: "true" |
299 | | - - key: /org/gnome/shell/extensions/openweatherrefined/weather-provider |
300 | | - value: "'openweathermap'" |
301 | | - - key: /org/gnome/shell/extensions/openweatherrefined/custom-keys |
302 | | - value: "['{{ gnome_openweathermap_api_key[mtype] }}', '', '']" |
303 | | - - key: /org/gnome/shell/extensions/openweatherrefined/my-loc-prov |
304 | | - value: "'ipinfoio'" |
305 | | - - key: /org/gnome/shell/extensions/openweatherrefined/locs |
306 | | - value: "[{{ gnome_openweather_locations | join(', ') }}]" |
| 225 | + - key: /org/gnome/shell/extensions/simple-weather/locations |
| 226 | + value: >- |
| 227 | + ['{"isHere":true}', '{"name":"Siena","lat":43.167206,"lon":11.467561}', |
| 228 | + '{"name":"Washington","lat":38.8950368,"lon":-77.0365427}'] |
| 229 | +
|
| 230 | +- name: Configuring GNOME Terminal |
| 231 | + ansible.builtin.import_tasks: terminal.yml |
0 commit comments