(begin) configuring mate

This commit is contained in:
Simon Bruder 2018-03-18 15:25:28 +00:00 committed by jalr
parent d6e7930f43
commit 7cab32e5dc
4 changed files with 48 additions and 0 deletions

View file

@ -0,0 +1,21 @@
#!/bin/bash
if echo $USER | grep -E 'guest-*'; then
gsettings set org.mate.screensaver lock-enabled false
zenity \
--title="Willkomen im FabLab Bad Windsheim" \
--info \
--width=500 \
--text='Hallo!\n\nDu hast Dich mit einem Gast-Account angemeldet. Alle Daten werden nach der Anmeldung gelöscht. Wenn Du Deine Daten dauerhaft speichern möchtest, lege Dir bitte einene Account an!'
fi
# set background image
gsettings set org.mate.background picture-filename '/etc/lightdm/bg.jpg'
# set panel position
gsettings set org.mate.panel.toplevel:/org/mate/panel/toplevels/bottom/ orientation 'top'
gsettings set org.mate.panel.toplevel:/org/mate/panel/toplevels/top/ orientation 'bottom'
# set fonts
#gsettings set org.mate.interface monospace-font-name 'Monospace 10'
gsettings set org.mate.interface font-name 'Roboto 10'
gsettings set org.mate.interface document-font-name 'Roboto 10'

View file

@ -0,0 +1,5 @@
[Desktop Entry]
Name=Autostart
Type=Application
NoDisplay=true
Exec=/usr/local/bin/autostart

View file

@ -1,4 +1,10 @@
---
- import_tasks: lightdm.yml
tags:
- windowmanager:lightdm
- import_tasks: awesome.yml
tags:
- windowmanager:awesome
- import_tasks: mate.yml
tags:
- windowmanager:mate

View file

@ -3,3 +3,19 @@
apt:
name: "task-mate-desktop"
state: present
- name: copy autostart script
copy:
src: autostart
dest: /usr/local/bin/autostart
mode: "0775"
- name: create autostart directory
file:
path: /etc/skel/.config/autostart/
state: directory
- name: copy autostart desktop file
copy:
src: autostart.desktop
dest: /etc/skel/.config/autostart/autostart.desktop