Skip to content

xiaohanqing/arch-dotfiles

Repository files navigation

 1|# glimmer's Arch Linux Dotfiles
 2|
 3|一键复刻 glimmer 的 Arch Linux 桌面环境。
 4|
 5|## 环境概览
 6|
 7|| 组件 | 内容 |
 8||------|------|
 9|| 窗口管理器 | Niri (Wayland 平铺) |
10|| 桌面 Shell | DMS (Dank Material Shell) |
11|| 启动器 | DMS Spotlight (原 Fuzzel) |
12|| 终端 | Ghostty |
13|| 输入法 | fcitx5 + Rime (雾凇拼音) |
14|| 主题 | Catppuccin Mocha Mauve |
15|| 图标 | Papirus-Dark |
16|| 字体 | Maple Mono NF CN |
17|| Shell | Zsh + Starship |
18|| 远程桌面 | Sunshine + Moonlight |
19|| 代理 | FlClash |
20|| 网络 | ZeroTier |
21|
22|## 使用方法
23|
24|### 在新机器上
25|
26|```bash
27|# 1. 克隆仓库
28|git clone <你的仓库地址> ~/dotfiles
29|cd ~/dotfiles
30|
31|# 2. 运行安装脚本
32|bash install.sh
33|```
34|
35|### 前提条件
36|
37|- 新机器已安装 Arch Linux(base + base-devel)
38|- 有网络连接
39|- 以普通用户身份运行(有 sudo 权限)
40|
41|## 目录结构
42|
43|```
44|dotfiles/
45|├── install.sh              # 一键安装脚本
46|├── README.md               # 本文件
47|├── pkglist.txt             # pacman 包列表
48|├── pkglist-aur.txt         # AUR 包列表
49|├── system-services.txt     # 启用的系统服务列表
50|├── user-services.txt       # 启用的用户服务列表
51|├── config/                 # ~/.config/ 下的配置文件
52|│   ├── niri/               # Niri 窗口管理器配置
53|│   ├── ghostty/            # Ghostty 终端配置
54|│   ├── fcitx5/             # fcitx5 输入法配置
55|│   ├── rime/               # 雾凇拼音 Rime 配置
56|│   ├── gtk-3.0/            # GTK3 主题设置
57|│   ├── gtk-4.0/            # GTK4 主题设置
58|│   ├── swaylock/           # 锁屏配置
59|│   ├── swaync/             # 通知中心配置
60|│   ├── fontconfig/         # 字体渲染配置
61|│   ├── starship.toml       # Starship 提示符
62|│   ├── chrome-flags.conf   # Chrome Wayland 标志
63|│   └── ...                 # 其他配置
64|├── home/                   # ~/ 下的 dotfiles
65|│   ├── .zshrc
66|│   ├── .bashrc
67|│   └── .profile
68|├── scripts/                # 自定义脚本
69|│   ├── fuzzel-user         # Fuzzel 启动器包装脚本
70|│   └── startup.sh          # Niri 启动后自动执行
71|├── fonts/                  # 字体(通过 AUR 安装 ttf-lxgw-wenkai)
72|├── wallpapers/             # 壁纸文件
73|└── system/                 # 系统级配置
74|    ├── greetd/             # 显示管理器配置
75|    ├── keyd/               # 键盘映射配置
76|    └── systemd/            # 自定义 systemd 服务
77|```
78|

新机器安装后需手动调整

  1. 壁纸 — 壁纸文件较大,未包含在仓库中。请从源机器复制:
    scp glimmer@<源机器IP>:~/Pictures/Wallpapers/* ~/Pictures/Wallpapers/
    安装脚本会自动检测壁纸文件并配置
  2. ZeroTier 网络sudo zerotier-cli join 8286ac0e478fd22b
  3. Rime 词库build/others/ 目录未包含在仓库中,安装脚本会自动重建,或首次使用 fcitx5 时自动生成

自适应特性

安装脚本会自动检测并适配以下环境差异:

项目 自适应方式
GPU 检测 NVIDIA/AMD/Intel,安装对应驱动
CPU 检测 Intel/AMD,安装对应微码
显示器 检测所有显示器,自动生成 niri output 配置
壁纸 自动找到第一张壁纸,配置到所有显示器
用户名 greetd 配置自动替换为当前用户名
91|
92|## 维护
93|
94|更新配置后,提交到 git 仓库:
95|
96|```bash
97|cd ~/dotfiles
98|git add -A
99|git commit -m "更新配置"

100|git push 101| 102| 103|在新机器上拉取更新: 104| 105|bash 106|cd ~/dotfiles 107|git pull 108|bash install.sh # 或手动复制变更的文件 109|```

About

my self dotfiles for arch init

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors