-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharch-desktop.sh
executable file
·48 lines (36 loc) · 1.39 KB
/
arch-desktop.sh
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
#!/bin/bash
# Exit on error
set -e
# Get the script dir
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
# Configure X11
sudo cp $SCRIPT_DIR/xorg.conf.d/* /etc/X11/xorg.conf.d/
# Create directories
mkdir -p ~/bin ~/tmp ~/Downloads
# Install packages
sudo pacman -Sy --needed i3 dmenu xss-lock i3lock dex xorg-xset xorg-xrdb xorg-xrandr htop xsel iotop sysstat vim curl git git-delta bat jq go ttf-inconsolata qbittorrent vlc chromium gimp fwupd udisks2 acpi bash-completion alacritty brightnessctl pulsemixer man gnome-screenshot fuse2 libappindicator-gtk3 noto-fonts noto-fonts-emoji noto-fonts-cjk unzip openssh x11-ssh-askpass pigz rsync python-pipx lsd ttf-firacode-nerd calc android-file-transfer httpie ripgrep dog
# Dark mode in gsettings
gsettings set org.gnome.desktop.interface color-scheme 'prefer-dark'
# Enable ssh agent
systemctl --user enable --now ssh-agent
# Configure bash
cp $SCRIPT_DIR/.sam.sh ~/
echo -e "\nsource ~/.sam.sh" >> ~/.bashrc
# Configure git
cp $SCRIPT_DIR/.gitignoreglobal ~/
cp $SCRIPT_DIR/.gitconfig ~/
# Configure everything else
cp -r $SCRIPT_DIR/.ssh ~/
cp -r $SCRIPT_DIR/.xinitrc ~/
cp -r $SCRIPT_DIR/.Xresources ~/
cp -r $SCRIPT_DIR/.config ~/
# Install yay
mkdir ~/tmp/yay
pushd ~/tmp/yay
curl -O https://aur.archlinux.org/cgit/aur.git/snapshot/yay.tar.gz
tar -xf yay.tar.gz
cd yay
makepkg -si --needed
popd
yay --version
rm -rf ~/tmp/yay