设置网络
sudo systemctl enable dhcpcd
sudo systemctl enable wpa_supplicant
sudo systemctl start wpa_supplicant
ip link # 查看网络设备
nmcli dev wifi list # 查看wifi列表
nmcli devicd wifi connect "wifiname" password "passdword" # 连接wifi
安装相关组件
安装xorg
sudo pacman -S xorg-server xorg-xinit
安装i3等相关组件
sudo pacman -S zsh xfce4-terminal feh compton i3-gaps rofi
feh:用于配置背景图
compton:使窗口透明化的工具
安装字体
sudo pacman -S adobe-source-han-sans-cn-fonts
sudo pacman -S adobe-source-han-sans-tw-fonts
sudo pacman -S adobe-source-han-sans-jp-fonts
创建一个用户
useradd -m -g users -G wheel -s /bin/zsh username
进入新用户
su username
安装git等组件
sudo pacman -S git make
安装yay
git clone https://aru.archlinux/org/yay.git
cd yay
makepkg -si
安装polybar
yay -S polybar
安装特殊图标
yay -S otf-font-awesome ttf-material-icons
安装oh-my-zsh
yay -S oh-my-zsh-git
安装文件管理程序
sudo pacman -S ranger
配置
配置.xinitrc
sudo cp /etc/X11/xinit/xinitrc ~/.xinitrc
在文件最后添加
exec compton -b &
# exec fcitx &
exec i3
配置oh-my-zsh
sudo cp /usr/share/oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
修改 ~/.zshrc 配置文件中oh-my-zsh的安装路径,将 ZSH 的路径改为 /usr/share/oh-my-zsh
重启电脑进入用户然后初始化X11
sudo xinit
xinit
进入i3
startx
设置背景图片
vim ~/.config/i3/config
在最后加入
exec_always --no-startup-d feh --bg-center $HOME/bg.jpg # 背景图片路径
设置状态栏
vim ~/.config/i3/config
在文件末尾,注释以下内容
bar {
status_command i3status
}
并在末尾添加以下内容
exec_always --no-startup-id $HOME/.config/polybar/launch.sh
配置polybar
mkdir ~/.config/polybar
sudo cp /usr/share/doc/polybar/config ~/.config/polybar
touch ~/.config/launch.sh
chmod +x ~/.config/launch.sh
在launch.sh文件中加入以下内容
#!/bin/bash
killall -q polybar
while pgrep -u $UID -x polybar > /dev/null; do sleep 1; done
polybar example
取消polybar的空隙
将 [bar/example] 的 border-size 的值改为0
polybar无法透明
将 [colors] 下的 background 的值改为 #cc222222
配置rofi
vim ~/.config/i3/config
添加bindsym $mod+d exec rofi -show run