diff --git a/default/main.yaml b/default/main.yaml new file mode 100644 index 0000000..f07a3cd --- /dev/null +++ b/default/main.yaml @@ -0,0 +1,27 @@ +--- +xfwm4_use_compositing: true + +xfce_lock_panel: true +xfce_unlocked_users: root + +application_starters: + - firefox-esr + - chromium + - xfce4-terminal + - xfce-display-settings + +application_default_favorites: + - exo-file-manager + - gnome-search-tool + - firefox-esr + - chromium + - thunderbird + - libreoffice-writer + - libreoffice-calc + - libreoffice-impress + - libreoffice-draw + - xfce-display-settings + - xfce4-screenshooter + - fotowall + - org.gnome.gThumb + - simple-scan diff --git a/files/xfce-customization/xdg/xfce4/kiosk/kioskrc b/files/xfce-customization/xdg/xfce4/kiosk/kioskrc new file mode 100644 index 0000000..b2bd204 --- /dev/null +++ b/files/xfce-customization/xdg/xfce4/kiosk/kioskrc @@ -0,0 +1,2 @@ +[xfce4-session] +SaveSession=NONE diff --git a/files/xfce-customization/xdg/xfce4/panel/datetime-10.rc b/files/xfce-customization/xdg/xfce4/panel/datetime-10.rc new file mode 100644 index 0000000..44b58e4 --- /dev/null +++ b/files/xfce-customization/xdg/xfce4/panel/datetime-10.rc @@ -0,0 +1,5 @@ +layout=1 +date_font=Sans 16 +time_font=Sans Bold 28 +date_format=%a, %d.%m. +time_format=%H:%M diff --git a/files/xfce-customization/xdg/xfce4/xfconf/xfce-perchannel-xml/xfce4-desktop.xml b/files/xfce-customization/xdg/xfce4/xfconf/xfce-perchannel-xml/xfce4-desktop.xml new file mode 100644 index 0000000..cee0c9a --- /dev/null +++ b/files/xfce-customization/xdg/xfce4/xfconf/xfce-perchannel-xml/xfce4-desktop.xml @@ -0,0 +1,170 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/files/xfce-customization/xdg/xfce4/xfconf/xfce-perchannel-xml/xsettings.xml b/files/xfce-customization/xdg/xfce4/xfconf/xfce-perchannel-xml/xsettings.xml new file mode 100644 index 0000000..60f2699 --- /dev/null +++ b/files/xfce-customization/xdg/xfce4/xfconf/xfce-perchannel-xml/xsettings.xml @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tasks/main.yaml b/tasks/main.yaml index 44db38b..c5a81e8 100644 --- a/tasks/main.yaml +++ b/tasks/main.yaml @@ -4,10 +4,14 @@ apt: pkg: "{{ desktop_packages }}" -- import_role: - name: atom_editor - - name: ensure dunst package is absent for nicer notifications apt: pkg: dunst state: absent + +- name: default system icon theme + template: + src: icon.theme.j2 + dest: /usr/share/icons/default/index.theme + +- import_tasks: xfce-customization.yaml diff --git a/tasks/xfce-customization.yaml b/tasks/xfce-customization.yaml new file mode 100644 index 0000000..f5182fc --- /dev/null +++ b/tasks/xfce-customization.yaml @@ -0,0 +1,21 @@ +--- + +- name: xdg config + copy: + src: xfce-customization/xdg/ + dest: /etc/xdg/ + +- name: xfce panel config + template: + src: xfce-customization/xfce4-panel.xml.j2 + dest: /etc/xdg/xfce4/xfconf/xfce-perchannel-xml/xfce4-panel.xml + +- name: whiskermenu config + template: + src: xfce-customization/whiskermenu-1.rc.j2 + dest: /etc/xdg/xfce4/panel/whiskermenu-1.rc + +- name: xfwm4 config + template: + src: xfce-customization/xfwm4.xml.j2 + dest: /etc/xdg/xfce4/xfconf/xfce-perchannel-xml/xfwm4.xml diff --git a/templates/icon.theme.j2 b/templates/icon.theme.j2 new file mode 100644 index 0000000..238d629 --- /dev/null +++ b/templates/icon.theme.j2 @@ -0,0 +1,6 @@ +{{ ansible_managed | comment }} + +[Icon Theme] +Name=Default +Comment=Default Cursor Theme +Inherits=DMZ-White diff --git a/templates/xfce-customization/whiskermenu-1.rc.j2 b/templates/xfce-customization/whiskermenu-1.rc.j2 new file mode 100644 index 0000000..9f8bd92 --- /dev/null +++ b/templates/xfce-customization/whiskermenu-1.rc.j2 @@ -0,0 +1,66 @@ +favorites={{ application_default_favorites | map('regex_replace', '(.*)', '\\1.desktop') | join(',') }} +recent= +button-title=Anwendungen +button-icon=applications-other +button-single-row=false +show-button-title=false +show-button-icon=true +launcher-show-name=false +launcher-show-description=true +launcher-show-tooltip=true +item-icon-size=3 +hover-switch-category=false +category-icon-size=1 +load-hierarchy=false +recent-items-max=10 +favorites-in-recent=true +display-recent-default=false +position-search-alternate=false +position-commands-alternate=false +position-categories-alternate=false +menu-width=600 +menu-height=800 +menu-opacity=90 +command-settings=xfce4-settings-manager +show-command-settings=true +command-lockscreen=xflock4 +show-command-lockscreen=true +command-switchuser=gdmflexiserver +show-command-switchuser=false +command-logout=xfce4-session-logout +show-command-logout=true +command-menueditor=menulibre +show-command-menueditor=true +command-profile=mugshot +show-command-profile=false +search-actions=5 + +[action0] +name=Handbuchseiten +pattern=# +command=exo-open --launch TerminalEmulator man %s +regex=false + +[action1] +name=Internetsuche +pattern=? +command=exo-open --launch WebBrowser https://www.google.de/search?q=%u +regex=false + +[action2] +name=Wikipedia +pattern=!w +command=exo-open --launch WebBrowser https://de.wikipedia.org/wiki/%u +regex=false + +[action3] +name=Im Terminal ausführen +pattern=! +command=exo-open --launch TerminalEmulator %s +regex=false + +[action4] +name=Adresse öffnen +pattern=^(file|http|https):\\/\\/(.*)$ +command=exo-open \\0 +regex=true diff --git a/templates/xfce-customization/xfce4-panel.xml.j2 b/templates/xfce-customization/xfce4-panel.xml.j2 new file mode 100644 index 0000000..16b8dc1 --- /dev/null +++ b/templates/xfce-customization/xfce4-panel.xml.j2 @@ -0,0 +1,146 @@ + + +{% set i = 17 %} + + + + + + + + + + + + + +{% for app in application_starters %} + +{% endfor %} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +{% for app in application_starters %} + + + + + +{% endfor %} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/templates/xfce-customization/xfwm4.xml.j2 b/templates/xfce-customization/xfwm4.xml.j2 new file mode 100644 index 0000000..1bee490 --- /dev/null +++ b/templates/xfce-customization/xfwm4.xml.j2 @@ -0,0 +1,87 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +