forked from xct/kali-clean
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install-proxyhchains.sh
72 lines (51 loc) · 2.8 KB
/
install-proxyhchains.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
#!/bin/bash
# 配置kali源
sudo sed -i "s@http://http.kali.org/kali@https://mirrors.tuna.tsinghua.edu.cn/kali@g" /etc/apt/sources.list
# 配置pip源
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
sudo apt update && sudo apt upgrade -y
sudo apt-get install -y wget curl git thunar
sudo apt-get install -y arandr flameshot arc-theme feh i3blocks i3status i3 i3-wm lxappearance python3-pip rofi unclutter cargo compton papirus-icon-theme imagemagick
sudo apt-get install -y libxcb-shape0-dev libxcb-keysyms1-dev libpango1.0-dev libxcb-util0-dev xcb libxcb1-dev libxcb-icccm4-dev libyajl-dev libev-dev libxcb-xkb-dev libxcb-cursor-dev libxkbcommon-dev libxcb-xinerama0-dev libxkbcommon-x11-dev libstartup-notification0-dev libxcb-randr0-dev libxcb-xrm0 libxcb-xrm-dev autoconf meson
sudo apt-get install -y libxcb-render-util0-dev libxcb-shape0-dev libxcb-xfixes0-dev
# 字体安装
mkdir -p ~/.local/share/fonts/
proxychains wget https://github.com/ryanoasis/nerd-fonts/releases/download/v2.1.0/Iosevka.zip
proxychains wget https://github.com/ryanoasis/nerd-fonts/releases/download/v2.1.0/RobotoMono.zip
unzip Iosevka.zip -d ~/.local/share/fonts/
unzip RobotoMono.zip -d ~/.local/share/fonts/
fc-cache -fv
# 通过apt安装,所以源项目的 alacritty 配置文件得改
#wget https://github.com/barnumbirr/alacritty-debian/releases/download/v0.10.0-rc4-1/alacritty_0.10.0-rc4-1_amd64_bullseye.deb
#sudo dpkg -i alacritty_0.10.0-rc4-1_amd64_bullseye.deb
#sudo apt install -f
sudo apt install alacritty
# i3 窗口管理器的一个分支,现在已经合并到了i3 (之后有空改成i3)
git clone https://www.github.com/Airblader/i3 i3-gaps
cd i3-gaps && mkdir -p build && cd build && meson ..
ninja
sudo ninja install
cd ../..
# 得加--break-system-packages参数,不如安装不了,这个对系统没啥影响
pip3 install pywal --break-system-packages
# 创建配置文件
mkdir -p ~/.config/i3
mkdir -p ~/.config/compton
mkdir -p ~/.config/rofi
mkdir -p ~/.config/alacritty
cp .config/i3/config ~/.config/i3/config
cp .config/alacritty/alacritty.toml ~/.config/alacritty/alacritty.toml
cp .config/i3/i3blocks.conf ~/.config/i3/i3blocks.conf
# 窗口透明
cp .config/compton/compton.conf ~/.config/compton/compton.conf
# 应用dracula主题
proxychains git clone https://github.com/dracula/rofi
cp rofi/theme/config1.rasi ~/.config/rofi/config.rasi
cp .fehbg ~/.fehbg
cp .config/i3/clipboard_fix.sh ~/.config/i3/clipboard_fix.sh
cp -r .wallpaper ~/.wallpaper
echo "Done! Grab some wallpaper and run pywal -i filename to set your color scheme. To have the wallpaper set on every boot edit ~.fehbg"
echo "After reboot: Select i3 on login, run lxappearance and select arc-dark"
# 安装zsh
proxychains curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh -o zsh.sh
bash zsh.sh