This repository has been archived by the owner on Apr 4, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
i3-xorg
executable file
·64 lines (52 loc) · 2.11 KB
/
i3-xorg
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
#!/bin/sh
echo "This install script installs i3 WM and related tools. It uses the Xorg protocol."
echo "Dependencies: git, pacman, a vanilla install of Arch Linux with the base-devel package"
echo "
" && sleep 5
echo "Packages which will be installed: xorg-xserver, i3-gaps, i3blocks, paru-bin, maim, pulseaudio,
pulseaudio-alsa, pulseaudio-bluetooth, bluez, bluez-utils,
fish (will be set to be default shell), ttf-jetbrains-mono,
pango, nm-applet, dmenu, ranger, mate-calc, firefox,
clipmenu, dunst, redshift, feh, light, motivate, alacritty,
xwallpaper, xclip
"
echo "This will install my scripts as well.
"
printf "continue?(y/n): " ; read -r response
[ "$response" != "y" ] && exit
clear
echo "Copying my config files..."
cd /tmp
git clone https://github.com/kibybyte/i3-xorg
cd i3-xorg
rm -rf ./LICENSE
mkdir -p $HOME/.local
mv ./bin $HOME/.local
for file in ./*
do
location=$(cat $file | head -2 | tail -1 | awk '{printf $2}')
location="$(eval "echo $location")"
if [ ! -d "${location%/*}" ]
then
mkdir -p "${location%/*}"
fi
cat $file > $location
done
clear
echo "installing packages" && sleep 5
sudo pacman -Syu xorg-server xwallpaper i3-gaps i3blocks maim pulseaudio pulseaudio-alsa pulseaudio-bluetooth bluez bluez-utils fish ttf-jetbrains-mono pango network-manager-applet dmenu ranger mate-calc firefox dunst redshift feh light xorg-xinit alacritty xclip
paru --version || { git clone https://aur.archlinux.org/paru-bin.git && cd paru-bin && makepkg -sric; }
clear
echo "It will take quite some time to compile the following AUR packages, so grab a cup of coffee or tea..." && sleep 5
paru -S ttf-ms-fonts adwaita-qt clipman motivate
clear
chsh -s /usr/bin/fish
echo "Change /bin/sh to dash?(y/n) "
echo "select n if you want to be safe and are new to linux"
read choice
[ "$choice" = "y" ] && sudo ln -sf /usr/bin/dash /bin/sh
sudo usermod -aG video $USER
clear
mkdir -p $HOME/pics
cd $HOME/pics
git clone https://github.com/kibybyte/wallpapers