diff --git a/roles/fedora_gnome_workstation/files/OpenBar.cfg b/roles/fedora_gnome_workstation/files/OpenBar.cfg new file mode 100644 index 0000000..fb8230e --- /dev/null +++ b/roles/fedora_gnome_workstation/files/OpenBar.cfg @@ -0,0 +1,286 @@ +[/] +accent-color=['0.008', '0.282', '0.647'] +accent-override=false +apply-accent-shell=false +apply-all-shell=false +apply-flatpak=false +apply-gtk=false +apply-menu-notif=false +apply-menu-shell=false +auto-bgalpha=false +autofg-bar=false +autofg-menu=false +autohg-bar=true +autohg-menu=true +autotheme-dark='Dark' +autotheme-font=false +autotheme-light='Dark' +autotheme-refresh=false +balpha=0.75 +bartype='Floating' +bcolor=['0.322', '0.545', '0.482'] +bg-change=true +bgalpha=0.90000000000000002 +bgalpha-wmax=1.0 +bgalpha2=0.69999999999999996 +bgcolor=['0.180', '0.216', '0.243'] +bgcolor-wmax=['0.118', '0.118', '0.118'] +bgcolor2=['0.275', '0.341', '0.349'] +bgpalette=true +bguri='file:///home/frpa/Nextcloud/Photos/Wallpaper/everforest/Nocturne-of-Steel-and-Glass.png' +border-wmax=false +bordertype='solid' +bottom-margin=0.0 +boxalpha=0.0 +boxcolor=['0.082', '0.196', '0.224'] +bradius=5.0 +buttonbg-wmax=true +bwidth=2.5 +candy1=['0', '0.61', '0.74'] +candy10=['0.09', '0.19', '0.72'] +candy11=['0.75', '0.49', '0.44'] +candy12=['1', '0.92', '0.12'] +candy13=['0.38', '0.63', '0.92'] +candy14=['0.37', '0.36', '0.39'] +candy15=['0.40', '0.23', '0.72'] +candy16=['1', '0.32', '0.32'] +candy2=['1', '0.41', '0.41'] +candy3=['0.63', '0.16', '0.8'] +candy4=['0.94', '0.60', '0.23'] +candy5=['0.03', '0.41', '0.62'] +candy6=['0.56', '0.18', '0.43'] +candy7=['0.95', '0.12', '0.67'] +candy8=['0.18', '0.76', '0.49'] +candy9=['0.93', '0.20', '0.23'] +candyalpha=0.0 +candybar=false +card-hint=10 +color-scheme='prefer-dark' +corner-radius=false +count1=235829 +count10=19469 +count11=2187 +count12=33 +count2=104459 +count3=70663 +count4=56624 +count5=33480 +count6=32401 +count7=24476 +count8=23089 +count9=21342 +cust-margin-wmax=false +dark-accent-color=['0.008', '0.282', '0.647'] +dark-bcolor=['0.322', '0.545', '0.482'] +dark-bgcolor=['0.180', '0.216', '0.243'] +dark-bgcolor-wmax=['0.118', '0.118', '0.118'] +dark-bgcolor2=['0.275', '0.341', '0.349'] +dark-bguri='file:///home/frpa/Nextcloud/Photos/Wallpaper/everforest/Nocturne-of-Steel-and-Glass.png' +dark-boxcolor=['0.082', '0.196', '0.224'] +dark-candy1=['0', '0.61', '0.74'] +dark-candy10=['0.09', '0.19', '0.72'] +dark-candy11=['0.75', '0.49', '0.44'] +dark-candy12=['1', '0.92', '0.12'] +dark-candy13=['0.38', '0.63', '0.92'] +dark-candy14=['0.37', '0.36', '0.39'] +dark-candy15=['0.40', '0.23', '0.72'] +dark-candy16=['1', '0.32', '0.32'] +dark-candy2=['1', '0.41', '0.41'] +dark-candy3=['0.63', '0.16', '0.8'] +dark-candy4=['0.94', '0.60', '0.23'] +dark-candy5=['0.03', '0.41', '0.62'] +dark-candy6=['0.56', '0.18', '0.43'] +dark-candy7=['0.95', '0.12', '0.67'] +dark-candy8=['0.18', '0.76', '0.49'] +dark-candy9=['0.93', '0.20', '0.23'] +dark-dbgcolor=['0.200', '0.231', '0.251'] +dark-fgcolor=['0.953', '0.933', '0.796'] +dark-hcolor=['0.431', '0.518', '0.518'] +dark-hscd-color=['0.455', '0.475', '0.475'] +dark-iscolor=['0.082', '0.196', '0.224'] +dark-mbcolor=['0.322', '0.545', '0.482'] +dark-mbgcolor=['0.169', '0.204', '0.227'] +dark-mfgcolor=['0.965', '0.961', '0.957'] +dark-mhcolor=['0.431', '0.518', '0.518'] +dark-mscolor=['0.322', '0.545', '0.482'] +dark-mshcolor=['0.000', '0.000', '0.000'] +dark-palette1=['9', '21', '25'] +dark-palette10=['96', '113', '109'] +dark-palette11=['206', '151', '86'] +dark-palette12=['107', '132', '126'] +dark-palette2=['56', '78', '81'] +dark-palette3=['40', '62', '65'] +dark-palette4=['28', '46', '49'] +dark-palette5=['70', '92', '91'] +dark-palette6=['58', '55', '49'] +dark-palette7=['16', '35', '44'] +dark-palette8=['31', '51', '60'] +dark-palette9=['80', '102', '101'] +dark-shcolor=['0.000', '0.000', '0.000'] +dark-smbgcolor=['0.718', '0.388', '0.243'] +dark-vw-color=['0.455', '0.475', '0.475'] +dark-winbcolor=['0.455', '0.475', '0.475'] +dashdock-style='Custom' +dbgalpha=0.94999999999999996 +dbgcolor=['0.200', '0.231', '0.251'] +dborder=true +dbradius=5.0 +default-font='Sans 12' +destruct-color=['0.75', '0.11', '0.16'] +disize=38.0 +dshadow=true +fgalpha=1.0 +fgcolor=['0.953', '0.933', '0.796'] +fitts-widgets=true +font='FiraCode Nerd Font Medium 13' +gradient=false +gradient-direction='vertical' +gtk-popover=false +gtk-shadow='Default' +gtk-transparency=1.0 +halpha=0.25 +handle-border=3.0 +hbar-gtk3only=false +hcolor=['0.431', '0.518', '0.518'] +headerbar-hint=0 +heffect=false +height=38.0 +hpad=1.5 +hscd-color=['0.455', '0.475', '0.475'] +import-export=false +isalpha=0.69999999999999996 +iscolor=['0.082', '0.196', '0.224'] +light-accent-color=['0', '0.75', '0.75'] +light-bcolor=['0.016', '0.043', '0.071'] +light-bgcolor=['0.082', '0.196', '0.224'] +light-bgcolor-wmax=['0.922', '0.922', '0.922'] +light-bgcolor2=['0.275', '0.341', '0.349'] +light-bguri='file:///home/frpa/Nextcloud/Photos/Wallpaper/everforest/Nocturne-of-Steel-and-Glass.png' +light-boxcolor=['0.082', '0.196', '0.224'] +light-candy1=['0', '0.61', '0.74'] +light-candy10=['0.09', '0.19', '0.72'] +light-candy11=['0.75', '0.49', '0.44'] +light-candy12=['1', '0.92', '0.12'] +light-candy13=['0.38', '0.63', '0.92'] +light-candy14=['0.37', '0.36', '0.39'] +light-candy15=['0.40', '0.23', '0.72'] +light-candy16=['1', '0.32', '0.32'] +light-candy2=['1', '0.41', '0.41'] +light-candy3=['0.63', '0.16', '0.8'] +light-candy4=['0.94', '0.60', '0.23'] +light-candy5=['0.03', '0.41', '0.62'] +light-candy6=['0.56', '0.18', '0.43'] +light-candy7=['0.95', '0.12', '0.67'] +light-candy8=['0.18', '0.76', '0.49'] +light-candy9=['0.93', '0.20', '0.23'] +light-dbgcolor=['0.125', '0.125', '0.125'] +light-fgcolor=['1.0', '1.0', '1.0'] +light-hcolor=['0.235', '0.208', '0.200'] +light-hscd-color=['0.455', '0.475', '0.475'] +light-iscolor=['0.082', '0.196', '0.224'] +light-mbcolor=['0.235', '0.208', '0.200'] +light-mbgcolor=['0.075', '0.114', '0.125'] +light-mfgcolor=['1.0', '1.0', '1.0'] +light-mhcolor=['0.235', '0.208', '0.200'] +light-mscolor=['0.455', '0.475', '0.475'] +light-mshcolor=['0.000', '0.000', '0.000'] +light-palette1=['9', '21', '25'] +light-palette10=['96', '113', '109'] +light-palette11=['206', '151', '86'] +light-palette12=['107', '132', '126'] +light-palette2=['56', '78', '81'] +light-palette3=['40', '62', '65'] +light-palette4=['28', '46', '49'] +light-palette5=['70', '92', '91'] +light-palette6=['58', '55', '49'] +light-palette7=['16', '35', '44'] +light-palette8=['31', '51', '60'] +light-palette9=['80', '102', '101'] +light-shcolor=['0.000', '0.000', '0.000'] +light-smbgcolor=['0.275', '0.341', '0.349'] +light-vw-color=['0.455', '0.475', '0.475'] +light-winbcolor=['0.455', '0.475', '0.475'] +margin=2.7999999999999998 +margin-wmax=2.0 +mbalpha=0.90000000000000002 +mbcolor=['0.322', '0.545', '0.482'] +mbg-gradient=false +mbgalpha=0.94999999999999996 +mbgcolor=['0.169', '0.204', '0.227'] +menu-radius=5.0 +menustyle=true +mfgalpha=1.0 +mfgcolor=['0.965', '0.961', '0.957'] +mhalpha=0.59999999999999998 +mhcolor=['0.431', '0.518', '0.518'] +monitor-height=1080 +monitor-width=1728 +monitors='all' +msalpha=1.0 +mscolor=['0.322', '0.545', '0.482'] +mshalpha=0.28000000000000003 +mshcolor=['0.000', '0.000', '0.000'] +neon=false +neon-wmax=false +notif-radius=5.0 +palette1=['9', '21', '25'] +palette10=['96', '113', '109'] +palette11=['206', '151', '86'] +palette12=['107', '132', '126'] +palette2=['56', '78', '81'] +palette3=['40', '62', '65'] +palette4=['28', '46', '49'] +palette5=['70', '92', '91'] +palette6=['58', '55', '49'] +palette7=['16', '35', '44'] +palette8=['31', '51', '60'] +palette9=['80', '102', '101'] +pause-reload=false +position='Top' +prominent1=['100', '100', '100'] +prominent2=['100', '100', '100'] +prominent3=['100', '100', '100'] +prominent4=['100', '100', '100'] +prominent5=['100', '100', '100'] +prominent6=['100', '100', '100'] +qtoggle-radius=50.0 +radius-bottomleft=true +radius-bottomright=true +radius-topleft=true +radius-topright=true +reloadstyle=false +removestyle=false +sbar-gradient='none' +set-bottom-margin=true +set-fullscreen=true +set-notif-position=false +set-notifications=false +set-overview=false +set-yarutheme=false +shadow=true +shalpha=0.20000000000000001 +shcolor=['0.000', '0.000', '0.000'] +sidebar-hint=10 +slider-height=4.0 +smbgalpha=0.94999999999999996 +smbgcolor=['0.718', '0.388', '0.243'] +smbgoverride=false +success-color=['0.15', '0.635', '0.41'] +traffic-light=false +trigger-autotheme=true +trigger-reload=true +view-hint=0 +vpad=0.0 +vw-color=['0.455', '0.475', '0.475'] +warning-color=['0.96', '0.83', '0.17'] +width-bottom=true +width-left=true +width-right=true +width-top=true +winbalpha=0.75 +winbcolor=['0.455', '0.475', '0.475'] +winbradius=15.0 +winbwidth=0.0 +window-hint=0 +wmax-hbarhint=false +wmaxbar=false diff --git a/roles/fedora_gnome_workstation/tasks/main.yml b/roles/fedora_gnome_workstation/tasks/main.yml index ef501ea..b608b8d 100644 --- a/roles/fedora_gnome_workstation/tasks/main.yml +++ b/roles/fedora_gnome_workstation/tasks/main.yml @@ -8,6 +8,109 @@ state: present become: true +- name: Ensure Python psutil is installed for dconf module + ansible.builtin.dnf: + name: + - python3-psutil + state: present + become: true + +- name: Enable pop-shell extension + community.general.dconf: + key: "/org/gnome/shell/enabled-extensions" + value: "{{ enabled_extensions + ['pop-shell@system76.com'] }}" + state: present + vars: + enabled_extensions: "{{ lookup('pipe', 'gsettings get org.gnome.shell enabled-extensions') | regex_replace(\"^@as |\\[|\\]|'\", '') | split(', ') | select() | list }}" + become: false + +- name: Ensure gnome-extensions-app is installed + ansible.builtin.dnf: + name: + - gnome-extensions-app + state: present + become: true + +- name: Create extensions directory + ansible.builtin.file: + path: "{{ ansible_env.HOME }}/.local/share/gnome-shell/extensions/clipboard-indicator@tudmotu.com" + state: directory + mode: '0755' + become: false + +- name: Get GNOME Shell version for extension compatibility + ansible.builtin.shell: gnome-shell --version | grep -oP '\d+\.\d+' | head -1 + register: gnome_shell_version + changed_when: false + become: false + +- name: Download Clipboard Indicator extension metadata + ansible.builtin.uri: + url: "https://extensions.gnome.org/extension-info/?pk=779&shell_version={{ gnome_shell_version.stdout }}" + return_content: true + register: extension_info + become: false + +- name: Download Clipboard Indicator extension + ansible.builtin.get_url: + url: "https://extensions.gnome.org{{ extension_info.json.download_url }}" + dest: "/tmp/clipboard-indicator.zip" + mode: '0644' + become: false + +- name: Extract Clipboard Indicator extension + ansible.builtin.unarchive: + src: "/tmp/clipboard-indicator.zip" + dest: "{{ ansible_env.HOME }}/.local/share/gnome-shell/extensions/clipboard-indicator@tudmotu.com/" + remote_src: true + become: false + +- name: Enable Clipboard Indicator extension + community.general.dconf: + key: "/org/gnome/shell/enabled-extensions" + value: "{{ enabled_extensions + ['clipboard-indicator@tudmotu.com'] }}" + state: present + vars: + enabled_extensions: "{{ lookup('pipe', 'gsettings get org.gnome.shell enabled-extensions') | regex_replace(\"^@as |\\[|\\]|'\", '') | split(', ') | select() | list }}" + become: false + +- name: Create Dash to Dock extensions directory + ansible.builtin.file: + path: "{{ ansible_env.HOME }}/.local/share/gnome-shell/extensions/dash-to-dock@micxgx.gmail.com" + state: directory + mode: '0755' + become: false + +- name: Download Dash to Dock extension metadata + ansible.builtin.uri: + url: "https://extensions.gnome.org/extension-info/?pk=307&shell_version={{ gnome_shell_version.stdout }}" + return_content: true + register: dash_to_dock_info + become: false + +- name: Download Dash to Dock extension + ansible.builtin.get_url: + url: "https://extensions.gnome.org{{ dash_to_dock_info.json.download_url }}" + dest: "/tmp/dash-to-dock.zip" + mode: '0644' + become: false + +- name: Extract Dash to Dock extension + ansible.builtin.unarchive: + src: "/tmp/dash-to-dock.zip" + dest: "{{ ansible_env.HOME }}/.local/share/gnome-shell/extensions/dash-to-dock@micxgx.gmail.com/" + remote_src: true + become: false + +- name: Enable Dash to Dock extension + community.general.dconf: + key: "/org/gnome/shell/enabled-extensions" + value: "{{ enabled_extensions + ['dash-to-dock@micxgx.gmail.com'] }}" + state: present + vars: + enabled_extensions: "{{ lookup('pipe', 'gsettings get org.gnome.shell enabled-extensions') | regex_replace(\"^@as |\\[|\\]|'\", '') | split(', ') | select() | list }}" + become: false + - name: Ensure flatpak is installed ansible.builtin.dnf: name: @@ -26,6 +129,11 @@ community.general.flatpak: name: - com.mattjakeman.ExtensionManager + - com.github.tchx84.Flatseal + - org.gnome.Evolution + - org.keepassxc.KeePassXC + - com.belmoussaoui.Authenticator + - org.gnome.World.Secrets state: present remote: flathub become: true