Skip to content

LinuxUI

kcp edited this page Jul 13, 2020 · 2 revisions

title: Linux 美化 date: 2018-12-15 11:18:48 tags: - 工具使用经验 categories: - Linux

目录 start

  1. UI
    1. 桌面管理器
    2. Font
      1. 字体渲染
    3. Theme
    4. Icon
    5. Terminal
      1. 彩色输出

目录 end|2020-05-16 21:26|


UI

themes icons fonts

桌面管理器

  1. Gnome
  2. Xfce

Font

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

字体文件 详情

字体渲染

Debian8安装Infinality改善字体渲染,安装Ubuntu字体
一条命令搞定Linux字体渲染
Font Configuration/Chinese (简体中文)
参考: Fcitx (简体中文)


Theme

  1. /usr/share/themes/
  2. ~/.themes/ ~/.local/share/themes

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

McMojave

参考: 10 Great Linux GTK Themes For 2018


Icon

  1. /usr/share/icons

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

  1. Halo-icon-theme

Terminal

彩色输出

参考博客,比较详细
Linux Terminal Color

 red='\033[0;31m' green='\033[0;32m' yellow='\033[0;33m' blue='\033[0;34m' purple='\033[0;35m' cyan='\033[0;36m' white='\033[0;37m' default='\033[0m'

256 color

 # 测试 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
    if [[ ("$TERM" = *256color || "$TERM" = screen* || "$TERM" = xterm* ) && -f /etc/lscolor-256color ]]; then eval $(dircolors -b /etc/lscolor-256color) else eval $(dircolors) fi

Summary

Clone this wiki locally