个人 i3配置地址:https://github.com/itgoyo/i3
如果还是觉得太难,请参考视频来操作:https://www.bilibili.com/video/av60766315
成品展示
安装 i3wm
$ /usr/lib/apt/apt-helper download-file http://debian.sur5r.net/i3/pool/main/s/sur5r-keyring/sur5r-keyring_2019.02.01_all.deb keyring.deb SHA256:176af52de1a976f103f9809920d80d02411ac5e763f695327de9fa6aff23f416
# dpkg -i ./keyring.deb
# echo "deb http://debian.sur5r.net/i3/ $(grep '^DISTRIB_CODENAME=' /etc/lsb-release | cut -f2 -d=) universe" >> /etc/apt/sources.list.d/sur5r-i3.list
# apt update
# apt install i3
美化 i3
美化效果是使用 Github 的一个项目i3-gaps
项目地址: https://github.com/Airblader/i3
所需要到的各种依赖
sudo apt install libxcb1-dev libxcb-keysyms1-dev libpango1.0-dev libxcb-util0-dev libxcb-icccm4-dev libyajl-dev libstartup-notification0-dev libxcb-randr0-dev libev-dev libxcb-cursor-dev libxcb-xinerama0-dev libxcb-xkb-dev libxkbcommon-dev libxkbcommon-x11-dev autoconf xutils-dev libtool
安装 i3-gaps 命令
cd /tmp
git clone https://www.github.com/Airblader/i3 i3-gaps
cd i3-gaps
git checkout gaps && git pull
autoreconf --force --install
rm -rf build
mkdir build
cd build
../configure --prefix=/usr --sysconfdir=/etc
make
sudo make install
期间你可能会遇到缺少 lib 的情况,我把我遇到的问题,还有解决方式说明一下
Can’t exec “aclocal”: No such file or directory at /usr/share/autoconf/Autom4te/FileUtils.pm line 326.
autoreconf: failed to run aclocal: No such file or directory
解决方式:
sudo apt-get install automake
No package ‘xcb-xrm’ found
解决方式:
sudo apt-get install libxcb-xrm-dev
no Package xcb-shape
解决方式:
sudo apt install libxcb-shape0-dev
No package ‘libpcre’ found
解决方式:
sudo apt-get install libpcre3-dev
No package ‘cairo’ found
解决方式:
sudo apt-get install libcairo2-dev
No package ‘pangocairo’ found
解决方式:
sudo apt-get install libpango1.0-dev
以下是我的 i3个人配置
配置地址:https://github.com/itgoyo/i3
# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout some time, delete
# this file and re-run i3-config-wizard(1).
#
# i3 config file (v4)
#
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
set $mod Mod1
# Font for window titles. Will also be used by the bar unless a different font
# is used in the bar {} block below.
font pango:monospace 8
# This font is widely installed, provides lots of unicode glyphs, right-to-left
# text rendering and scalability on retina