feat(install): symlink hypridle.conf to ~/.config/hypr

Create symlink during installation so hypridle uses Modus config
This commit is contained in:
sankalp committed 2026-07-12 20:27:15 +05:45
1 parent 4a84710634
commit 1fc7edd483
1 file changed
+15
+15
View File
@@ -369,6 +369,21 @@ else
info "You may need to manually add: $MODUS_MODULE_LINE"
fi
step "Symlinking hypridle.conf..."
HYPR_DIR="$HOME/.config/hypr"
HYPRIDLE_CONF="$INSTALL_DIR/config/hypr/hypridle.conf"
HYPRIDLE_TARGET="$HYPR_DIR/hypridle.conf"
mkdir -p "$HYPR_DIR"
if [ -f "$HYPRIDLE_CONF" ]; then
if [ -L "$HYPRIDLE_TARGET" ]; then
rm "$HYPRIDLE_TARGET"
fi
ln -sf "$HYPRIDLE_CONF" "$HYPRIDLE_TARGET"
success "hypridle.conf symlinked"
else
warn "hypridle.conf not found at $HYPRIDLE_CONF"
fi
progress "Configuring global environment"
APP_CONF_DIR="$HOME/.config/environment.d"