Make Chromium open at 1024x768
This commit is contained in:
parent
ac27099675
commit
5a28ddf271
2 changed files with 31 additions and 0 deletions
|
@ -39,3 +39,9 @@
|
||||||
copy:
|
copy:
|
||||||
src: "xbindkeysrc"
|
src: "xbindkeysrc"
|
||||||
dest: "{{ ansible_env.HOME }}/.xbindkeysrc"
|
dest: "{{ ansible_env.HOME }}/.xbindkeysrc"
|
||||||
|
- name: Add custom Chromium launcher
|
||||||
|
template:
|
||||||
|
src: chromium-browser.desktop
|
||||||
|
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' }}"
|
||||||
|
|
25
roles/home-gui/templates/chromium-browser.desktop
Normal file
25
roles/home-gui/templates/chromium-browser.desktop
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
[Desktop Entry]
|
||||||
|
Version=1.0
|
||||||
|
Name=Chromium Web Browser
|
||||||
|
Comment=Access the Internet
|
||||||
|
GenericName=Web Browser
|
||||||
|
Exec={{ prefix }}/bin/chromium-browser --window-size="1024,768" %U
|
||||||
|
Terminal=false
|
||||||
|
X-MultipleArgs=false
|
||||||
|
Type=Application
|
||||||
|
Icon=chromium-browser
|
||||||
|
Categories=Network;WebBrowser;
|
||||||
|
MimeType=text/html;text/xml;application/xhtml+xml;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/ftp;
|
||||||
|
StartupWMClass=Chromium-browser
|
||||||
|
Keywords=web;browser;internet;
|
||||||
|
Actions=new-window;new-private-window;
|
||||||
|
|
||||||
|
X-Desktop-File-Install-Version=0.26
|
||||||
|
|
||||||
|
[Desktop Action new-window]
|
||||||
|
Name=Open a New Window
|
||||||
|
Exec={{ prefix }}/bin/chromium-browser --window-size="1024,768" %U
|
||||||
|
|
||||||
|
[Desktop Action new-private-window]
|
||||||
|
Name=Open a New Private Window
|
||||||
|
Exec={{ prefix }}/bin/chromium-browser --window-size="1024,768" --incognito %U
|
Loading…
Reference in a new issue