summaryrefslogtreecommitdiffstats
path: root/desktop-ubuntu
diff options
context:
space:
mode:
Diffstat (limited to 'desktop-ubuntu')
-rw-r--r--desktop-ubuntu/files/etc/dconf/db/local.d/01-bwlehrpool51
-rw-r--r--desktop-ubuntu/files/etc/dconf/profile/user2
-rw-r--r--desktop-ubuntu/tasks/main.yml31
-rw-r--r--desktop-ubuntu/vars/Ubuntu-18.yml2
-rw-r--r--desktop-ubuntu/vars/Ubuntu-20.yml3
5 files changed, 89 insertions, 0 deletions
diff --git a/desktop-ubuntu/files/etc/dconf/db/local.d/01-bwlehrpool b/desktop-ubuntu/files/etc/dconf/db/local.d/01-bwlehrpool
new file mode 100644
index 0000000..86f3342
--- /dev/null
+++ b/desktop-ubuntu/files/etc/dconf/db/local.d/01-bwlehrpool
@@ -0,0 +1,51 @@
+# set default background
+[org/gnome/desktop/background]
+picture-uri='file:///usr/share/backgrounds/bwlp-1920x1080.png'
+picture-options='zoom'
+primary-color='000000'
+secondary-color='000000'
+
+# disable screensaver and lock
+# but also set default picture just in case
+[org/gnome/desktop/screensaver]
+idle-activation-enabled=false
+lock-enabled=false
+ubuntu-lock-on-suspend=false
+picture-uri='file:///usr/share/backgrounds/bwlp-1920x1080.png'
+picture-options='zoom'
+primary-color='000000'
+secondary-color='000000'
+
+# disable lockscreen
+[org/gnome/desktop/lockdown]
+disable-lock-screen=true
+
+# ensure german keyboard layout on gnome-shell
+[org/gnome/desktop/input-sources]
+sources=[('xkb', 'de')]
+
+# disable automatic updates of gnome software
+[org/gnome/software]
+download-updates=false
+download-updates-notify=false
+
+# disable icons on desktop for mounted shares
+[org/gnome/nautilus/desktop]
+volumes-visible=false
+
+# disable different power settings
+[org/gnome/settings-daemon/plugins/power]
+idle-dim=false
+idle-brightness=100
+sleep-inactive-ac-timeout=0
+sleep-inactive-battery-timeout=0
+sleep-inactive-ac-type='nothing'
+sleep-inactive-battery-type='nothing'
+
+# disable display suspend after idle-time (uint32 !!!)
+[org/gnome/desktop/session]
+idle-delay=uint32 0
+
+# set favorites in dock
+[org/gnome/shell]
+favorite-apps=[ 'org.gnome.Nautilus.desktop', 'chromium-browser.desktop', 'firefox.desktop', 'libreoffice-writer.desktop', 'libreoffice-calc.desktop', 'libreoffice-impress.desktop', 'org.gnome.Terminal.desktop', 'gnome-control-center.desktop' ]
diff --git a/desktop-ubuntu/files/etc/dconf/profile/user b/desktop-ubuntu/files/etc/dconf/profile/user
new file mode 100644
index 0000000..aca0641
--- /dev/null
+++ b/desktop-ubuntu/files/etc/dconf/profile/user
@@ -0,0 +1,2 @@
+user-db:user
+system-db:local
diff --git a/desktop-ubuntu/tasks/main.yml b/desktop-ubuntu/tasks/main.yml
new file mode 100644
index 0000000..d5e053f
--- /dev/null
+++ b/desktop-ubuntu/tasks/main.yml
@@ -0,0 +1,31 @@
+---
+- name: Include distro-specific variables
+ include_vars: "{{ item }}"
+ with_first_found:
+ - "{{ role_path }}/vars/{{ ansible_distribution }}-{{ ansible_distribution_version}}.yml"
+ - "{{ role_path }}/vars/{{ ansible_distribution }}-{{ ansible_distribution_major_version}}.yml"
+ - "{{ role_path }}/vars/{{ ansible_distribution }}.yml"
+
+- name: Install Ubuntu's desktop environment
+ apt:
+ name: "{{ ubuntu_desktop_packages }}"
+ state: present
+ install_recommends: no
+
+- name: Copy static files
+ copy:
+ src: files/
+ dest: /
+ become: yes
+
+- name: Update dconf
+ command: dconf update
+
+- name: Remove ubuntu's snap session
+ file:
+ path: /usr/share/xsessions/ubuntu-communitheme-snap.desktop
+ state: absent
+
+- name: Disable gnome-keyring-daemon
+ shell: chmod -x /usr/bin/gnome-keyring-daemon
+
diff --git a/desktop-ubuntu/vars/Ubuntu-18.yml b/desktop-ubuntu/vars/Ubuntu-18.yml
new file mode 100644
index 0000000..8c2c553
--- /dev/null
+++ b/desktop-ubuntu/vars/Ubuntu-18.yml
@@ -0,0 +1,2 @@
+ubuntu_desktop_packages:
+ - ubuntu-desktop
diff --git a/desktop-ubuntu/vars/Ubuntu-20.yml b/desktop-ubuntu/vars/Ubuntu-20.yml
new file mode 100644
index 0000000..213a9f1
--- /dev/null
+++ b/desktop-ubuntu/vars/Ubuntu-20.yml
@@ -0,0 +1,3 @@
+ubuntu_desktop_packages:
+ - gnome-terminal
+ - ubuntu-desktop-minimal