-
Notifications
You must be signed in to change notification settings - Fork 2
/
letsgo
executable file
·83 lines (63 loc) · 3.71 KB
/
letsgo
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
#!/bin/bash
clear
echo " Misc..."
sudo pacman -Syy --noconfirm openssh git
echo " Ensure keys are up to date..."
sudo pacman-key --refresh-keys
echo " Update the system..."
sudo pacman -Syyu
echo " Installing Yay..."
git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -si
echo " Updating the AUR packages..."
yay -Syuu --noconfirm
echo " DateTime..."
yay -S --noconfirm ntp
sudo systemctl enable ntpd.service
sudo ln -sfv /usr/share/zoneinfo/America/Sao_Paulo /etc/localtime
# https://www.thegeekdiary.com/how-to-configure-and-manage-network-connections-using-nmcli/
echo " Connectivity shit..."
WIRELESS_DEV=$(ip link | grep wlp | awk '{print $2}'| sed 's/://' | sed '1!d')
if [[ -n $WIRELESS_DEV ]]; then
echo "==> ${WIRELESS_DEV} interface detected"
echo " Installing wifi packages..."
yay -S --noconfirm iw wireless_tools wpa_actiond wpa_supplicant dialog netctl vnstat
fi
WIRED_DEV=$(ip link | grep "en[sop]" | awk '{print $2}'| sed 's/://' | sed '1!d')
if [[ -n $WIRED_DEV ]]; then
echo "==> ${WIRED_DEV} interface detected"
sudo systemctl enable dhcpcd@${WIRED_DEV}.service
fi
if ! grep "^noarp$" /etc/dhcpcd.conf; then
echo -e "\nnoarp" | sudo tee -a /etc/dhcpcd.conf
fi
echo " Installing terminal stuff..."
yay -S --noconfirm udiskie speedtest-cli playerctl fio blueman bluez bluez-utils tldr git-delta bat fzf aria2 xclip rsync gnome-keyring thefuck cronie fasd ctop-bin gotop-bin zsh htop iotop-c rxvt-unicode-truecolor-wide-glyphs tmux neovim stow ncdu slurm pacman-cleanup-hook
echo " Installing dev stuff"
yay -S --noconfirm google-cloud-sdk tflint helm minikube kubectl tldr borg borgmatic google-chrome terraform terraform-docs-bin pyenv pyenv-virtualenv nodejs npm visual-studio-code-bin jetbrains-toolbox docker docker-compose
echo " Installing productivity tools"
yay -S --noconfirm zoom slack-desktop zip unzip unrar p7zip libreoffice-fresh rclone rclone-browser
echo " Installing ricing shit..."
yay -S --noconfirm lxappearance-gtk3 fastfetch thunar tumbler light polybar picom scrot feh python-pywal i3-wm dunst rofi unclutter betterlockscreen
echo " ...fonts "
yay -S --noconfirm xorg-font-util gucharmap otf-san-francisco-pro otf-san-francisco-mono cozette-ttf tamzen-font ttf-ubuntu-nerd ttf-ubuntu-mono-nerd ttf-roboto-mono-nerd ttf-meslo-nerd ttf-jetbrains-mono-nerd ttf-inconsolata-nerd ttf-iosevka-nerd ttf-iosevkaterm-nerd ttf-inconsolata-nerd ttf-hack-nerd ttf-dejavu-nerd otf-droid-nerd ttf-victor-mono-nerd ttf-firacode-nerd ttf-dejavu-nerd otf-firamono-nerd
echo " Installing display drivers & tools..."
yay -S --noconfirm bbswitch mons inxi glxinfo autorandr envycontrol nvidia-container-toolkit v4l-utils guvcview
# https://wiki.archlinux.org/index.php/fan_speed_control#Fancontrol_(lm-sensors)
# https://wiki.archlinux.org/index.php/Laptop_Mode_Tools#Configuration
echo " Temp Cº, battery and power manager..."
yay -S --noconfirm lm_sensors i8kutils tcl tlpui tlp tk dell-bios-fan-control-git powertop acpi acpid thermald
sudo dell-bios-fan-control 0
sudo systemctl mask systemd-rfkill.service systemd-rfkill.socket
sudo systemctl enable i8kmon.service
sudo systemctl enable thermald.service
sudo systemctl enable tlp.service
sudo systemctl start thermald.service
sudo systemctl start i8kmon.service
sudo systemctl start tlp.service
# https://wiki.archlinux.org/title/TLP#USB_autosuspend
echo " Installing music & audio manager..."
yay -S --noconfirm httpx python-uritools python-ytmusicapi mopidy-spotify-git mopidy-mpd mopidy-scrobbler mopidy-youtube mopidy-local mopidy mopidy-autoplay mopidy-iris picard bum-git mpv mpc cava alsa-utils alsa-lib pipewire-alsa pipewire-pulse ncmpcpp lyvi-git
echo " Installing touchpad packages..."
yay -S --noconfirm libinput xf86-input-libinput