archlinux xfce桌面二次元美化指南
记得连上网哦(其实是提醒作者自己的(汗颜))
换源
1
| sudo nano /etc/pacman.d/mirrorlist
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| Server = https://mirrors.ustc.edu.cn/archlinux/$repo/os/$arch
Server = https://mirrors.tuna.tsinghua.edu.cn/archlinux/$repo/os/$arch
Server = https://mirrors.aliyun.com/archlinux/$repo/os/$arch
Server = https://mirrors.zju.edu.cn/archlinux/$repo/os/$arch
Server = https://repo.huaweicloud.com/archlinux/$repo/os/$arch
Server = https://mirrors.163.com/archlinux/$repo/os/$arch
|
刷新数据库
安装yay
1
| sudo pacman -S --needed git base-devel
|
克隆yay构建文件
1
| git clone https://aur.archlinux.org/yay.git
|
编译安装
1 2 3
| cd yay go env -w GOPROXY=https://goproxy.cn,direct makepkg -si
|
如果不行可以换成一下镜像
1 2 3 4 5 6 7 8
| go env -w GOPROXY=https://mirrors.aliyun.com/goproxy/,direct
go env -w GOPROXY=https://goproxy.io,direct
go env -w GOPROXY=https://goproxy.cn,https://mirrors.aliyun.com/goproxy/,direct
|
验证安装
清理安装文件
配置中文和中文输入法
启用中文语言包
编辑 /etc/locale.gen,取消 zh_CN.UTF-8 UTF-8 前面的 # 注释
1
| sudo nano /etc/locale.gen
|
生成 locale
设置成默认
1
| echo 'LANG=zh_CN.UTF-8' | sudo tee /etc/locale.conf
|
安装字体
1 2 3
| sudo pacman -S noto-fonts noto-fonts-cjk noto-fonts-extra noto-fonts-emoji sudo pacman -S ttf-harmony-os-sans fc-cache -fv
|
安装输入法
1
| sudo pacman -S fcitx5-im fcitx5-chinese-addons fcitx5-configtool
|
安装扩展词库
1
| sudo pacman -S fcitx5-pinyin-zhwiki fcitx5-pinyin-moegirl
|
配置环境变量
1
| sudo nano /etc/environment
|
添加以下内容
1 2 3 4
| GTK_IM_MODULE=fcitx QT_IM_MODULE=fcitx XMODIFIERS=@im=fcitx SDL_IM_MODULE=fcitx
|
——————————————————————
以上,基本工作就做完了(应该吧)
事已至此,先装个firefox吧
下载主题,指针和图标包
这里列举我用的
光标:Catppuccin for Cursors
主题:Catppuccin-GTK-Theme
图标包:Papirus
以上(好像?)都可以用yay安装,我习惯下载解压使用
安装unzip
解压和使用
光标
1 2
| mkdir -p ~/.local/share/icons unzip catppuccin-frappe-lavender-cursors.zip -d ~/.local/share/icons/
|
主题
1 2
| mkdir -p ~/.local/share/themes tar -xf Catppuccin-Macchiato.tar -C ~/.local/share/themes/
|
图标包
1
| sudo pacman -S papirus-icon-theme
|
安装picom
自定义配置
1 2 3 4 5
| mkdir -p ~/.config/picom
cp /etc/xdg/picom.conf ~/.config/picom/picom.conf
|
这是ai生成的配置
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
| # 后端(推荐 glx) backend = "glx";
# 阴影 shadow = true; shadow-radius = 12; shadow-offset-x = -10; shadow-offset-y = -10; shadow-opacity = 0.75;
# 淡入淡出动画 fading = true; fade-in-step = 0.03; fade-out-step = 0.03;
# 防撕裂 vsync = true;
# 终端透明度(例如让 Alacritty 半透明) rules: ({ match = "class_g = 'Alacritty'"; opacity = 0.85; });
|
指定配置启动
1
| picom --config ~/.config/picom/picom.conf -b
|
安装conky
创建配置文件
1 2
| mkdir -p ~/.config/conky conky --print-config > ~/.config/conky/conky.conf
|
依旧ai的配置
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
| conky.config = { alignment = 'top_right', -- 位置:右上角 background = true, -- 后台运行 own_window = true, -- 独立窗口 own_window_type = 'desktop', -- 嵌入桌面 own_window_transparent = true, -- 透明背景 own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager', double_buffer = true, -- 双缓冲,防闪烁 update_interval = 1.0, -- 每秒刷新 use_xft = true, -- 抗锯齿字体 font = 'Noto Sans:size=10', -- 字体 default_color = 'ffffff', -- 默认白色文字 color1 = '8be9fd', -- 自定义颜色1(青色) color2 = '50fa7b', -- 自定义颜色2(绿色) color3 = 'ff79c6', -- 自定义颜色3(粉色) gap_x = 30, -- 距屏幕右边 30px gap_y = 50, -- 距屏幕顶部 50px minimum_width = 220, };
conky.text = [[ ${font Noto Sans:bold:size=14}${color1}SYSTEM${font} ${hr 2} ${color2}CPU:${color} ${cpu cpu0}% ${cpubar cpu0 6,120} ${color2}MEM:${color} ${memperc}% ${membar 6,120} ${color2}DISK:${color} ${fs_used_perc /}% ${fs_bar 6,120 /} ${color2}TEMP:${color} ${hwmon temp 1}°C ${hr 2} ${color3}NET${font} ${color}↓ ${downspeed wlan0} ↑ ${upspeed wlan0} ${downspeedgraph wlan0 25,200 8be9fd 50fa7b} ]];
|
启动
1
| conky -c ~/.config/conky/conky.conf
|
配置 Slick Greeter
因为我默认装的配置 Slick Greeter所以直接配置了
1
| sudo nano /etc/lightdm/slick-greeter.conf
|
1 2 3 4 5 6 7 8 9
| [Greeter] background=/home/你的用户名/图片/wallpaper.jpg logo= theme-name=Arc-Dark icon-theme-name=Papirus font-name=Noto Sans 11 show-clock=true show-power=true draw-user-backgrounds=false
|
重启
1
| sudo systemctl restart lightdm
|