|
7 | 7 | # (c) 2019-2021 Fascode Network. |
8 | 8 | # |
9 | 9 |
|
10 | | -# Bluetooth |
11 | | -#rfkill unblock all |
12 | | -#systemctl enable bluetooth |
13 | | - |
14 | 10 | # Replace shortcut list config |
15 | 11 | if [[ "${language}" = "ja" ]]; then |
16 | 12 | remove "/etc/skel/.config/conky/conky.conf" |
@@ -42,41 +38,18 @@ sed -i "/light/s/^/# /g" /home/${username}/.config/i3/config |
42 | 38 | # disable auto screen lock |
43 | 39 | rm /etc/xdg/autostart/light-locker.desktop |
44 | 40 |
|
45 | | -# Snap |
46 | | -#if [[ "${arch}" = "x86_64" ]]; then |
47 | | -# systemctl enable snapd.apparmor.service |
48 | | -# systemctl enable apparmor.service |
49 | | -# systemctl enable snapd.socket |
50 | | -# systemctl enable snapd.service |
51 | | -#fi |
52 | | - |
53 | | - |
54 | 41 | # Update system datebase |
55 | 42 | dconf update |
56 | 43 |
|
57 | | - |
58 | | -# firewalld |
59 | | -#systemctl enable firewalld.service |
60 | | - |
61 | 44 | # ntp |
62 | 45 | systemctl enable systemd-timesyncd.service |
63 | 46 |
|
64 | | - |
65 | | -# Added autologin group to auto login |
66 | | -groupadd autologin |
67 | | -usermod -aG autologin ${username} |
68 | | - |
69 | | - |
70 | 47 | # Enable LightDM to auto login |
71 | 48 | if [[ "${boot_splash}" = true ]]; then |
72 | 49 | systemctl enable lightdm-plymouth.service |
73 | 50 | else |
74 | 51 | systemctl enable lightdm.service |
75 | 52 | fi |
76 | 53 |
|
77 | | - |
78 | | -# Set script permission |
79 | | -#chmod 755 /usr/bin/alterlinux-gtk-bookmarks |
80 | | - |
81 | 54 | # Replace auto login user |
82 | | -sed -i s/%USERNAME%/${username}/g /etc/lightdm/lightdm.conf |
| 55 | +sed -i "s|%USERNAME%|${username}|g" "/etc/lightdm/lightdm.conf.d/02-autologin.conf" |
0 commit comments