summaryrefslogtreecommitdiffstats
path: root/arch-install.sh
blob: aef1528cd5d8d58ab5c4168333ab5c918bf260d3 (plain) (blame)
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
109
110
111
112
113
114
115
116
117
#!/usr/bin/env bash


#
# install aurto 
#
if [ ! -f /usr/bin/aurto ];then
	sudo pacman -S base-devel
	curl -L https://aur.archlinux.org/cgit/aur.git/snapshot/aurutils.tar.gz | tar xz
	cd aurutils
	gpg --recv-keys DBE7D3DD8C81D58D0A13D0E76BC26A17B9B7018A
	makepkg -srci

	curl -L https://aur.archlinux.org/cgit/aur.git/snapshot/aurto.tar.gz | tar xz
	cd aurto
	makepkg -srci

	aurto init

	aurto add aurto
fi

aurto add chezmoi-git
aurto add toot
aurto add sublime-text-3
aurto add micro
aurto add thunderbird-beta-bin
aurto add lazygit
aurto add pulseaudio-ctl
aurto add pulseaudio-modules-bt
aurto add brightnessctl-logind
aurto add connman-gtk
aurto add waybar-git


#
#install system-packages
#
sudo pacman -S smartmontools playerctl brightnessctl upower trash-cli usbutils dnsutils \
micro fd ripgrep exa bat jq tmux \
htop iftop iotop iperf3 mtr \
syncthing \
qt5-wayland gcr \
bash bash-completion \
curl wget youtube-dl \
tar gzip xz zstd unzip unrar \
git lazygit \
syncthing restic \
nim nimble php python \
connman wpa_supplicant connman-gtk \
bluez bluez-tools blueman pulseaudio-modules-bt \
pulseaudio pulseaudio-alsa pulseaudio-ctl pavucontrol \
sway swaybg ttf-dejavu slurp grim waybar-git otf-font-awesome alacritty wofi mako gammastep \
firefox luakit browserpass browserpass-firefox \
thunderbird-beta-bin element-desktop telegram-desktop mumble \
thunar thunar-archive-plugin thunar-media-tags-plugin thunar-volman tumbler \
mpv ffmpeg imv zathura zathura-pdf-poppler zathura-djvu gnumeric abiword gimp sublime-text-3 \
gnupg gnupg-pkcs11-scd pinentry pcsclite pcsc-tools ccid pass \
pandoc \
xonotic \
usbmuxd libimobiledevice \
physlock

#java minecraft


#clone dotfiles if not already there
if [ ! -d ~/.local/share/chezmoi ];then
	mkdir -p ~/.local/share/chezmoi
	git clone https://cgit.ctu.cx/dotfiles  ~/.local/share/chezmoi
	chezmoi apply
fi

#fix broken usbmuxd-service
sudo mkdir -p /etc/systemd/system/usbmuxd.service.d
sudo tee /etc/systemd/system/usbmuxd.service.d/override.conf <<EOF
[Install]
WantedBy=multi-user.target
EOF

#create physlock.service
sudo tee /etc/systemd/system/physlock.service <<EOF
[Unit]
Description=Lock X session
Before=sleep.target

[Service]
Type=forking
ExecStart=/usr/bin/physlock -ds
Restart=on-failure

[Install]
WantedBy=sleep.target
EOF

#enable autologin on getty1
sudo mkdir -p /etc/systemd/system/getty@tty1.service.d
sudo tee /etc/systemd/system/getty@tty1.service.d/override.conf <<EOF
[Service]
Type=simple
ExecStart=
ExecStart=-/usr/bin/agetty --autologin leah --noclear %I $TERM
EOF


#enable services 
sudo systemctl enable --now pcscd 
sudo systemctl enable --now usbmuxd
sudo systemctl enable --now connman
sudo systemctl enable physlock

#enable user services
systemctl --user enable --now gammastep
systemctl --user enable --now mako
systemctl --user enable --now syncthing
systemctl --user enable --now thunar
systemctl --user enable --now waybar