Files
aglab.dotfiles/readme.md

49 lines
3.1 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# niri 散装配置集dotfiles
都怪雪叶!(
> [!note]
> 1. 本仓库的配置管理方案比较原始:逐个做软链接处理。
> 个人并不打算无脑用`stow`,尤其不希望一些 systemd 服务和涉及 token 的自用小工具混进来。
> 2. 还有一些早期配置在整理本仓库时已经淡忘,由于篇幅和复述可靠性有限,亦不考虑收纳。
> 3. 涉及`$HOME`、`~`、`%h`开头(最后一个多见于 systemd 服务)的路径建议自行适配——我的设定你不一定会满意。
## 鸣谢
- 雪叶 [@Vescrity](https://github.com/Vescrity) (Yukitoha)
- fizzyizzy05 (Isabelle Jackson, mtf)
## 已知依赖
> 仅列出**想得起来的**依赖软件包。
|依赖|配置|备注|
|-|-|-|
|niri|`.config/niri/config*.kdl`|只拆分了`window-rule``binds`,拆太碎有些视觉效果会失效。|
|`fuzzel`|`.config/fuzzel/*`|
|`mako`|`.config/mako/*`|
|`swww`|`bin/chbg` (bash 脚本)|依赖`imagemagick`。另,可以配合图床等实现定期换壁纸。|
|`gtklock`|`.config/gtklock/*`|现阶段无法跟`swayidle`合用,尽管其 Wiki 鼓励这么做。|
|`xdg-desktop-portal-(gtk\|gnome)`|`.config/xdg-desktop-portal/*-portals.conf`|GNOME 支持最全,但称不上好看(|
|`kwallet`|VSCode 试图登录时会弹出向导让你配的。|替代`gnome-keyring`。建议加装`kwallet-pam`,免得 VSCode 自己尝试解锁结果闪退。|
|foot|`.config/foot/foot.ini`|
|`zsh`|`.zshrc` `.zprofile`|另使用了 ZshIM 和 powerlevel10k 主题,因此有些配置(如`HISTFILE`)不得不相应地提前。|
|yazi|`.config/yazi/*`|替代`nautilus`。另用`fake-nautilus`移除`nautilus`包。|
|fastfetch|`.config/fastfetch/*`|
|waybar|`.config/waybar/*`|建议搭配`systemctl --user`(参见 [niri 在线文档](https://yalter.github.io/niri/Example-systemd-Setup.html))以便重载配置。|
|`mpris`||`systemctl --user`配置自启动(参见 ArchWiki|
|`pavucontrol-qt`|
## 参考资源与备注
- Nerd 字体:[Monaco Nerd Font Mono](https://glowmem.com/upload/articles/archlinux-note/Monaco_Nerd_Font_Mono-Regular.ttf) (MelodyEcho ver.) 或直接 [MesloLGS NF](https://github.com/romkatv/powerlevel10k/blob/master/font.md) (for p10k)。
- 深色模式:`gsettings set org.gnome.desktop.interface color-scheme prefer-dark`
GTK/QT 深色主题:参见 [Arch Wiki](https://wiki.archlinux.org/title/Uniform_look_for_Qt_and_GTK_applications#Styles_for_both_Qt_and_GTK)。我摆烂了。
- 大多数 Electron 应用需要读`~/.config/*-flags.conf`来适配 Wayland
你可以把`default-electron-flags`相应地软链接过去。**特别地QQ 需要多加一条**`--wayland-text-input-version=3`
- `hoyocloud-chromium-userscript.js`顾名思义,用于**在 Chrome 里**firefox 不需要)游玩米哈游云游戏的油猴脚本。
参见 [Bilibili 专栏](https://www.bilibili.com/opus/842314310196658193)。
- `bin/.battery-warn`虽说也是自用,但一是配置项并不算敏感,稍微改改`config`段也可以泛用;二是参考文献写得有点啰嗦,我懒得再缝第二遍。
个人建议用于**定时任务cron 或 systemd timer**。