(begin) configuring mate
This commit is contained in:
parent
d6e7930f43
commit
7cab32e5dc
4 changed files with 48 additions and 0 deletions
21
packer/ansible/roles/windowmanager/files/autostart
Executable file
21
packer/ansible/roles/windowmanager/files/autostart
Executable 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'
|
||||||
|
|
@ -0,0 +1,5 @@
|
||||||
|
[Desktop Entry]
|
||||||
|
Name=Autostart
|
||||||
|
Type=Application
|
||||||
|
NoDisplay=true
|
||||||
|
Exec=/usr/local/bin/autostart
|
||||||
|
|
@ -1,4 +1,10 @@
|
||||||
---
|
---
|
||||||
- import_tasks: lightdm.yml
|
- import_tasks: lightdm.yml
|
||||||
|
tags:
|
||||||
|
- windowmanager:lightdm
|
||||||
- import_tasks: awesome.yml
|
- import_tasks: awesome.yml
|
||||||
|
tags:
|
||||||
|
- windowmanager:awesome
|
||||||
- import_tasks: mate.yml
|
- import_tasks: mate.yml
|
||||||
|
tags:
|
||||||
|
- windowmanager:mate
|
||||||
|
|
|
||||||
|
|
@ -3,3 +3,19 @@
|
||||||
apt:
|
apt:
|
||||||
name: "task-mate-desktop"
|
name: "task-mate-desktop"
|
||||||
state: present
|
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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue