Update dist-nix

This commit is contained in:
clsty
2025-11-04 20:47:35 +08:00
parent 4443b736d8
commit 38cd1a7169
4 changed files with 30 additions and 8 deletions
+7 -3
View File
@@ -3,7 +3,6 @@
# shellcheck shell=bash
# TODO: When --via-nix is specified, use dots-extra/vianix/hypridle.conf instead
# In case some dirs does not exists
v mkdir -p $XDG_BIN_HOME $XDG_CACHE_HOME $XDG_CONFIG_HOME $XDG_DATA_HOME/icons
@@ -80,13 +79,18 @@ case $SKIP_HYPRLAND in
v cp dots/.config/hypr/hyprland.conf $t
fi
t="$XDG_CONFIG_HOME/hypr/hypridle.conf"
if [[ "$INSTALL_VIA_NIX" = true ]]; then
s=dots/.config/hypr/hypridle.conf
else
s=dots-extra/vianix/hypridle.conf
fi
if [ -f $t ];then
echo -e "${STY_BLUE}[$0]: \"$t\" already exists.${STY_RST}"
v cp -f dots/.config/hypr/hypridle.conf $t.new
v cp -f $s $t.new
existed_hypridle_conf=y
else
echo -e "${STY_YELLOW}[$0]: \"$t\" does not exist yet.${STY_RST}"
v cp dots/.config/hypr/hypridle.conf $t
v cp $s $t
existed_hypridle_conf=n
fi
t="$XDG_CONFIG_HOME/hypr/hyprlock.conf"