|
16 | 16 | ansible.builtin.include_tasks: gnome_common.yml |
17 | 17 |
|
18 | 18 | # ============================================================================ |
19 | | -# INSTALL MACOS-LIKE EXTENSIONS |
| 19 | +# INSTALL MACOS-LIKE EXTENSIONS (from extensions.gnome.org via gext) |
20 | 20 | # ============================================================================ |
21 | 21 |
|
22 | | -- name: Install Dash to Dock extension |
| 22 | +- name: Install Dash to Dock extension via gext |
23 | 23 | ansible.builtin.command: |
24 | 24 | cmd: "{{ dfe_user_home }}/.local/bin/gext -F install dash-to-dock@micxgx.gmail.com" |
25 | 25 | become: true |
|
29 | 29 | failed_when: |
30 | 30 | - dash_to_dock_install.rc != 0 |
31 | 31 | - "'already installed' not in dash_to_dock_install.stdout" |
32 | | - when: ansible_distribution == 'Ubuntu' |
33 | 32 |
|
34 | | -- name: Install Logo Menu extension |
| 33 | +- name: Compile Dash to Dock schemas |
| 34 | + ansible.builtin.command: |
| 35 | + cmd: glib-compile-schemas {{ dfe_user_home }}/.local/share/gnome-shell/extensions/dash-to-dock@micxgx.gmail.com/schemas/ |
| 36 | + become: true |
| 37 | + become_user: "{{ dfe_actual_user }}" |
| 38 | + changed_when: false |
| 39 | + failed_when: false |
| 40 | + |
| 41 | +- name: Install Logo Menu extension via gext |
35 | 42 | ansible.builtin.command: |
36 | 43 | cmd: "{{ dfe_user_home }}/.local/bin/gext -F install logomenu@aryan_k" |
37 | 44 | become: true |
|
41 | 48 | failed_when: |
42 | 49 | - logo_menu_install.rc != 0 |
43 | 50 | - "'already installed' not in logo_menu_install.stdout" |
44 | | - when: ansible_distribution == 'Ubuntu' |
45 | 51 |
|
46 | | -- name: Install Compiz Magic Lamp effect extension |
| 52 | +- name: Install Compiz Magic Lamp effect extension via gext |
47 | 53 | ansible.builtin.command: |
48 | 54 | cmd: "{{ dfe_user_home }}/.local/bin/gext -F install compiz-alike-magic-lamp-effect@hermes83.github.com" |
49 | 55 | become: true |
|
53 | 59 | failed_when: |
54 | 60 | - magic_lamp_install.rc != 0 |
55 | 61 | - "'already installed' not in magic_lamp_install.stdout" |
56 | | - when: ansible_distribution == 'Ubuntu' |
57 | 62 |
|
58 | 63 | # ============================================================================ |
59 | 64 | # ENABLE EXTENSIONS VIA DCONF |
|
65 | 70 | value: "['system-monitor@gnome-shell-extensions.gcampax.github.com', 'dash-to-dock@micxgx.gmail.com', 'logomenu@aryan_k', 'compiz-alike-magic-lamp-effect@hermes83.github.com']" |
66 | 71 | state: present |
67 | 72 | become: false |
68 | | - when: ansible_distribution == 'Ubuntu' |
69 | 73 |
|
70 | 74 | - name: Disable conflicting extensions |
71 | 75 | community.general.dconf: |
72 | 76 | key: "/org/gnome/shell/disabled-extensions" |
73 | 77 | value: "['ubuntu-dock@ubuntu.com', 'workspace-indicator@gnome-shell-extensions.gcampax.github.com', 'apps-menu@gnome-shell-extensions.gcampax.github.com']" |
74 | 78 | state: present |
75 | 79 | become: false |
76 | | - when: ansible_distribution == 'Ubuntu' |
77 | 80 |
|
78 | 81 | # ============================================================================ |
79 | 82 | # CONFIGURE DASH TO DOCK (macOS-style) |
|
85 | 88 | value: "'BOTTOM'" |
86 | 89 | state: present |
87 | 90 | become: false |
88 | | - when: ansible_distribution == 'Ubuntu' |
89 | 91 |
|
90 | 92 | - name: Configure Dash to Dock - intelligent auto-hide |
91 | 93 | community.general.dconf: |
92 | 94 | key: "/org/gnome/shell/extensions/dash-to-dock/intellihide" |
93 | 95 | value: "true" |
94 | 96 | state: present |
95 | 97 | become: false |
96 | | - when: ansible_distribution == 'Ubuntu' |
97 | 98 |
|
98 | 99 | - name: Configure Dash to Dock - enable auto-hide |
99 | 100 | community.general.dconf: |
100 | 101 | key: "/org/gnome/shell/extensions/dash-to-dock/autohide" |
101 | 102 | value: "true" |
102 | 103 | state: present |
103 | 104 | become: false |
104 | | - when: ansible_distribution == 'Ubuntu' |
105 | 105 |
|
106 | 106 | - name: Configure Dash to Dock - click to minimize |
107 | 107 | community.general.dconf: |
108 | 108 | key: "/org/gnome/shell/extensions/dash-to-dock/click-action" |
109 | 109 | value: "'minimize'" |
110 | 110 | state: present |
111 | 111 | become: false |
112 | | - when: ansible_distribution == 'Ubuntu' |
113 | 112 |
|
114 | 113 | - name: Configure Dash to Dock - icon size |
115 | 114 | community.general.dconf: |
116 | 115 | key: "/org/gnome/shell/extensions/dash-to-dock/dash-max-icon-size" |
117 | 116 | value: "48" |
118 | 117 | state: present |
119 | 118 | become: false |
120 | | - when: ansible_distribution == 'Ubuntu' |
121 | 119 |
|
122 | 120 | - name: Configure Dash to Dock - running indicator style |
123 | 121 | community.general.dconf: |
124 | 122 | key: "/org/gnome/shell/extensions/dash-to-dock/running-indicator-style" |
125 | 123 | value: "'DOTS'" |
126 | 124 | state: present |
127 | 125 | become: false |
128 | | - when: ansible_distribution == 'Ubuntu' |
129 | 126 |
|
130 | 127 | - name: Configure Dash to Dock - show window previews |
131 | 128 | community.general.dconf: |
132 | 129 | key: "/org/gnome/shell/extensions/dash-to-dock/show-windows-preview" |
133 | 130 | value: "true" |
134 | 131 | state: present |
135 | 132 | become: false |
136 | | - when: ansible_distribution == 'Ubuntu' |
137 | 133 |
|
138 | 134 | - name: Configure Dash to Dock - hide trash |
139 | 135 | community.general.dconf: |
140 | 136 | key: "/org/gnome/shell/extensions/dash-to-dock/show-trash" |
141 | 137 | value: "false" |
142 | 138 | state: present |
143 | 139 | become: false |
144 | | - when: ansible_distribution == 'Ubuntu' |
145 | 140 |
|
146 | 141 | - name: Configure Dash to Dock - hide mounts |
147 | 142 | community.general.dconf: |
148 | 143 | key: "/org/gnome/shell/extensions/dash-to-dock/show-mounts" |
149 | 144 | value: "false" |
150 | 145 | state: present |
151 | 146 | become: false |
152 | | - when: ansible_distribution == 'Ubuntu' |
153 | 147 |
|
154 | 148 | # ============================================================================ |
155 | 149 | # CONFIGURE LOGO MENU (macOS-style Apple menu) |
|
161 | 155 | value: "false" |
162 | 156 | state: present |
163 | 157 | become: false |
164 | | - when: ansible_distribution == 'Ubuntu' |
165 | 158 |
|
166 | 159 | # ============================================================================ |
167 | 160 | # CONFIGURE MAGIC LAMP EFFECT |
|
173 | 166 | value: "200" |
174 | 167 | state: present |
175 | 168 | become: false |
176 | | - when: ansible_distribution == 'Ubuntu' |
177 | 169 |
|
178 | 170 | # ============================================================================ |
179 | 171 | # WALLPAPER DEPLOYMENT (system-wide, safe from apt/dnf updates) |
|
223 | 215 | become_user: "{{ dfe_actual_user }}" |
224 | 216 | changed_when: false |
225 | 217 | failed_when: false |
226 | | - when: ansible_distribution == 'Ubuntu' |
| 218 | + when: ansible_distribution in ['Ubuntu', 'Fedora'] |
0 commit comments