aboutsummaryrefslogtreecommitdiff
path: root/artix.sh
blob: e7e8c79a14e52fd5711a45ee1d539ff69e42596c (plain)
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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
#!/bin/sh

# Very basic helper script to install some programs and configs for an
# Artix+runit+Sway system

pacman -Sy \
	zsh \
	zsh-syntax-highlighting \
	wireguard-tools \
	mediainfo \
	highlight \
	bind-tools \
	sway \
	swaylock \
	swayidle \
	waybar \
	egl-wayland \
	imv \
	swaybg \
	man-db \
	xorg-server-xwayland \
	qt5-wayland \
	wl-clipboard \
	dbus \
	tmux \
	htop \
	mupdf \
	mpd \
	ncmpcpp \
	mpc \
	mpv \
	libnotify \
	cronie \
	cronie-runit \
	metalog \
	metalog-runit \
	dnsmasq \
	networkmanager \
	dhcpcd \
	networkmanager-runit \
	rsync \
	grim \
	wf-recorder \
	slurp \
	ffmpeg \
	w3m \
	youtube-dl \
	newsboat \
	wget \
	curl \
	inkscape \
	gimp \
	darktable \
	gcc \
	clang \
	make \
	wpa_supplicant \
	fontconfig \
	pkg-config \
	fakeroot \
	papirus-icon-theme \
	arc-icon-theme \
	elementary-icon-theme \
	alsa-utils \
	pipewire \
	pipewire-alsa \
	pipewire-pulse \
	wireplumber \
	pamixer \
	imagemagick \
	ntfs-3g \
	unzip \
	unrar \
	gnome-themes-standard \
	telegram-desktop \
	qt5ct \
	r \
	bc \
	udisks2 \
	dash \
	perl-term-readline-gnu \
	transmission-cli \
	transmission-remote-gtk \
	python-pynvim \
	python-pip \
	python-pillow \
	calcurse \
	acpi \
	acpid \
	gnupg \
	noto-fonts-cjk \
	noto-fonts-emoji \
	ttf-joypixels \
	otf-latin-modern \
	otf-latinmodern-math \
	powerline-fonts \
	python-pygit2 \
	polkit \
	polkit-gnome \
	zathura \
	zathura-pdf-mupdf \
	zathura-djvu \
	gst-libav \
	blueman \
	bluez \
	bluez-runit \
	acpilight \
	accountsservice \
	xdg-user-dirs \
	terminus-font \
	vimb \
	jq \
	stow \
	wdiff \
	texlive-most \
	texlive-lang \
	biber \
	units \
	isync \
	neomutt \
	notmuch \
	pass \
	translate-shell \
	gnome-keyring \
	pacman-contrib \
	linux-headers \
	openntpd \
	openntpd-runit \
	v4l2loopback-dkms \
	|| exit 1

# Copy system config files
cp system/sudoers /etc/
cp system/mkinitcpio.conf /etc/
cp system/pam.d/* /etc/pam.d/
cp -r system/NetworkManager/* /etc/NetworkManager/
cp -r system/pacman.d/hooks /etc/pacman.d/
cp -r runit/powertune /etc/runit/sv/

# Copy some fonts to make them available system-wide
mkdir -p /usr/share/fonts/rice
cp system/fonts/* /usr/share/fonts/rice/

# Activate runit services
ln -s /etc/runit/sv/dbus /etc/runit/runsvdir/default/
ln -s /etc/runit/sv/bluetoothd /etc/runit/runsvdir/default/
ln -s /etc/runit/sv/cronie /etc/runit/runsvdir/default/
ln -s /etc/runit/sv/metalog /etc/runit/runsvdir/default/
ln -s /etc/runit/sv/NetworkManager /etc/runit/runsvdir/default/
ln -s /etc/runit/sv/dhcpcd /etc/runit/runsvdir/default/
ln -s /etc/runit/sv/wpa_supplicant /etc/runit/runsvdir/default/

exit

# Install AUR helper
cd /tmp
mkdir build
chown -R "$1:$1" build
cd build
sudo -u "$1" "git clone https://aur.archlinux.org/yay.git && cd yay && makepkg -si"

yay -S --noconfirm \
	ttf-symbola \
	ttf-ms-fonts \
	pam-gnupg \
	ncpamixer \
	mimeo \
	xdg-utils-mimeo \
	lf-sixel-git \
	dragon-drop \
	swaylock-effects \
	youtube-viewer \
	abook \
	compiledb \
	rofi-lbonn-wayland \
	rofi-calc \
	rofi-file-browser-extended-git \
	networkmanager-dmenu-git