-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcustomize-home.sh
executable file
·78 lines (63 loc) · 3.13 KB
/
customize-home.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
#This could just be in the linux-setup script, but I like smaller script files, so I broke this one off.
#this creates some directories in the home folder. Your system probably already has a few of these, but they are
#listed for the sake of completion.
#You won't want some of these. Delete them, and add whatever you need.
mkdir -p ~/Art \
~/Battles \
~/Books \
~/Dev \
~/Documents \
~/Downloads \
~/Memes \
~/Movies \
~/Music \
~/Pictures \
~/Television \
~/Videos
#this could have been a part of the previous command, but it's separated for readability. These are hidden folders
mkdir -p ~/.wallpapers \
~/.bin \
~/.icons \
~/.themes \
~/.arduino \
~/.vim/colors \
~/.os #.os is where I save linux ISO's when I download them.
#these are folders I never use, so I just delete them
rm -rf ~/Templates ~/Public
#downloads some useful shell scripts I've written and adds them to my .bin folder.
#to call these scripts you will have to navigate to that folder, or add ~/.bin to your path
#this script doesn't do that, yet.
git clone https://gitlab.com/Derek52/Trezo-Bash-Scripts ~/bash-scripts
mv ~/bash-scripts/scripts/* ~/.bin
#creates a folder for my vim color schemes
mkdir -p ~/.vim/colors
#moves vimrc to the home directories, and renames it to the proper name ".vimrc"
cp ./config/vimrc ~/.vimrc
#moves vim color schemes to the appropriate destination
cp ./config/vimColorSchemes/* ~/.vim/colors
#downloads Vundle, and installs our vim plugins.
mkdir -p ~/.vim/bundle/Vundle.vim
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
vim +PluginInstall +qall
#this moves a wallpaper I quickly made in gimp into your wallpaper folder, to avoid an error with the next line
mv ./config/zCustomWallpaper.png ~/.wallpapers
#if you download some wallpapers into your download directory before running this, it will go ahead
#and copy all pngs and jpegs into your wallpaper directory.
cp ~/Downloads/*.png ~/Downloads/*.jpg ~/Downloads/*.jpeg ~/.wallpapers 2>/dev/null
#2>/dev/null suppresses the error cp would give, if there were no jpegs or pngs in downloads. It's a handy trick.
#creates default config files for ranger file manager
ranger --copy-config=all
#overwrites one of the default config files for ranger
cp ./config/ranger/rc.conf ~/.config/ranger/rc.conf
#this line will set the first image in your wallpaper folder as your background wallpaper.
#you can change the '*' to the name of whatever file you specifically want.
#this works perfectly in the cinnamon desktop, and on tiling window managers like i3.
#I was super disappointed to find this doesn't work on Mate, KDE, Gnome, or Pantheon.
feh --bg-fill ~/.wallpapers/*
#you could also use one of these 2 commands to have it randomly pick a wallpaper.
#the recursive option will have it pick any file from any folder within the .wallpapers folder.
#feh --randomize --bg-fill ~/.wallpapers/*
#feh --recursive --randomize --bg-fill ~/.wallpapers/*
#moves my i3 gaps config file, to the appropriate location. This won't mess with your system if you aren't using i3, but, if you aren't using i3, go ahead and comment this line out.
cp ./config/i3-gaps-config ~/.config/i3/config