diff --git a/roles/home-gui/files/chromium_chromium.desktop b/roles/home-gui/files/chromium_chromium.desktop new file mode 100644 index 0000000..1b66737 --- /dev/null +++ b/roles/home-gui/files/chromium_chromium.desktop @@ -0,0 +1,27 @@ +[Desktop Entry] +X-SnapInstanceName=chromium +Version=1.0 +Name=Chromium Web Browser +GenericName=Web Browser +Comment=Access the Internet +Exec=env BAMF_DESKTOP_FILE_HINT=/var/lib/snapd/desktop/applications/chromium_chromium.desktop /snap/bin/chromium --window-size="1024,768" %U +Terminal=false +Type=Application +Icon=/snap/chromium/current/chromium.png +Categories=Network;WebBrowser; +MimeType=text/html;text/xml;application/xhtml_xml;x-scheme-handler/http;x-scheme-handler/https; +StartupNotify=true +StartupWMClass=chromium +Actions=NewWindow;Incognito;TempProfile; + +[Desktop Action NewWindow] +Name=Open a New Window +Exec=env BAMF_DESKTOP_FILE_HINT=/var/lib/snapd/desktop/applications/chromium_chromium.desktop /snap/bin/chromium --window-size="1024,768" + +[Desktop Action Incognito] +Name=Open a New Window in incognito mode +Exec=env BAMF_DESKTOP_FILE_HINT=/var/lib/snapd/desktop/applications/chromium_chromium.desktop /snap/bin/chromium --window-size="1024,768" --incognito + +[Desktop Action TempProfile] +Name=Open a New Window with a temporary profile +Exec=env BAMF_DESKTOP_FILE_HINT=/var/lib/snapd/desktop/applications/chromium_chromium.desktop /snap/bin/chromium --window-size="1024,768" --temp-profile diff --git a/roles/home-gui/tasks/dotfiles.yml b/roles/home-gui/tasks/dotfiles.yml index 5ccbf82..14c1b54 100644 --- a/roles/home-gui/tasks/dotfiles.yml +++ b/roles/home-gui/tasks/dotfiles.yml @@ -59,6 +59,10 @@ dest: "{{ ansible_env.HOME }}/.local/share/applications/chromium-browser.desktop" vars: prefix: "{{ '/usr' if ansible_system == 'Linux' else '/usr/pkg' if ansible_system == 'NetBSD' else '/usr/local' }}" +- name: Add custom Chromium Snap launcher + ansible.builtin.copy: + src: "chromium_chromium.desktop" + dest: "{{ ansible_env.HOME }}/.local/share/applications/chromium_chromium.desktop" - name: Add GVim COC launcher ansible.builtin.copy: src: gvim-coc.desktop