add openbar extension
This commit is contained in:
@@ -35,7 +35,7 @@
|
|||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: "{{ ansible_env.HOME }}/.local/share/gnome-shell/extensions/clipboard-indicator@tudmotu.com"
|
path: "{{ ansible_env.HOME }}/.local/share/gnome-shell/extensions/clipboard-indicator@tudmotu.com"
|
||||||
state: directory
|
state: directory
|
||||||
mode: '0755'
|
mode: "0755"
|
||||||
become: false
|
become: false
|
||||||
|
|
||||||
- name: Get GNOME Shell version for extension compatibility
|
- name: Get GNOME Shell version for extension compatibility
|
||||||
@@ -55,7 +55,7 @@
|
|||||||
ansible.builtin.get_url:
|
ansible.builtin.get_url:
|
||||||
url: "https://extensions.gnome.org{{ extension_info.json.download_url }}"
|
url: "https://extensions.gnome.org{{ extension_info.json.download_url }}"
|
||||||
dest: "/tmp/clipboard-indicator.zip"
|
dest: "/tmp/clipboard-indicator.zip"
|
||||||
mode: '0644'
|
mode: "0644"
|
||||||
become: false
|
become: false
|
||||||
|
|
||||||
- name: Extract Clipboard Indicator extension
|
- name: Extract Clipboard Indicator extension
|
||||||
@@ -78,7 +78,7 @@
|
|||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: "{{ ansible_env.HOME }}/.local/share/gnome-shell/extensions/dash-to-dock@micxgx.gmail.com"
|
path: "{{ ansible_env.HOME }}/.local/share/gnome-shell/extensions/dash-to-dock@micxgx.gmail.com"
|
||||||
state: directory
|
state: directory
|
||||||
mode: '0755'
|
mode: "0755"
|
||||||
become: false
|
become: false
|
||||||
|
|
||||||
- name: Download Dash to Dock extension metadata
|
- name: Download Dash to Dock extension metadata
|
||||||
@@ -92,7 +92,7 @@
|
|||||||
ansible.builtin.get_url:
|
ansible.builtin.get_url:
|
||||||
url: "https://extensions.gnome.org{{ dash_to_dock_info.json.download_url }}"
|
url: "https://extensions.gnome.org{{ dash_to_dock_info.json.download_url }}"
|
||||||
dest: "/tmp/dash-to-dock.zip"
|
dest: "/tmp/dash-to-dock.zip"
|
||||||
mode: '0644'
|
mode: "0644"
|
||||||
become: false
|
become: false
|
||||||
|
|
||||||
- name: Extract Dash to Dock extension
|
- name: Extract Dash to Dock extension
|
||||||
@@ -111,6 +111,50 @@
|
|||||||
enabled_extensions: "{{ lookup('pipe', 'gsettings get org.gnome.shell enabled-extensions') | regex_replace(\"^@as |\\[|\\]|'\", '') | split(', ') | select() | list }}"
|
enabled_extensions: "{{ lookup('pipe', 'gsettings get org.gnome.shell enabled-extensions') | regex_replace(\"^@as |\\[|\\]|'\", '') | split(', ') | select() | list }}"
|
||||||
become: false
|
become: false
|
||||||
|
|
||||||
|
- name: Create OpenBar extensions directory
|
||||||
|
ansible.builtin.file:
|
||||||
|
path: "{{ ansible_env.HOME }}/.local/share/gnome-shell/extensions/openbar@neuromorph"
|
||||||
|
state: directory
|
||||||
|
mode: "0755"
|
||||||
|
become: false
|
||||||
|
|
||||||
|
- name: Download OpenBar extension metadata
|
||||||
|
ansible.builtin.uri:
|
||||||
|
url: "https://extensions.gnome.org/extension-info/?pk=6580&shell_version={{ gnome_shell_version.stdout }}"
|
||||||
|
return_content: true
|
||||||
|
register: openbar_info
|
||||||
|
become: false
|
||||||
|
|
||||||
|
- name: Download OpenBar extension
|
||||||
|
ansible.builtin.get_url:
|
||||||
|
url: "https://extensions.gnome.org{{ openbar_info.json.download_url }}"
|
||||||
|
dest: "/tmp/openbar.zip"
|
||||||
|
mode: "0644"
|
||||||
|
become: false
|
||||||
|
|
||||||
|
- name: Extract OpenBar extension
|
||||||
|
ansible.builtin.unarchive:
|
||||||
|
src: "/tmp/openbar.zip"
|
||||||
|
dest: "{{ ansible_env.HOME }}/.local/share/gnome-shell/extensions/openbar@neuromorph/"
|
||||||
|
remote_src: true
|
||||||
|
become: false
|
||||||
|
|
||||||
|
- name: Enable OpenBar extension
|
||||||
|
community.general.dconf:
|
||||||
|
key: "/org/gnome/shell/enabled-extensions"
|
||||||
|
value: "{{ enabled_extensions + ['openbar@neuromorph'] }}"
|
||||||
|
state: present
|
||||||
|
vars:
|
||||||
|
enabled_extensions: "{{ lookup('pipe', 'gsettings get org.gnome.shell enabled-extensions') | regex_replace(\"^@as |\\[|\\]|'\", '') | split(', ') | select() | list }}"
|
||||||
|
become: false
|
||||||
|
|
||||||
|
# - name: Import OpenBar configuration
|
||||||
|
# ansible.builtin.copy:
|
||||||
|
# src: files/OpenBar.cfg
|
||||||
|
# dest: "{{ ansible_env.HOME }}/.config/openbar/OpenBar.cfg"
|
||||||
|
# mode: '0644'
|
||||||
|
# become: false
|
||||||
|
|
||||||
- name: Ensure flatpak is installed
|
- name: Ensure flatpak is installed
|
||||||
ansible.builtin.dnf:
|
ansible.builtin.dnf:
|
||||||
name:
|
name:
|
||||||
|
|||||||
Reference in New Issue
Block a user