-
Notifications
You must be signed in to change notification settings - Fork 8
/
install_sway_waybar.sh
executable file
·78 lines (68 loc) · 2.37 KB
/
install_sway_waybar.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
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
#!/bin/bash
clear
echo "Starting Desktop Configuration..."
sleep 2
clear
echo "Getting fastest mirrors..."
echo
sudo sed -i 's/#Color/Color/' /etc/pacman.conf
sudo sed -i 's/#ParallelDownloads/ParallelDownloads/' /etc/pacman.conf
sudo systemctl start reflector.service
cat /etc/pacman.d/mirrorlist
sleep 2
clear
echo "Refreshing keyrings..."
echo
sudo pacman -Sy
sudo pacman -S archlinux-keyring
sleep 2
clear
echo "Installing YAY..."
echo
cd ~/Downloads
git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -si
cd ~/Downloads/Sway-Waybar-Install-Script
sleep 2
clear
echo "Installing sway and related applications..."
echo
yay -S network-manager-applet blueman pavucontrol sway swaybg swayidle swaylock swayimg waybar wofi mako \
arc-gtk-theme papirus-icon-theme noto-fonts-emoji noto-fonts terminus-font nautilus file-roller \
gnome-disk-utility python-i3ipc python-requests pamixer polkit-gnome imagemagick jq gedit python-pip \
foot brightnessctl gammastep geoclue autotiling python-nautilus gvfs-smb google-chrome nwg-bar nwg-wrapper \
ttf-nerd-fonts-symbols-1000-em nautilus-open-any-terminal grim slurp wl-clipboard simple-scan \
libreoffice-still libreoffice-still-en-gb hunspell hunspell-en_ca hyphen hyphen-en libmythes \
mythes-en aurutils sddm sddm-sugar-candy-git plymouth
sleep 2
clear
echo "Applying configuration..."
echo
echo "Copying configuration files..."
cp -R .config/* $HOME/.config/
cp .bashrc $HOME/
sudo cp 09-timezone /etc/NetworkManager/dispatcher.d/
sudo cp 90-monitor.conf /etc/X11/xorg.conf.d/
sudo mkdir /etc/sddm.conf.d
sudo cp sddm.conf /etc/sddm.conf.d/
sudo cp theme.conf /usr/share/sddm/themes/sugar-candy/
sudo sed -i 's/HOOKS=(base systemd/HOOKS=(base systemd sd-plymouth/' /etc/mkinitcpio.conf
sudo sed -i 's/rw quiet/rw quiet splash vt.global_cursor_default=0/' /boot/loader/entries/arch.conf
sudo plymouth-set-default-theme -R spinfinity
sleep 2
echo
echo "Applying gsettings..."
sudo glib-compile-schemas /usr/share/glib-2.0/schemas
gsettings set com.github.stunkymonkey.nautilus-open-any-terminal terminal foot
gsettings set com.github.stunkymonkey.nautilus-open-any-terminal keybindings '<Ctrl><Alt>t'
gsettings set com.github.stunkymonkey.nautilus-open-any-terminal new-tab true
sleep 2
echo
echo "Enabling SDDM..."
sudo systemctl enable sddm.service
sleep 5
clear
echo "Installation complete, rebooting..."
sleep 2
reboot