-
Notifications
You must be signed in to change notification settings - Fork 0
/
init_gnome.sh
executable file
·148 lines (131 loc) · 5.71 KB
/
init_gnome.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
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
#!/usr/bin/env bash
# change permission
# chmod +x init.sh
# . ./scripts/msg.sh
### TO DO ###
# Refactor code
# remove if else structures and
# replace it with 'ln -s -f <source> <target>'
# the -f flag alreay removes any content that might
# be at the destination path.
#############
### Install themes
### extraxting cursor files
# ICONS=~/.icons
# if [ -d "$ICONS" ]; then
# for a in themes/cursors/*.tar.gz
# do
# tar xvzf $a -C $ICONS
# done
# else
# mkdir $ICONS
# for a in themes/cursors/*.tar.gz
# do
# tar xvzf $a -C $ICONS
# done
# fi
### extracting icons themes
# if [ -d "$ICONS" ]; then
# for a in themes/icons_pack/*.tar.xz
# do
# tar xvf $a -C $ICONS
# done
# else
# mkdir $ICONS
# for a in themes/icons_pack/*.tar.xz
# do
# tar xvf $a -C $ICONS
# done
# fi
### my default fonts
# FONTS=~/.fonts
# if [ -d "$FONTS" ]; then
# for a in fonts/*.zip
# do
# unzip -o $a -d $FONTS
# done
# else
# mkdir $FONTS
# for a in fonts/*.zip
# do
# unzip -o $a -d $FONTS
# done
# fi
### my default theme
# THEMES=~/.themes
# if [ -d "$THEMES" ]; then
# git clone https://github.com/inatagan/eva-01.git ~/.themes/eva-01
# else
# mkdir $THEMES
# git clone https://github.com/inatagan/eva-01.git ~/.themes/eva-01
# fi
### BASHRC=~/.bashrc --ALIASES-ONLY
#ln -s -f ~/dotfiles/.bashrc ~ && echo 'BASHRC was linked sucessfully!!' || echo 'BASHRC was not linked!!'
ln -s -f ~/dotfiles/.bash_aliases ~ && echo 'BASH_ALIASES was linked sucessfully!!' || echo 'BASHRC was not linked!!'
### CONKYRC=~/.conkyrc
ln -s -f ~/dotfiles/.conkyrc ~ && echo 'CONKYRC was linked sucessfully!!' || echo 'CONKYRC was not linked!!'
### AUTOSTART=~/.config/autostart
# ln -s -f ~/dotfiles/config/autostart ~/.config && echo 'AUTOSTART files were linked sucessfully!!' || echo 'AUTOSTART was not linked!!'
### GIT=~/.config/git
ln -s -f ~/dotfiles/config/git ~/.config && echo 'GIT directory was linked sucessfully!!' || echo 'GIT was not linked!!'
### HTOP=~/.config/htop
ln -s -f ~/dotfiles/config/htop ~/.config && echo 'HTOP directory was linked sucessfully' || echo 'HTOP was not linked'
### micro=~/.config/micro
ln -s -f ~/dotfiles/config/micro ~/.config && echo 'micro directory was linked sucessfully' || echo 'micro was not linked'
### Neofetch=~/.config/neofetch
ln -s -f ~/dotfiles/config/neofetch ~/.config && echo 'neofetch directory was linked sucessfully' || echo 'neofetch was not linked'
### PAP=~/.config/papirus-folders
#ln -s -f ~/dotfiles/config/papirus-folders ~/.config && echo 'PAPIRUS directory was linked sucessfully' || echo 'PAPIRUS was not linked!!'
### Pulse config and bluetooth audio
# PULSE=~/.config/pulse
# if [ -d "$PULSE" ]; then
# echo '[ WARNING!! ] PULSE folder already exists!!'
# if [ -f "$HOME/.config/pulse/client.conf" ]; then
# rm -f ~/.config/pulse/client.conf && ln -s ~/dotfiles/config/pulse/client.conf ~/.config/pulse && echo 'CLIENT.CONF was replaced sucessfully!!' || echo 'CLIENT.CONF was not replaced!!'
# else
# ln -s ~/dotfiles/config/pulse/client.conf ~/.config/pulse && echo 'CLIENT.CONF was linked sucessfully!!' || echo 'CLIENT.CONF was not linked!!'
# fi
# if [ -f "$HOME/.config/pulse/daemon.conf" ]; then
# rm -f ~/.config/pulse/daemon.conf && ln -s ~/dotfiles/config/pulse/daemon.conf ~/.config/pulse && echo 'DAEMON.CONF was replaced sucessfully!!' || echo 'DAEMON.CONF was not replaced'
# else
# ln -s ~/dotfiles/config/pulse/daemon.conf ~/.config/pulse && echo 'DAEMON.CONF was linked sucessfully!!' || echo 'DAEMON.CONF was not linked!!'
# fi
# if [ -f "$HOME/.config/pulse/default.pa" ]; then
# rm -f ~/.config/pulse/default.pa && ln -s ~/dotfiles/config/pulse/default.pa ~/.config/pulse && echo 'DEFAULT.PA was replaced sucessfully!!' || echo 'DEFAULT.PA was not replaced!!'
# else
# ln -s ~/dotfiles/config/pulse/default.pa ~/.config/pulse && echo 'DEFAULT.PA was linked sucessfully!!' || echo 'DEFAULT.PA was not linked!!'
# fi
# else
# mkdir ~/.config/pulse
# ln -s ~/dotfiles/config/pulse/client.conf ~/.config/pulse
# ln -s ~/dotfiles/config/pulse/daemon.conf ~/.config/pulse
# ln -s ~/dotfiles/config/pulse/default.pa ~/.config/pulse
# echo 'PULSE directory was created and linked sucessfully!!'
# fi
### TMUX=~/.config/tmux
ln -s -f ~/dotfiles/config/tmux ~/.config && echo 'TMUX directory was linked sucessfully!!' || echo 'TMUX was not linked!!'
### REDSHIFT=~/.config/redshift.conf
# ln -s -f ~/dotfiles/config/redshift.conf ~/.config && echo 'REDSHIFT file was linked sucessfully!!' || echo 'REDSHIFT was not linked!!'
### STARSHIP=~/.config/starship.toml
ln -s -f ~/dotfiles/config/starship.toml ~/.config && echo 'STARSHIP file was linked sucessfully!!' || echo 'STARSHIP was not linked!!'
### XFCE config - workaround for systemd not killing xconfd
### shut down the panel first
# xfce4-panel --quit
### kill the xfce4 configuration daemon
# pkill xfconfd
### link config files
# XFCE=~/.config/xfce4
# if [ -d "$XFCE" ]; then
# rm -rf $XFCE && ln -s ~/dotfiles/config/xfce4 ~/.config && echo 'XFCE4 directory was replaced sucessfully!!' || echo 'XFCE4 was not replaced!!'
# else
# ln -s ~/dotfiles/config/xfce4 ~/.config && echo 'XFCE4 directory was linked sucessfully!!' || echo 'XFCE4 was not linked!!'
# fi
### Thunar config
#THUNAR=~/.config/Thunar
#if [ -d "$THUNAR" ]; then
# rm -r $THUNAR && ln -s ~/dotfiles/config/Thunar ~/.config && echo 'THUNAR directory was replaced sucessfully!!' || echo 'THUNAR was not replaced!!'
#else
# ln -s ~/dotfiles/config/Thunar ~/.config && echo 'THUNAR directory was linked sucessfully!!' || echo 'THUNAR was not linked!!'
#fi
# restart xfce panel
# xfce4-panel