aboutsummaryrefslogtreecommitdiff
path: root/distro/arch.sh
blob: 792110fbd4933ae6d4df4d54d7d7d5cd2fdb09cf (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
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
180
181
182
183
184
185
186
187
188
189
190
191
#!/bin/sh
set -e
if [ "$(id -u)" -ne 0 ] ; then
	echo "Run as root"
	exit 1;
fi

pkgs="
base
linux
linux-zen
linux-firmware
vim
lvm2
xfsprogs
gdisk
dosfstools
btrfs-progs
networkmanager
wireless_tools
xorg-server
lightdm
lightdm-gtk-greeter
base-devel
libconfig # dmenu-pinentry
neovim
git
picom
chromium
firefox
openssh
feh
qt5ct # https://wiki.archlinux.org/title/qt#Appearance
oxygen
oxygen-icons
oxygen-icons-svg
pass
pass-otp
xclip
redshift
pulseaudio
pavucontrol
xorg-apps
alsa-utils
usbutils
tmux
vlc
xdotool
podman
gimp
rlwrap # used for clj
lxappearance
gdb
mandoc
man-pages
libfido2
scrot
rsync
shellcheck
fuse
net-tools
efibootmgr
evolution
arandr
seahorse
mpd
ncmpc
noto-fonts-emoji
the_silver_searcher
pwgen
openbsd-netcat
bluez-utils
bluez
pulseaudio-bluetooth
bluez-tools
python-pip
python-pyscard # for pip3 install --user ykman
swig # ykman
dunst
buildah
sipcalc
docker
ansible
jdk11-openjdk
jdk8-openjdk
libvirt # If you want
virt-manager
qemu
nsd # for drill a dig replacement
rclone
git-lfs
avr-gcc
avr-libc
multipath-tools # kpartx
ctags
smartmontools
gpa
xfce4
xfce4-goodies
picard # musicbrainz
inkscape
ncdu
nm-connection-editor
speedtest-cli
iperf3
ntfs-3g
pv
exfat-utils
zstd
bind
evince
nload
iotop
hdparm
wlroots
fuzzel
wl-clipboard
pixz
minisign
ncspot
avaihd
colordiff
ethtool
kdenlive
zathura
zathura-pdf
zathura-mupdf
zathura-pdf-mupdf
zathura-ps
zathura-djvu
neofetch
wireguard
wireguard-tools
cmake
dia
ed
htop
whois
shellcheck
xournalpp
libxcb
xorg-xwayland
libxkbcommon
wayland-protocols"

# pacman -S "$(echo "$pkgs" | awk '{print $1}' | tr '\n' ' ')"

fn="/etc/systemd/logind.conf"
bak="$fn.$(date +%s)"
cp "$fn" "$bak"
ed "$fn" <<EOF
/^\[Login
/^KillUserProcesses=
d
i
KillUserProcesses=yes
.
/^HandleLidSwitch=
d
i
HandleLidSwitch=ignore
.
w
q
EOF
if diff -q "$fn" "$bak" >/dev/null ; then
	rm "$bak"
fi


cat > /etc/udev/rules.d/99-removable.rules <<EOF
# /etc/udev/rules.d/99-removable.rules
ACTION=="add", SUBSYSTEM=="thunderbolt", ATTR{authorized}=="0", ATTR{authorized}="1"
EOF


cat > /etc/pacman.d/hooks/95-bootbackup.hook <<EOF
# /etc/pacman.d/hooks/95-bootbackup.hook
[Trigger]
Operation = Upgrade
Operation = Install
Operation = Remove
Type = Path
Target = usr/lib/modules/*/vmlinuz

[Action]
Depends = rsync
Description = Backing up /boot...
When = PostTransaction
Exec = /bin/sh -c 'tar -C / -cf /.bootbackup."\$(date +%m.%d.%Y)".tar boot'
EOF