1 Star 3 Fork 4

Kuangcp / Memo

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
LinuxUI.md 4.27 KB
一键复制 编辑 原始数据 按行查看 历史
Kuangcp 提交于 2024-05-09 14:33 . font
title: LinuxUI
date: 2024-02-03 10:39:52
tags: 
categories:

💠

💠 2024-05-09 14:32:49


UI

Linux UI: themes icons fonts

Display Manager

Computer instantly wakes after suspending

sudo systemctl restart display-manager

Window Manager

  • xfwm4 XFCE4
  • compiz

Desktop environment

Desktop environment

  1. Gnome
  2. Xfce

Font

  1. /usr/share/fonts/
  2. ~/.local/share/fonts
  • 刷新字体缓存 fc-cache -fv
    • 注意还有一个32位命令 fc-cache-32

字体文件 详情

  • npm vue minikube 等命令行的工具输出的日志提示会包含emoji, 需要终端字体支持展示unicode
    • 终端内 Emoji 支持 emoji noto-color-emoji 字体 支持颜色

字体渲染

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

字体库

nerd fonts


Theme

  1. /usr/share/themes/ 系统级
  2. ~/.themes/ ~/.local/share/themes 用户级

McMojave

参考: 10 Great Linux GTK Themes For 2018

  • pingguo

  • Sierra

  • GTK3主题:OSX-Arc

  • 某个应用运行时使用指定主题: GTK_THEME=xxx COMMAND

    • 例如 GTK_THEME=vimix-light-doder /Apps/IDE/mat/MemoryAnalyzer

Icon

  1. /usr/share/icons
    • 例如: /usr/share/icons/Papirus/128x128/apps/

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

ls配置彩色输出

Gihub: LS_COLORScustomize bash prompt

  1. curl https://raw.githubusercontent.com/trapd00r/LS_COLORS/master/LS_COLORS -o /etc/lscolor-256color
  2. 追加到 *sh.rc
    if [[ ("$TERM" = *256color || "$TERM" = screen* || "$TERM" = xterm* ) && -f /etc/lscolor-256color ]]; then
            eval $(dircolors -b /etc/lscolor-256color)
        else
                eval $(dircolors)
    fi
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/gin9/Memo.git
git@gitee.com:gin9/Memo.git
gin9
Memo
Memo
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891