-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·68 lines (60 loc) · 1.81 KB
/
install.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
#!/bin/bash
#THIS SCRIPT HAS NOT BEEN TESTED. USE AT YOUR OWN RISK.
if [[$1 == ""]]; then
$1 = "icr"
fi
#Download and install the basics
if [[ $1 == *"i"* ]]; then
sudo apt update
sudo apt upgrade
sudo apt install compton
sudo apt install i3
sudo apt install i3blocks
sudo apt install thunar
sudo apt install git
sudo apt install python-pip
sudo apt install rofi
sudo apt install xautolock
sudo apt install autoconf
#i3 gaps
sudo apt install libxcb1-dev libxcb-keysyms1-dev libpango1.0-dev libxcb-util0-dev libxcb-icccm4-dev libyajl-dev libstartup-notification0-dev libxcb-randr0-dev libev-dev libxcb-cursor-dev libxcb-xinerama0-dev libxcb-xkb-dev libxkbcommon-dev libxkbcommon-x11-dev autoconf libxcb-xrm0 libxcb-xrm-dev automake
cd ..
git clone https://www.github.com/Airblader/i3 i3-gaps
cd i3-gaps
autoreconf --force --install
rm -rf build/
mkdir -p build && cd build/
../configure --prefix=/usr --sysconfdir=/etc --disable-sanitizers
make
sudo make install
cd ..
cd dotfiles
fi
#Run config wizard to generate a config file
i3-config-wizard
#Copy files to necessary locations
if [[ $1 == *"c"* ]]; then
cp ./i3/config ~/.config/i3/
cp ./i3/i3blocks.conf ~/.config/i3/
cp ./settings.ini ~/.config/gtk-3.0/
cp ./.gtkrc-2.0 ~/
cp ./network.sh ~/.config/i3/
mkdir ~/Pictures/Wallpapers
cp ./wallpaper.* ~/Pictures/Wallpapers/
cp ./i3batwarn.sh ~/
fi
#Reminders for things that need to be done manually
if [[ $1 == *"r"* ]]; then
echo Set horizontal scrolling with xinput
echo Find the touchpad id
xinput --list
read $touchpad
echo Find two finger scrolling
xinput --watch-prop $touchpad
read $scrolling
xinput --set-prop $touchpad "$scrolling" 1 1
echo
echo "Set cronjob for battery reminder as:"
echo "*/1 * * * * /home/<user>/.i3batwarn.sh"
crontab -e
fi