summaryrefslogtreecommitdiff
path: root/installFull
blob: 1fbba040a053dc277d9469e97e5c3ce1b62b1693 (plain)
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
#!/bin/sh

echo "######################"
echo "# dotfiles Installer #"
echo "######################"
echo "|  for Gentoo Linux  |"
echo "**********************"

# Setting Vars
CURDIR=$(pwd)

# Distributing Configs for Portage
sudo cp -rf ".local/etc/" "/etc/"

# Installing Deps
emerge --ask playonlinux lutris engrampa youtube-dl nmap ncmpcpp media-sound/mpc nitrogen x11-misc/xclip vifm zathura zathura-pdf-poppler mpv tk scrot ntfs3g pcmanfm lxappearance filezilla redshift numlockx neofetch htop transmission-remote-gtk R pandoc-citeproc zip wget make bc android-tools unar arandr shellcheck gimp firefox-bin xorg-server xinit zsh webkit-gtk alsa-tools alsa-utils alsa-firmware alsa-plugins alsa-lib flaggie

# Setting up rootless Xorg Server
sudo mkdir -p /etc/portage/package.use
sudo sh -c 'echo "x11-base/xorg-server -suid" > /etc/portage/package.use/xorg_flags'
groupadd input
sudo sh -c 'echo "SUBSYSTEM=="input", ACTION=="add", GROUP="input"" > /etc/udev/rules.d/99-dev-input-group.rules'
sudo /etc/init.d/udev reload
usermod -aG input,video,audio user

#Preparing Dirs and Files for dotfiles
cp -rf .* "$HOME"
rm -rf "$HOME"/.git \
	"$HOME"/LICENSE \
	"$HOME"/install \
	"$HOME"/logo.png \
	"$HOME"/README.md \
	"$HOME"/.local/etc
mkdir -p ~/Mount
mkdir -p ~/Mount/Drive
mkdir -p ~/Mount/Drive2
mkdir -p ~/Mount/Drive3
mkdir -p ~/Mount/MTP
mkdir -p ~/Mount/USB
mkdir -p ~/Mount/USB2
mkdir -p ~/Mount/USB3
mkdir -p ~/Documents/PDF
mkdir -p ~/Documents/Markdown
mkdir -p ~/Documents/Groff
mkdir -p ~/Documents/Java
mkdir -p ~/Documents/Disks
mkdir -p ~/Documents/Archives
mkdir -p ~/Documents/Word
mkdir -p ~/Documents/Powerpoint
mkdir -p ~/Documents/Excel
mkdir -p ~/Repositories
mkdir -p ~/Pictures/Screenshots
mkdir -p ~/Pictures/GIMP
mkdir -p ~/Videos/Recordings

### Install of Suckless tools
mkdir suck
cd suck && git clone https://gitlab.com/rafa_99/dwm -b gentoo && \
	git clone https://gitlab.com/rafa_99/dmenu && \
	git clone https://gitlab.com/rafa_99/st && \
#	git clone https://gitlab.com/rafa_99/surf && \
	git clone https://gitlab.com/rafa_99/tabbed && \
	git clone https://gitlab.com/rafa_99/farbfeld && \
	git clone https://gitlab.com/rafa_99/sent && \
	git clone https://gitlab.com/rafa_99/slock
cd "$CURDIR"/suck/dmenu && sudo make clean install
cd "$CURDIR"/suck/st && sudo make clean install
# cd "$CURDIR"/suck/surf && sudo make clean install
cd "$CURDIR"/suck/tabbed && sudo make clean install
cd "$CURDIR"/suck/farbfeld && sudo make clean install
cd "$CURDIR"/suck/sent && sudo make clean install
cd "$CURDIR"/suck/slock && sudo make clean install
cd "$CURDIR" && sudo rm -rf suck/

# Changing default shell to zsh
chsh -s /bin/zsh

# Sudo Mods
# sudo echo "export _JAVA_AWT_WM_NONREPARENTING=1" >>/etc/profile.d/jre.sh
# sed -i s:#Color:Color:g /etc/pacman.conf
# sed -i s:#VerbosePkgLists:VerbosePkgLists:g /etc/pacman.conf
# sed -i '37iILoveCandy' /etc/pacman.conf

# Block Junk Traffic on Your Computer
echo "Do you want to block junky traffic. Ads, tracking, porn, junk?" && printf "1)Yes\n2)No:\n-> " && read -r Junk && clear
sleep 1

if [ "$Junk" = "1" ]; then
		sudo cp -rf .local/etc/hosts /etc/
else
		echo "Skipping..."
fi

# Setting up Neovim
# Linking Neovim to Vim
ln -s /usr/bin/nvim ~/.local/bin/vim 
# Installing Neovim Plugin Manager (Vim Plug)
curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs \
    https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
# Installing Plugins
nvim -c PlugInstall
# Installing Spell Checker
nvim -c setlocal spell spelllang=pt_pt