-
Notifications
You must be signed in to change notification settings - Fork 0
/
onlythemechangerARCH.sh
98 lines (76 loc) · 4.88 KB
/
onlythemechangerARCH.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
echo '#############################################################'
echo '#############################################################'
echo '## THIS SCRIPT WILL INSTALL CHAOTIC AUR IN YOUR SYSTEM.######'
echo '###### IF CHAOTIC AUR IS ALREADY INSTALLED #####'
echo '#### IN YOUR SYSTEM IT IS HIGHLY RECOMMENDED #####'
echo '##### THAT YOU CHOOSE NO TO FOLLOWING PROMPT ######'
echo '############# SERIOUSLY #############'
echo '#############################################################'
echo '#############################################################'
sleep 8
chmod +x chaotic.sh
while true; do
read -p "Do you wish to install chaotic-aur? (Yy/Nn)" yn
case $yn in
[Yy]* ) ~/my-xfce4-dotfiles/chaotic.sh
break;;
[Nn]* ) echo "Ok cool";
break;;
* ) echo "Please answer yes or no.";;
esac
done
sudo pacman -Syyu
mkdir -pv ~/.local/share/applications/rice
cp terminalrc ~/.local/share/applications/rice/terminalrc &&
[ -d ~/.config ] && mkdir -pv ~/All-your-backup/config-backup-$(date +%Y.%m.%d-%H%M) && cp -Rf ~/.config ~/All-your-backup/config-backup-$(date +%Y.%m.%d-%H%M) &&
cp -rT config ~/.config
cp -rT local ~/.local
[ -d ~/Pictures/wall ] && mkdir -pv ~/All-your-backup/Pictures-backup-$(date +%Y.%m.%d-%H%M) && cp -Rf ~/Pictures/wall ~/All-your-backup/Pictures-backup-$(date +%Y.%m.%d-%H%M)
cp -rT Picture ~/Pictures
cp themer.sh ~/.local/share/applications/rice/themer.sh
find $HOME/.local/share/applications/rice -type f -print0 | xargs -0 chmod 775
find $HOME/.local/share/applications -type f -print0 | xargs -0 chmod 775
## for executables in menu
first=$(whoami)
sed -i -e 's/dreaming/'$first'/g' ~/.local/share/applications/dark.desktop
sed -i -e 's/dreaming/'$first'/g' ~/.local/share/applications/light.desktop
sed -i -e 's/dreaming/'$first'/g' ~/.local/share/applications/mint.desktop
sed -i -e 's/dreaming/'$first'/g' ~/.local/share/applications/gruvbox-dark.desktop
sed -i -e 's/dreaming/'$first'/g' ~/.local/share/applications/The-best.desktop
sed -i -e 's/dreaming/'$first'/g' ~/.local/share/applications/comic.desktop
sed -i -e 's/dreaming/'$first'/g' ~/.local/share/applications/Juno.desktop
sed -i -e 's/dreaming/'$first'/g' ~/.local/share/applications/Kripton.desktop
sed -i -e 's/dreaming/'$first'/g' ~/.local/share/applications/Nordic-bluish.desktop
sed -i -e 's/dreaming/'$first'/g' ~/.local/share/applications/Nordic-polar.desktop
sed -i -e 's/dreaming/'$first'/g' ~/.local/share/applications/Robust.desktop
sed -i -e 's/dreaming/'$first'/g' ~/.local/share/applications/comic.desktop
sed -i -e 's/dreaming/'$first'/g' ~/.local/share/applications/rice/true-dark.desktop
sed -i -e 's/dreaming/'$first'/g' ~/.local/share/applications/rice/mint-light.desktop
sed -i -e 's/dreaming/'$first'/g' ~/.local/share/applications/rice/Everforest.desktop
##for keybindings
sed -i -e 's/dreaming/'$first'/g' ~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-keyboard-shortcuts.xml
## for polybar to work properly
polymonitor=$(xrandr --listactivemonitors | awk -F ' ' 'END {print $2}' | tr -d \*+)
echo $polymonitor
sed -i -e 's/eDP1/'$polymonitor'/g' ~/.config/polybar/config.ini
polybacklight=$(ls -1 /sys/class/backlight/)
echo $polybacklight
sed -i -e 's/intel_backlight/'$polybacklight'/g' ~/.config/polybar/config.ini
# Let's install each package listed in the pkglist.txt file.
sudo pacman -S xarchiver dool mint-l-icons p7zip make qogir-gtk-theme-git mpv qogir-icon-theme mint-themes mint-y-icons vimix-cursors vimix-gtk-themes vimix-icon-theme whitesur-gtk-theme arc-gtk-theme-git arc-solid-gtk-theme fluent-cursor-theme-git cutefish-icons nordic-darker-theme nordic-darker-theme lsd awesome-terminal-fonts ttf-iosevka-nerd xfce4-goodies papirus-icon-theme breeze-icons cantarell-fonts ttf-fira-code ttf-meslo-nerd-font-powerlevel10k ttf-meslo-nerd-font-powerlevel10k xterm polybar-git everforest-gtk-theme-git gruvbox-material-gtk-theme-git gruvbox-material-icon-theme-git paru
paru -S picom-ftlabs-git
## mpv screenshot directory
mkdir -pv ~/Pictures/mpv && cp -r /usr/share/doc/mpv/ ~/.config/
echo 'screenshot-directory="~/Pictures/mpv/"' | tee -a ~/.config/mpv/mpv.conf
echo '##xfwm4 themes CREDITS TO addy-dclxvi ##'
git clone https://github.com/addy-dclxvi/Xfwm4-Theme-Collections ~/.themes
cd && 7z x ~/my-xfce4-dotfiles/themes.7z &&
cd && 7z x ~/my-xfce4-dotfiles/icons.7z &&
chmod +x ~/.config/polybar/launch.sh
cd ~/.config/polybar && ./launch.sh
echo "####################################################################"
echo "############ !!DONE!! ENJOY YOUR DAY CHAD BROS ####################"
echo "####################################################################"
echo "## run cd ~/.local/share/applications/rice/ && ./themer.sh ###"
echo "####################################################################"
echo "####################################################################"