forked from thebiblelover7/install-scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sway-wayland
executable file
·63 lines (46 loc) · 2.12 KB
/
sway-wayland
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
#!/usr/bin/env bash
echo "This install script installs sway WM and related tools. It uses the Wayland protocol."
echo "Dependencies: git, pacman, a vanilla install of Arch Linux with the base-devel package "
echo "Packages that will be installed: sway waybar wl-clipboard dash bat mpv imv zathura \
zathura-pdf-mupdf alacritty grim slurp neovim otf-font-awesome pipewire pipewire-pulse \
pipewire-alsa bluez bluez-utils fish ttf-jetbrains-mono pango network-manager-applet ranger \
mate-calc dunst light lxsession gammastep"
echo "Change /bin/sh to dash?(y/n) "
echo "select n if you want to be safe and are new to linux"
read -r choice
read -r -p "Include my scripts found at kibybyte/bin? Not having them may break some minor stuff. (y/n)" binchoice
read -r -p "Do you want wallpapers? (y/n)" wallchoice
read -r -p "Do you want Firefox? (y/n)" firechoice
echo "Continue? (y/n)"
read -r response
[ "$response" = "y" ] || exit
git clone https://github.com/kibybyte/sway || exit
cd sway || exit
rm -f ./LICENSE
if [ "$binchoice" = "y" ] ; then
mkdir -p "$HOME"/.local
git clone https://github.com/kibybyte/bin
rm bin/LICENSE
mv bin "$HOME"/.local/
fi
for file in ./*
do
location="$(awk 'NR==2 { print $2 }' "$file")"
location="$(eval "echo $location")"
[ ! -d "${location%/*}" ] && mkdir -p "${location%/*}"
cat "$file" > "$location"
done
sudo pacman -S --noconfirm sway waybar wl-clipboard dash bat mpv imv zathura zathura-pdf-mupdf alacritty grim slurp neovim otf-font-awesome pipewire pipewire-pulse pipewire-alsa bluez bluez-utils fish ttf-jetbrains-mono pango network-manager-applet ranger mate-calc dunst light lxsession gammastep
[ "$firechoice" = "y" ] && sudo pacman -S --noconfirm firefox
paru --version || git clone https://aur.archlinux.org/paru-bin.git && cd paru-bin && makepkg -sric --noconfirm
paru -S --noconfirm ttf-ms-fonts adwaita-qt clipman motivate
chsh -s /usr/bin/fish
[ "$choice" = "y" ] && sudo ln -sf /usr/bin/dash /bin/sh
sudo usermod -aG video "$USER"
clear
if [ "$wallchoice" = "y" ] ; then
mkdir -p "$HOME"/pics
cd "$HOME"/pics
git clone https://github.com/kibybyte/wallpapers
fi
echo "done"