From b4932ef737493c866e9892cde408123541f02d23 Mon Sep 17 00:00:00 2001 From: "SilverAg.L" Date: Mon, 15 Dec 2025 11:32:59 +0800 Subject: [PATCH] misc update - known dependencies - lessen symlink checking (might not easily break) - move shell history into `/tmp`. (py didn't often operate filesystem which doesn't matter) --- .config/niri/config.kdl | 3 ++- .zprofile | 8 ++------ .zshrc | 3 +++ readme.md | 8 ++++---- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.config/niri/config.kdl b/.config/niri/config.kdl index 5313115..94c98fc 100644 --- a/.config/niri/config.kdl +++ b/.config/niri/config.kdl @@ -176,7 +176,8 @@ animations { include "config.window.kdl" include "config.keyboard.kdl" -spawn-at-startup "waybar" +// spawn-at-startup "waybar" +// spawn-sh-at-startup "wl-paste --watch cliphist store" spawn-at-startup "swww-daemon" spawn-at-startup "swww-daemon" "--namespace" "blur" spawn-at-startup "xwayland-satellite" diff --git a/.zprofile b/.zprofile index a6cffc0..2027396 100644 --- a/.zprofile +++ b/.zprofile @@ -1,10 +1,6 @@ # init at each startup -mkdir -p /tmp/$USER -#ln -sf /tmp/$UID $HOME/.tmp -[ $(readlink -f $HOME/.tmp) = "/tmp/$USER" ] || { - rm -f $HOME/.tmp - ln -s /tmp/$USER $HOME/.tmp -} +mkdir -p /tmp/$USER/PSReadLine +#ln -sf /tmp/$USER $HOME/.tmp # avoid dumplicate env appending. # [[ -f /run/user/$UID/.zshlogon ]] && return diff --git a/.zshrc b/.zshrc index 17739c8..9df67bb 100644 --- a/.zshrc +++ b/.zshrc @@ -19,6 +19,9 @@ fi # History # +# also export this in bashrc. +HISTFILE=/tmp/$USER/.zhist + # Remove older command from the history if a duplicate is to be added. setopt HIST_IGNORE_ALL_DUPS diff --git a/readme.md b/readme.md index cfd3f68..dc08651 100644 --- a/readme.md +++ b/readme.md @@ -24,18 +24,18 @@ |依赖|配置|备注| |-|-|-| -|niri|`.config/niri/config.kdl`| +|niri|`.config/niri/config.kdl`|建议检查所有`~/`开头的路径——我的设定你不一定满意。| |`fuzzel`|`.config/fuzzel/*`| |`mako`|`.config/mako/*`| -|`swww`|`bin/chbg` (bash)|另需`imagemagick`来生成图片的高斯模糊版本。| +|`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`| |yazi|`.config/yazi/*`|替代`nautilus`;另用`fake-nautilus`移除`nautilus`包。| |fastfetch|`.config/fastfetch/*`| -|waybar|`.config/waybar/*`| -|`mpris`|`systemctl --user`服务|参见 ArchWiki.| +|waybar|`.config/waybar/*`|建议搭配`systemctl --user`(参见 [niri 在线文档](https://yalter.github.io/niri/Example-systemd-Setup.html))以便重载配置。| +|`mpris`||`systemctl --user`配置自启动(参见 ArchWiki)| |`pavucontrol-qt`| ## 参考资源与备注