-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.yml
108 lines (97 loc) · 2.79 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
###############################################################################
# Install Gnome shell on wayland
###############################################################################
- name: Install wayland, gnome-shell and gdm
pacman:
name:
- wayland
- gdm
- gnome-shell
tags:
- gnome_shell
- name: Disable gnome xsession
command: mv /usr/share/xsessions/gnome.desktop /usr/share/xsessions/gnome.desktop.disabled
args:
removes: /usr/share/xsessions/gnome.desktop
tags:
- gnome_shell
- name: Try to find out host keymap
command: localectl status
delegate_to: localhost
failed_when: false
changed_when: false
when: keymap|default('', true)|length == 0
register: localectl_status
tags:
- gnome_shell
- keymap
- name: Store found host keymap
set_fact:
keymap: "{{ localectl_status.stdout | regex_search('Keymap:\\s*(.*)$', '\\1', multiline=True) | first }}"
when: (keymap | default('', true) | length == 0) and (localectl_status.rc == 0)
tags:
- gnome_shell
- keymap
- name: Set gnome keyboard layout
dconf:
key: "/org/gnome/desktop/input-sources/sources"
value: "[('xkb', '{{ keymap }}')]"
when: keymap|default('', true)|length != 0
tags:
- gnome_shell
- keymap
- name: Disable sleep on inactivity
# Sleep on inactivity can be a problem when installation with Ansible is slow
# The sleep is completely disabled here
# Another possibility would be to enlarge the timeout
# See https://wiki.archlinux.org/index.php/GNOME#Power
dconf:
key: "/org/gnome/settings-daemon/plugins/power/sleep-inactive-ac-type"
value: "'nothing'"
tags:
- gnome_shell
- gnome_disable_sleep
- name: Disable idle delay
# Sleep on inactivity can be a problem when installation with Ansible is slow
# "Idle time" is disabled by setting it to 0
dconf:
key: "/org/gnome/desktop/session/idle-delay"
value: "0"
tags:
- gnome_shell
- gnome_disable_sleep
- name: Enable and start gdm
systemd:
name: gdm
state: started
enabled: yes
tags:
- gnome_shell
- name: Install useful gnome desktop applications
pacman:
name:
- gnome-shell-extension-appindicator
- xdg-desktop-portal-gtk
- xdg-user-dirs
- nautilus
- tumbler
- ffmpegthumbnailer
- raw-thumbnailer
- gnome-epub-thumbnailer
- gnome-control-center
- gnome-books
- gcompris-qt
tags:
- gnome_shell
- apps
- name: Enable appindicator by default
# Proper name of the appindicator extension needed
# Can be found in PKGBUILD of package:
# appindicatorsupport@rgcjonas.gmail.com
dconf:
key: "/org/gnome/shell/enabled-extensions"
value: "['appindicatorsupport@rgcjonas.gmail.com']"
tags:
- gnome_shell
- apps
# org.gnome.books night-mode true