-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommands
130 lines (105 loc) · 2.88 KB
/
commands
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
#!/bin/sh
# Check if user is root on Arch distro. Install dialog.
pacman --noconfirm --needed -Sy dialog || error "Are you sure you're running this as the root user, are on an Arch-based distribution and have an internet connection?"
# Welcome user and pick dotfiles.
welcomemsg || error "User exited."
# Get and verify username and password.
getuserandpass || error "User exited."
# Give warning if user already exists.
usercheck || error "User exited."
# Last chance for user to back out before install.
preinstallmsg || error "User exited."
### The rest of the script requires no user input.
# Refresh Arch keyrings.
refreshkeys || error "Error automatically refreshing Arch keyring. Consider doing so manually."
-----------------------------------------------------------
pacman --noconfirm -S archlinux-keyring
pacman --noconfirm --needed -S curl ca-certificates base-devel git ntp zsh
ntpdate 0.us.pool.ntp.org
git clone --depth 1 "https://aur.archlinux.org/yay-bin.git
cd yay-bin
makepkg --noconfirm -si
#aurinstall
yay -S --noconfirm lf-git gtk-theme-arc-gruvbox-git brave-bin sc-im abook zsh-fast-syntax-highlighting-git task-spooler simple-mtpfs htop-vim-git mutt-wizard-git
#gitmakeinstall
git clone --depth 1 "https://github.com/LukeSmithxyz/dwm.git"
cd "dwm" || exit 1
make
make install
https://github.com/LukeSmithxyz/dwmblocks.git
https://github.com/lukesmithxyz/dmenu.git
https://github.com/lukesmithxyz/st.git
https://github.com/lukesmithxyz/dwm.git
pacman --noconfirm --needed -S xorg-server
xorg-xwininfo
xorg-xinit
ttf-linux-libertine
bc
xcompmgr
xorg-xprop
arandr
dosfstools
libnotify
dunst
exfat-utils
sxiv
xwallpaper
ffmpeg
gnome-keyring
neovim
mpd
mpc
mpv
man-db
ncmpcpp
newsboat
noto-fonts-emoji
ntfs-3g
pipewire
pipewire-pulse
pulsemixer
pamixer
maim
unclutter
unrar
unzip
lynx
xcape
xclip
xdotool
xorg-xdpyinfo
youtube-dl
zathura
zathura-pdf-mupdf
poppler
mediainfo
atool
fzf
highlight
xorg-xbacklight
slock
socat
moreutils
paru -S libxft-bgra-git
# Most important command! Get rid of the beep!
rmmod pcspkr
echo "blacklist pcspkr" > /etc/modprobe.d/nobeep.conf
# Make zsh the default shell for the user.
chsh -s /bin/zsh "$name" >/dev/null 2>&1
sudo -u "$name" mkdir -p "/home/$name/.cache/zsh/"
# Tap to click
[ ! -f /etc/X11/xorg.conf.d/40-libinput.conf ] && printf 'Section "InputClass"
Identifier "libinput touchpad catchall"
MatchIsTouchpad "on"
MatchDevicePath "/dev/input/event*"
Driver "libinput"
# Enable left mouse button by tapping
Option "Tapping" "on"
EndSection' > /etc/X11/xorg.conf.d/40-libinput.conf
# Fix fluidsynth/pulseaudio issue.
grep -q "OTHER_OPTS='-a pulseaudio -m alsa_seq -r 48000'" /etc/conf.d/fluidsynth ||
echo "OTHER_OPTS='-a pulseaudio -m alsa_seq -r 48000'" >> /etc/conf.d/fluidsynth
# Start/restart PulseAudio.
pkill -15 -x 'pulseaudio'; sudo -u "$name" pulseaudio --start
# Last message! Install complete!
clear