This repository has been archived by the owner on Nov 4, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
lomiri.install
46 lines (41 loc) · 2.42 KB
/
lomiri.install
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
post_install() {
cat >"/usr/share/lightdm/lightdm.conf.d/50-lightdm-autologin.conf" <<EOF
[Seat:*]
autologin-user=alarm
autologin-user-timeout=0
EOF
groupadd -r autologin
gpasswd -a alarm autologin
systemctl enable lightdm
cat >>"/etc/deviceinfo/alias.conf" <<EOF
Xiaomi Pocophone F1=beryllium
EOF
cat >"/etc/deviceinfo/beryllium.conf" <<EOF
[device]
Name=beryllium
PrettyName=Xiaomi Pocophone F1
DeviceType=phone
GridUnit=20
PrimaryOrientation=Portrait
EOF
mkdir -p /usr/lib/systemd/user/ayatana-indicators.target.wants
ln -sf /usr/lib/systemd/user/ayatana-indicator-datetime.service /usr/lib/systemd/user/ayatana-indicators.target.wants/ayatana-indicator-datetime.service
ln -sf /usr/lib/systemd/user/ayatana-indicator-display.service /usr/lib/systemd/user/ayatana-indicators.target.wants/ayatana-indicator-display.service
ln -sf /usr/lib/systemd/user/ayatana-indicator-messages.service /usr/lib/systemd/user/ayatana-indicators.target.wants/ayatana-indicator-messages.service
ln -sf /usr/lib/systemd/user/ayatana-indicator-power.service /usr/lib/systemd/user/ayatana-indicators.target.wants/ayatana-indicator-power.service
ln -sf /usr/lib/systemd/user/ayatana-indicator-session.service /usr/lib/systemd/user/ayatana-indicators.target.wants/ayatana-indicator-session.service
ln -sf /usr/lib/systemd/user/ayatana-indicator-sound.service /usr/lib/systemd/user/ayatana-indicators.target.wants/ayatana-indicator-sound.service
ln -sf /usr/lib/systemd/user/indicator-network.service /usr/lib/systemd/user/ayatana-indicators.target.wants/indicator-network.service
ln -sf /usr/lib/systemd/user/indicator-transfer.service /usr/lib/systemd/user/ayatana-indicators.target.wants/indicator-transfer.service
ln -sf /usr/lib/systemd/user/indicator-bluetooth.service /usr/lib/systemd/user/ayatana-indicators.target.wants/indicator-bluetooth.service
ln -sf /usr/lib/systemd/user/indicator-location.service /usr/lib/systemd/user/ayatana-indicators.target.wants/indicator-location.service
systemctl enable ModemManager
systemctl enable tlp
systemctl enable zswap-arm
systemctl enable repowerd
systemctl enable hfd-service
systemctl enable sensorfwd
ln -sf /usr/share/backgrounds/archlinux/wave.png /usr/share/backgrounds/warty-final-ubuntu.png
mkdir -p /usr/lib/systemd/user/graphical-session.target.wants
ln -sf /usr/lib/systemd/user/maliit-server.service /usr/lib/systemd/user/graphical-session.target.wants/maliit-server.service
}