目录 start

  1. UI
    1. Font
      1. 字体渲染
    2. Theme
    3. Icon
    4. Terminal
  2. 测试 terminal 是否支持 256

目录 end|2019-10-19 17:04|


UI

themes icons fonts

  • www.gnome-look.org

  • 所有用户通用, 安装新的后需要重启 /usr/share/themes

  • 当前用户, 直接复制进来立即生效: ~/.themes 或者 ~/.local/share/themes

  • [ ] 问题: Deepin上 全放 ~/.local/share/themes 会有bug, 只能全放 ~/.themes

Font

字体

字体渲染

Debian8安装Infinality改善字体渲染,安装Ubuntu字体
一条命令搞定Linux字体渲染

  • 刷新字体缓存 fc-cache -fv ~/.local/share/fonts

Theme

参考博客: 10 Great Linux GTK Themes For 2018


Icon

sudo apt search icon-theme 也能看到很多icon

  1. Halo-icon-theme

Terminal

256 color

1
2
3
4
5
6
7
# 测试 terminal 是否支持 256
for i in {0..255} ; do
printf "\x1b[48;5;%sm%3d\e[0m " "$i" "$i"
if (( i == 15 )) || (( i > 15 )) && (( (i-15) % 6 == 0 )); then
printf "\n";
fi
done

Gihub: LS_COLORS
customize bash prompt

  1. curl https://raw.githubusercontent.com/trapd00r/LS_COLORS/master/LS_COLORS -o /etc/lscolor-256color
  2. add to *sh.rc
    1
    2
    3
    4
    5
    if [[ ("$TERM" = *256color || "$TERM" = screen* || "$TERM" = xterm* ) && -f /etc/lscolor-256color ]]; then
    eval $(dircolors -b /etc/lscolor-256color)
    else
    eval $(dircolors)
    fi